Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org')
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/AbstractAppliedStereotypePropertyRuntimeModule.java18
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/AppliedStereotypePropertyStandaloneSetupGenerated.java12
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/AppliedStereotypePropertyFactory.java72
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/AppliedStereotypePropertyPackage.java417
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/AppliedStereotypePropertyRule.java56
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/ExpressionValueRule.java57
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/AppliedStereotypePropertyFactoryImpl.java187
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/AppliedStereotypePropertyPackageImpl.java424
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/AppliedStereotypePropertyRuleImpl.java329
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/ExpressionValueRuleImpl.java330
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/util/AppliedStereotypePropertyAdapterFactory.java248
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/util/AppliedStereotypePropertySwitch.java232
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/AppliedStereotypePropertyAntlrTokenFileProvider.java5
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/AppliedStereotypePropertyParser.java22
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/internal/InternalAppliedStereotypePropertyLexer.java9359
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/internal/InternalAppliedStereotypePropertyParser.java82149
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/serializer/AppliedStereotypePropertySemanticSequencer.java873
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/serializer/AppliedStereotypePropertySyntacticSequencer.java462
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/services/AppliedStereotypePropertyGrammarAccess.java1607
19 files changed, 49278 insertions, 47581 deletions
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/AbstractAppliedStereotypePropertyRuntimeModule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/AbstractAppliedStereotypePropertyRuntimeModule.java
index 76c983675e5..38f9369e611 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/AbstractAppliedStereotypePropertyRuntimeModule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/AbstractAppliedStereotypePropertyRuntimeModule.java
@@ -23,16 +23,16 @@ public abstract class AbstractAppliedStereotypePropertyRuntimeModule extends org
properties = tryBindProperties(binder, "org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/AppliedStereotypeProperty.properties");
super.configure(binder);
}
-
+
public void configureLanguageName(Binder binder) {
binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.AppliedStereotypeProperty");
}
-
+
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("stereotypeproperty");
}
-
+
// contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
public java.lang.ClassLoader bindClassLoaderToInstance() {
return getClass().getClassLoader();
@@ -85,7 +85,8 @@ public abstract class AbstractAppliedStereotypePropertyRuntimeModule extends org
// 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.textedit.stereotypeproperty.xtext.parser.antlr.internal.InternalAppliedStereotypePropertyLexer.class);
+ 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.textedit.stereotypeproperty.xtext.parser.antlr.internal.InternalAppliedStereotypePropertyLexer.class);
}
// contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
@@ -94,7 +95,8 @@ public abstract class AbstractAppliedStereotypePropertyRuntimeModule extends org
}
// contributed by org.eclipse.xtext.generator.validation.JavaValidatorFragment
- @org.eclipse.xtext.service.SingletonBinding(eager=true) public Class<? extends org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.validation.AppliedStereotypePropertyJavaValidator> bindAppliedStereotypePropertyJavaValidator() {
+ @org.eclipse.xtext.service.SingletonBinding(eager = true)
+ public Class<? extends org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.validation.AppliedStereotypePropertyJavaValidator> bindAppliedStereotypePropertyJavaValidator() {
return org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.validation.AppliedStereotypePropertyJavaValidator.class;
}
@@ -105,7 +107,8 @@ public abstract class AbstractAppliedStereotypePropertyRuntimeModule extends org
// 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);
+ 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
@@ -140,7 +143,8 @@ public abstract class AbstractAppliedStereotypePropertyRuntimeModule extends org
// 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);
+ 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
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/AppliedStereotypePropertyStandaloneSetupGenerated.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/AppliedStereotypePropertyStandaloneSetupGenerated.java
index e19eecc53a1..22ccfbcce23 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/AppliedStereotypePropertyStandaloneSetupGenerated.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/AppliedStereotypePropertyStandaloneSetupGenerated.java
@@ -24,21 +24,21 @@ public class AppliedStereotypePropertyStandaloneSetupGenerated implements ISetup
register(injector);
return injector;
}
-
+
public Injector createInjector() {
return Guice.createInjector(new org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.AppliedStereotypePropertyRuntimeModule());
}
-
+
public void register(Injector injector) {
- if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/papyrus/uml/textedit/property/xtext/StereotypeProperty")) {
- EPackage.Registry.INSTANCE.put("http://www.eclipse.org/papyrus/uml/textedit/property/xtext/StereotypeProperty", org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage.eINSTANCE);
- }
+ if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/papyrus/uml/textedit/property/xtext/StereotypeProperty")) {
+ EPackage.Registry.INSTANCE.put("http://www.eclipse.org/papyrus/uml/textedit/property/xtext/StereotypeProperty", org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage.eINSTANCE);
+ }
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("stereotypeproperty", resourceFactory);
org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("stereotypeproperty", serviceProvider);
-
+
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/AppliedStereotypePropertyFactory.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/AppliedStereotypePropertyFactory.java
index 710809e0c0c..0a707879958 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/AppliedStereotypePropertyFactory.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/AppliedStereotypePropertyFactory.java
@@ -9,44 +9,48 @@ import org.eclipse.emf.ecore.EFactory;
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage
* @generated
*/
-public interface AppliedStereotypePropertyFactory extends EFactory
-{
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- AppliedStereotypePropertyFactory eINSTANCE = org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyFactoryImpl.init();
+public interface AppliedStereotypePropertyFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ AppliedStereotypePropertyFactory eINSTANCE = org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyFactoryImpl.init();
- /**
- * Returns a new object of class '<em>Rule</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Rule</em>'.
- * @generated
- */
- AppliedStereotypePropertyRule createAppliedStereotypePropertyRule();
+ /**
+ * Returns a new object of class '<em>Rule</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Rule</em>'.
+ * @generated
+ */
+ AppliedStereotypePropertyRule createAppliedStereotypePropertyRule();
- /**
- * Returns a new object of class '<em>Expression Value Rule</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Expression Value Rule</em>'.
- * @generated
- */
- ExpressionValueRule createExpressionValueRule();
+ /**
+ * Returns a new object of class '<em>Expression Value Rule</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Expression Value Rule</em>'.
+ * @generated
+ */
+ ExpressionValueRule createExpressionValueRule();
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the package supported by this factory.
- * @generated
- */
- AppliedStereotypePropertyPackage getAppliedStereotypePropertyPackage();
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the package supported by this factory.
+ * @generated
+ */
+ AppliedStereotypePropertyPackage getAppliedStereotypePropertyPackage();
-} //AppliedStereotypePropertyFactory
+} // AppliedStereotypePropertyFactory
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/AppliedStereotypePropertyPackage.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/AppliedStereotypePropertyPackage.java
index 7770f45f970..85007992edc 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/AppliedStereotypePropertyPackage.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/AppliedStereotypePropertyPackage.java
@@ -11,208 +11,227 @@ import org.eclipse.emf.ecore.EReference;
* The <b>Package</b> for the model.
* It contains accessors for the meta objects to represent
* <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyFactory
* @model kind="package"
* @generated
*/
-public interface AppliedStereotypePropertyPackage extends EPackage
-{
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNAME = "appliedStereotypeProperty";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/papyrus/uml/textedit/property/xtext/StereotypeProperty";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_PREFIX = "appliedStereotypeProperty";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- AppliedStereotypePropertyPackage eINSTANCE = org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyRuleImpl <em>Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyPackageImpl#getAppliedStereotypePropertyRule()
- * @generated
- */
- int APPLIED_STEREOTYPE_PROPERTY_RULE = 0;
-
- /**
- * The feature id for the '<em><b>Value</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE = 0;
-
- /**
- * The number of structural features of the '<em>Rule</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int APPLIED_STEREOTYPE_PROPERTY_RULE_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.ExpressionValueRuleImpl <em>Expression Value Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.ExpressionValueRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyPackageImpl#getExpressionValueRule()
- * @generated
- */
- int EXPRESSION_VALUE_RULE = 1;
-
- /**
- * The feature id for the '<em><b>Expression</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int EXPRESSION_VALUE_RULE__EXPRESSION = 0;
-
- /**
- * The number of structural features of the '<em>Expression Value Rule</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int EXPRESSION_VALUE_RULE_FEATURE_COUNT = 1;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule <em>Rule</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Rule</em>'.
- * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule
- * @generated
- */
- EClass getAppliedStereotypePropertyRule();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule#getValue <em>Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Value</em>'.
- * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule#getValue()
- * @see #getAppliedStereotypePropertyRule()
- * @generated
- */
- EReference getAppliedStereotypePropertyRule_Value();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule <em>Expression Value Rule</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Expression Value Rule</em>'.
- * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule
- * @generated
- */
- EClass getExpressionValueRule();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule#getExpression <em>Expression</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Expression</em>'.
- * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule#getExpression()
- * @see #getExpressionValueRule()
- * @generated
- */
- EReference getExpressionValueRule_Expression();
-
- /**
- * Returns the factory that creates the instances of the model.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the factory that creates the instances of the model.
- * @generated
- */
- AppliedStereotypePropertyFactory getAppliedStereotypePropertyFactory();
-
- /**
- * <!-- begin-user-doc -->
- * Defines literals for the meta objects that represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @generated
- */
- interface Literals
- {
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyRuleImpl <em>Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyPackageImpl#getAppliedStereotypePropertyRule()
- * @generated
- */
- EClass APPLIED_STEREOTYPE_PROPERTY_RULE = eINSTANCE.getAppliedStereotypePropertyRule();
-
- /**
- * The meta object literal for the '<em><b>Value</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE = eINSTANCE.getAppliedStereotypePropertyRule_Value();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.ExpressionValueRuleImpl <em>Expression Value Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.ExpressionValueRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyPackageImpl#getExpressionValueRule()
- * @generated
- */
- EClass EXPRESSION_VALUE_RULE = eINSTANCE.getExpressionValueRule();
-
- /**
- * The meta object literal for the '<em><b>Expression</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference EXPRESSION_VALUE_RULE__EXPRESSION = eINSTANCE.getExpressionValueRule_Expression();
-
- }
-
-} //AppliedStereotypePropertyPackage
+public interface AppliedStereotypePropertyPackage extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNAME = "appliedStereotypeProperty";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNS_URI = "http://www.eclipse.org/papyrus/uml/textedit/property/xtext/StereotypeProperty";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNS_PREFIX = "appliedStereotypeProperty";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ AppliedStereotypePropertyPackage eINSTANCE = org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyRuleImpl <em>Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyPackageImpl#getAppliedStereotypePropertyRule()
+ * @generated
+ */
+ int APPLIED_STEREOTYPE_PROPERTY_RULE = 0;
+
+ /**
+ * The feature id for the '<em><b>Value</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE = 0;
+
+ /**
+ * The number of structural features of the '<em>Rule</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int APPLIED_STEREOTYPE_PROPERTY_RULE_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.ExpressionValueRuleImpl <em>Expression Value Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.ExpressionValueRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyPackageImpl#getExpressionValueRule()
+ * @generated
+ */
+ int EXPRESSION_VALUE_RULE = 1;
+
+ /**
+ * The feature id for the '<em><b>Expression</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EXPRESSION_VALUE_RULE__EXPRESSION = 0;
+
+ /**
+ * The number of structural features of the '<em>Expression Value Rule</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EXPRESSION_VALUE_RULE_FEATURE_COUNT = 1;
+
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule <em>Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Rule</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule
+ * @generated
+ */
+ EClass getAppliedStereotypePropertyRule();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule#getValue <em>Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Value</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule#getValue()
+ * @see #getAppliedStereotypePropertyRule()
+ * @generated
+ */
+ EReference getAppliedStereotypePropertyRule_Value();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule <em>Expression Value Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Expression Value Rule</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule
+ * @generated
+ */
+ EClass getExpressionValueRule();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule#getExpression <em>Expression</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Expression</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule#getExpression()
+ * @see #getExpressionValueRule()
+ * @generated
+ */
+ EReference getExpressionValueRule_Expression();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ AppliedStereotypePropertyFactory getAppliedStereotypePropertyFactory();
+
+ /**
+ * <!-- begin-user-doc -->
+ * Defines literals for the meta objects that represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ interface Literals {
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyRuleImpl <em>Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyPackageImpl#getAppliedStereotypePropertyRule()
+ * @generated
+ */
+ EClass APPLIED_STEREOTYPE_PROPERTY_RULE = eINSTANCE.getAppliedStereotypePropertyRule();
+
+ /**
+ * The meta object literal for the '<em><b>Value</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE = eINSTANCE.getAppliedStereotypePropertyRule_Value();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.ExpressionValueRuleImpl <em>Expression Value Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.ExpressionValueRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyPackageImpl#getExpressionValueRule()
+ * @generated
+ */
+ EClass EXPRESSION_VALUE_RULE = eINSTANCE.getExpressionValueRule();
+
+ /**
+ * The meta object literal for the '<em><b>Expression</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference EXPRESSION_VALUE_RULE__EXPRESSION = eINSTANCE.getExpressionValueRule_Expression();
+
+ }
+
+} // AppliedStereotypePropertyPackage
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/AppliedStereotypePropertyRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/AppliedStereotypePropertyRule.java
index f2e3ad4e4db..5e8f275b84b 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/AppliedStereotypePropertyRule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/AppliedStereotypePropertyRule.java
@@ -13,39 +13,41 @@ import org.eclipse.emf.ecore.EObject;
* The following features are supported:
* </p>
* <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule#getValue <em>Value</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule#getValue <em>Value</em>}</li>
* </ul>
*
* @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage#getAppliedStereotypePropertyRule()
* @model
* @generated
*/
-public interface AppliedStereotypePropertyRule extends EObject
-{
- /**
- * Returns the value of the '<em><b>Value</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Value</em>' containment reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Value</em>' containment reference.
- * @see #setValue(ExpressionValueRule)
- * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage#getAppliedStereotypePropertyRule_Value()
- * @model containment="true"
- * @generated
- */
- ExpressionValueRule getValue();
+public interface AppliedStereotypePropertyRule extends EObject {
+ /**
+ * Returns the value of the '<em><b>Value</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Value</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Value</em>' containment reference.
+ * @see #setValue(ExpressionValueRule)
+ * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage#getAppliedStereotypePropertyRule_Value()
+ * @model containment="true"
+ * @generated
+ */
+ ExpressionValueRule getValue();
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule#getValue <em>Value</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Value</em>' containment reference.
- * @see #getValue()
- * @generated
- */
- void setValue(ExpressionValueRule value);
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule#getValue <em>Value</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Value</em>' containment reference.
+ * @see #getValue()
+ * @generated
+ */
+ void setValue(ExpressionValueRule value);
} // AppliedStereotypePropertyRule
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/ExpressionValueRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/ExpressionValueRule.java
index 7eda73a4019..8488a817dd4 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/ExpressionValueRule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/ExpressionValueRule.java
@@ -3,7 +3,6 @@
package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty;
import org.eclipse.emf.ecore.EObject;
-
import org.eclipse.papyrus.uml.alf.Expression;
/**
@@ -15,39 +14,41 @@ import org.eclipse.papyrus.uml.alf.Expression;
* The following features are supported:
* </p>
* <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule#getExpression <em>Expression</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule#getExpression <em>Expression</em>}</li>
* </ul>
*
* @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage#getExpressionValueRule()
* @model
* @generated
*/
-public interface ExpressionValueRule extends EObject
-{
- /**
- * Returns the value of the '<em><b>Expression</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Expression</em>' containment reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Expression</em>' containment reference.
- * @see #setExpression(Expression)
- * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage#getExpressionValueRule_Expression()
- * @model containment="true"
- * @generated
- */
- Expression getExpression();
+public interface ExpressionValueRule extends EObject {
+ /**
+ * Returns the value of the '<em><b>Expression</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Expression</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Expression</em>' containment reference.
+ * @see #setExpression(Expression)
+ * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage#getExpressionValueRule_Expression()
+ * @model containment="true"
+ * @generated
+ */
+ Expression getExpression();
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule#getExpression <em>Expression</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Expression</em>' containment reference.
- * @see #getExpression()
- * @generated
- */
- void setExpression(Expression value);
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule#getExpression <em>Expression</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Expression</em>' containment reference.
+ * @see #getExpression()
+ * @generated
+ */
+ void setExpression(Expression value);
} // ExpressionValueRule
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/AppliedStereotypePropertyFactoryImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/AppliedStereotypePropertyFactoryImpl.java
index b8e369b52fd..e1920fed8d5 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/AppliedStereotypePropertyFactoryImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/AppliedStereotypePropertyFactoryImpl.java
@@ -5,114 +5,111 @@ package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereot
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
-
import org.eclipse.emf.ecore.impl.EFactoryImpl;
-
import org.eclipse.emf.ecore.plugin.EcorePlugin;
-
-import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.*;
+import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyFactory;
+import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage;
+import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule;
+import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class AppliedStereotypePropertyFactoryImpl extends EFactoryImpl implements AppliedStereotypePropertyFactory
-{
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static AppliedStereotypePropertyFactory init()
- {
- try
- {
- AppliedStereotypePropertyFactory theAppliedStereotypePropertyFactory = (AppliedStereotypePropertyFactory)EPackage.Registry.INSTANCE.getEFactory(AppliedStereotypePropertyPackage.eNS_URI);
- if (theAppliedStereotypePropertyFactory != null)
- {
- return theAppliedStereotypePropertyFactory;
- }
- }
- catch (Exception exception)
- {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new AppliedStereotypePropertyFactoryImpl();
- }
+public class AppliedStereotypePropertyFactoryImpl extends EFactoryImpl implements AppliedStereotypePropertyFactory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static AppliedStereotypePropertyFactory init() {
+ try {
+ AppliedStereotypePropertyFactory theAppliedStereotypePropertyFactory = (AppliedStereotypePropertyFactory) EPackage.Registry.INSTANCE.getEFactory(AppliedStereotypePropertyPackage.eNS_URI);
+ if (theAppliedStereotypePropertyFactory != null) {
+ return theAppliedStereotypePropertyFactory;
+ }
+ } catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new AppliedStereotypePropertyFactoryImpl();
+ }
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public AppliedStereotypePropertyFactoryImpl()
- {
- super();
- }
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public AppliedStereotypePropertyFactoryImpl() {
+ super();
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass)
- {
- switch (eClass.getClassifierID())
- {
- case AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE: return createAppliedStereotypePropertyRule();
- case AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE: return createExpressionValueRule();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE:
+ return createAppliedStereotypePropertyRule();
+ case AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE:
+ return createExpressionValueRule();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public AppliedStereotypePropertyRule createAppliedStereotypePropertyRule()
- {
- AppliedStereotypePropertyRuleImpl appliedStereotypePropertyRule = new AppliedStereotypePropertyRuleImpl();
- return appliedStereotypePropertyRule;
- }
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public AppliedStereotypePropertyRule createAppliedStereotypePropertyRule() {
+ AppliedStereotypePropertyRuleImpl appliedStereotypePropertyRule = new AppliedStereotypePropertyRuleImpl();
+ return appliedStereotypePropertyRule;
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ExpressionValueRule createExpressionValueRule()
- {
- ExpressionValueRuleImpl expressionValueRule = new ExpressionValueRuleImpl();
- return expressionValueRule;
- }
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ExpressionValueRule createExpressionValueRule() {
+ ExpressionValueRuleImpl expressionValueRule = new ExpressionValueRuleImpl();
+ return expressionValueRule;
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public AppliedStereotypePropertyPackage getAppliedStereotypePropertyPackage()
- {
- return (AppliedStereotypePropertyPackage)getEPackage();
- }
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public AppliedStereotypePropertyPackage getAppliedStereotypePropertyPackage() {
+ return (AppliedStereotypePropertyPackage) getEPackage();
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static AppliedStereotypePropertyPackage getPackage()
- {
- return AppliedStereotypePropertyPackage.eINSTANCE;
- }
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static AppliedStereotypePropertyPackage getPackage() {
+ return AppliedStereotypePropertyPackage.eINSTANCE;
+ }
-} //AppliedStereotypePropertyFactoryImpl
+} // AppliedStereotypePropertyFactoryImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/AppliedStereotypePropertyPackageImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/AppliedStereotypePropertyPackageImpl.java
index e1fb983a45d..0f547d61558 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/AppliedStereotypePropertyPackageImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/AppliedStereotypePropertyPackageImpl.java
@@ -5,11 +5,8 @@ package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereot
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
-
import org.eclipse.emf.ecore.impl.EPackageImpl;
-
import org.eclipse.papyrus.uml.alf.AlfPackage;
-
import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyFactory;
import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage;
import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule;
@@ -19,209 +16,222 @@ import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereoty
* <!-- begin-user-doc -->
* An implementation of the model <b>Package</b>.
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class AppliedStereotypePropertyPackageImpl extends EPackageImpl implements AppliedStereotypePropertyPackage
-{
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass appliedStereotypePropertyRuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass expressionValueRuleEClass = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
- * package URI value.
- * <p>Note: the correct way to create the package is via the static
- * factory method {@link #init init()}, which also performs
- * initialization of the package, or returns the registered package,
- * if one already exists.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private AppliedStereotypePropertyPackageImpl()
- {
- super(eNS_URI, AppliedStereotypePropertyFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
- *
- * <p>This method is used to initialize {@link AppliedStereotypePropertyPackage#eINSTANCE} when that field is accessed.
- * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static AppliedStereotypePropertyPackage init()
- {
- if (isInited) return (AppliedStereotypePropertyPackage)EPackage.Registry.INSTANCE.getEPackage(AppliedStereotypePropertyPackage.eNS_URI);
-
- // Obtain or create and register package
- AppliedStereotypePropertyPackageImpl theAppliedStereotypePropertyPackage = (AppliedStereotypePropertyPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof AppliedStereotypePropertyPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new AppliedStereotypePropertyPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- AlfPackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- theAppliedStereotypePropertyPackage.createPackageContents();
-
- // Initialize created meta-data
- theAppliedStereotypePropertyPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theAppliedStereotypePropertyPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(AppliedStereotypePropertyPackage.eNS_URI, theAppliedStereotypePropertyPackage);
- return theAppliedStereotypePropertyPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getAppliedStereotypePropertyRule()
- {
- return appliedStereotypePropertyRuleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getAppliedStereotypePropertyRule_Value()
- {
- return (EReference)appliedStereotypePropertyRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getExpressionValueRule()
- {
- return expressionValueRuleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getExpressionValueRule_Expression()
- {
- return (EReference)expressionValueRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public AppliedStereotypePropertyFactory getAppliedStereotypePropertyFactory()
- {
- return (AppliedStereotypePropertyFactory)getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void createPackageContents()
- {
- if (isCreated) return;
- isCreated = true;
-
- // Create classes and their features
- appliedStereotypePropertyRuleEClass = createEClass(APPLIED_STEREOTYPE_PROPERTY_RULE);
- createEReference(appliedStereotypePropertyRuleEClass, APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE);
-
- expressionValueRuleEClass = createEClass(EXPRESSION_VALUE_RULE);
- createEReference(expressionValueRuleEClass, EXPRESSION_VALUE_RULE__EXPRESSION);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void initializePackageContents()
- {
- if (isInitialized) return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Obtain other dependent packages
- AlfPackage theAlfPackage = (AlfPackage)EPackage.Registry.INSTANCE.getEPackage(AlfPackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
-
- // Initialize classes and features; add operations and parameters
- initEClass(appliedStereotypePropertyRuleEClass, AppliedStereotypePropertyRule.class, "AppliedStereotypePropertyRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getAppliedStereotypePropertyRule_Value(), this.getExpressionValueRule(), null, "value", null, 0, 1, AppliedStereotypePropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(expressionValueRuleEClass, ExpressionValueRule.class, "ExpressionValueRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getExpressionValueRule_Expression(), theAlfPackage.getExpression(), null, "expression", null, 0, 1, ExpressionValueRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} //AppliedStereotypePropertyPackageImpl
+public class AppliedStereotypePropertyPackageImpl extends EPackageImpl implements AppliedStereotypePropertyPackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass appliedStereotypePropertyRuleEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass expressionValueRuleEClass = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ * <p>
+ * Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private AppliedStereotypePropertyPackageImpl() {
+ super(eNS_URI, AppliedStereotypePropertyFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ *
+ * <p>
+ * This method is used to initialize {@link AppliedStereotypePropertyPackage#eINSTANCE} when that field is accessed.
+ * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static AppliedStereotypePropertyPackage init() {
+ if (isInited)
+ return (AppliedStereotypePropertyPackage) EPackage.Registry.INSTANCE.getEPackage(AppliedStereotypePropertyPackage.eNS_URI);
+
+ // Obtain or create and register package
+ Object registeredAppliedStereotypePropertyPackage = EPackage.Registry.INSTANCE.get(eNS_URI);
+ AppliedStereotypePropertyPackageImpl theAppliedStereotypePropertyPackage = registeredAppliedStereotypePropertyPackage instanceof AppliedStereotypePropertyPackageImpl ? (AppliedStereotypePropertyPackageImpl) registeredAppliedStereotypePropertyPackage
+ : new AppliedStereotypePropertyPackageImpl();
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ AlfPackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ theAppliedStereotypePropertyPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theAppliedStereotypePropertyPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theAppliedStereotypePropertyPackage.freeze();
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(AppliedStereotypePropertyPackage.eNS_URI, theAppliedStereotypePropertyPackage);
+ return theAppliedStereotypePropertyPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getAppliedStereotypePropertyRule() {
+ return appliedStereotypePropertyRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getAppliedStereotypePropertyRule_Value() {
+ return (EReference) appliedStereotypePropertyRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getExpressionValueRule() {
+ return expressionValueRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getExpressionValueRule_Expression() {
+ return (EReference) expressionValueRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public AppliedStereotypePropertyFactory getAppliedStereotypePropertyFactory() {
+ return (AppliedStereotypePropertyFactory) getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void createPackageContents() {
+ if (isCreated)
+ return;
+ isCreated = true;
+
+ // Create classes and their features
+ appliedStereotypePropertyRuleEClass = createEClass(APPLIED_STEREOTYPE_PROPERTY_RULE);
+ createEReference(appliedStereotypePropertyRuleEClass, APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE);
+
+ expressionValueRuleEClass = createEClass(EXPRESSION_VALUE_RULE);
+ createEReference(expressionValueRuleEClass, EXPRESSION_VALUE_RULE__EXPRESSION);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized)
+ return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ AlfPackage theAlfPackage = (AlfPackage) EPackage.Registry.INSTANCE.getEPackage(AlfPackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(appliedStereotypePropertyRuleEClass, AppliedStereotypePropertyRule.class, "AppliedStereotypePropertyRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getAppliedStereotypePropertyRule_Value(), this.getExpressionValueRule(), null, "value", null, 0, 1, AppliedStereotypePropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(expressionValueRuleEClass, ExpressionValueRule.class, "ExpressionValueRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getExpressionValueRule_Expression(), theAlfPackage.getExpression(), null, "expression", null, 0, 1, ExpressionValueRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} // AppliedStereotypePropertyPackageImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/AppliedStereotypePropertyRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/AppliedStereotypePropertyRuleImpl.java
index 431d1cec84f..55e34e96181 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/AppliedStereotypePropertyRuleImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/AppliedStereotypePropertyRuleImpl.java
@@ -4,13 +4,10 @@ package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereot
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage;
import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule;
import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule;
@@ -23,172 +20,168 @@ import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereoty
* The following features are implemented:
* </p>
* <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyRuleImpl#getValue <em>Value</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.AppliedStereotypePropertyRuleImpl#getValue <em>Value</em>}</li>
* </ul>
*
* @generated
*/
-public class AppliedStereotypePropertyRuleImpl extends MinimalEObjectImpl.Container implements AppliedStereotypePropertyRule
-{
- /**
- * The cached value of the '{@link #getValue() <em>Value</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected ExpressionValueRule value;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected AppliedStereotypePropertyRuleImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return AppliedStereotypePropertyPackage.Literals.APPLIED_STEREOTYPE_PROPERTY_RULE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ExpressionValueRule getValue()
- {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetValue(ExpressionValueRule newValue, NotificationChain msgs)
- {
- ExpressionValueRule oldValue = value;
- value = newValue;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE, oldValue, newValue);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setValue(ExpressionValueRule newValue)
- {
- if (newValue != value)
- {
- NotificationChain msgs = null;
- if (value != null)
- msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE, null, msgs);
- if (newValue != null)
- msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE, null, msgs);
- msgs = basicSetValue(newValue, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE, newValue, newValue));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE:
- return basicSetValue(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE:
- return getValue();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE:
- setValue((ExpressionValueRule)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE:
- setValue((ExpressionValueRule)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE:
- return value != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //AppliedStereotypePropertyRuleImpl
+public class AppliedStereotypePropertyRuleImpl extends MinimalEObjectImpl.Container implements AppliedStereotypePropertyRule {
+ /**
+ * The cached value of the '{@link #getValue() <em>Value</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected ExpressionValueRule value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected AppliedStereotypePropertyRuleImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return AppliedStereotypePropertyPackage.Literals.APPLIED_STEREOTYPE_PROPERTY_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ExpressionValueRule getValue() {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetValue(ExpressionValueRule newValue, NotificationChain msgs) {
+ ExpressionValueRule oldValue = value;
+ value = newValue;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE, oldValue, newValue);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setValue(ExpressionValueRule newValue) {
+ if (newValue != value) {
+ NotificationChain msgs = null;
+ if (value != null)
+ msgs = ((InternalEObject) value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE, null, msgs);
+ if (newValue != null)
+ msgs = ((InternalEObject) newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE, null, msgs);
+ msgs = basicSetValue(newValue, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ } else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE, newValue, newValue));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE:
+ return basicSetValue(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE:
+ return getValue();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE:
+ setValue((ExpressionValueRule) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE:
+ setValue((ExpressionValueRule) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE:
+ return value != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // AppliedStereotypePropertyRuleImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/ExpressionValueRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/ExpressionValueRuleImpl.java
index 79592b6590b..c595f824e7e 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/ExpressionValueRuleImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/impl/ExpressionValueRuleImpl.java
@@ -4,15 +4,11 @@ package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereot
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
-
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
import org.eclipse.papyrus.uml.alf.Expression;
-
import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage;
import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule;
@@ -24,172 +20,168 @@ import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereoty
* The following features are implemented:
* </p>
* <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.ExpressionValueRuleImpl#getExpression <em>Expression</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.impl.ExpressionValueRuleImpl#getExpression <em>Expression</em>}</li>
* </ul>
*
* @generated
*/
-public class ExpressionValueRuleImpl extends MinimalEObjectImpl.Container implements ExpressionValueRule
-{
- /**
- * The cached value of the '{@link #getExpression() <em>Expression</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getExpression()
- * @generated
- * @ordered
- */
- protected Expression expression;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ExpressionValueRuleImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return AppliedStereotypePropertyPackage.Literals.EXPRESSION_VALUE_RULE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Expression getExpression()
- {
- return expression;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetExpression(Expression newExpression, NotificationChain msgs)
- {
- Expression oldExpression = expression;
- expression = newExpression;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE__EXPRESSION, oldExpression, newExpression);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setExpression(Expression newExpression)
- {
- if (newExpression != expression)
- {
- NotificationChain msgs = null;
- if (expression != null)
- msgs = ((InternalEObject)expression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE__EXPRESSION, null, msgs);
- if (newExpression != null)
- msgs = ((InternalEObject)newExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE__EXPRESSION, null, msgs);
- msgs = basicSetExpression(newExpression, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE__EXPRESSION, newExpression, newExpression));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE__EXPRESSION:
- return basicSetExpression(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE__EXPRESSION:
- return getExpression();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE__EXPRESSION:
- setExpression((Expression)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE__EXPRESSION:
- setExpression((Expression)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE__EXPRESSION:
- return expression != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //ExpressionValueRuleImpl
+public class ExpressionValueRuleImpl extends MinimalEObjectImpl.Container implements ExpressionValueRule {
+ /**
+ * The cached value of the '{@link #getExpression() <em>Expression</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getExpression()
+ * @generated
+ * @ordered
+ */
+ protected Expression expression;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ExpressionValueRuleImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return AppliedStereotypePropertyPackage.Literals.EXPRESSION_VALUE_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Expression getExpression() {
+ return expression;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetExpression(Expression newExpression, NotificationChain msgs) {
+ Expression oldExpression = expression;
+ expression = newExpression;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE__EXPRESSION, oldExpression, newExpression);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setExpression(Expression newExpression) {
+ if (newExpression != expression) {
+ NotificationChain msgs = null;
+ if (expression != null)
+ msgs = ((InternalEObject) expression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE__EXPRESSION, null, msgs);
+ if (newExpression != null)
+ msgs = ((InternalEObject) newExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE__EXPRESSION, null, msgs);
+ msgs = basicSetExpression(newExpression, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ } else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE__EXPRESSION, newExpression, newExpression));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE__EXPRESSION:
+ return basicSetExpression(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE__EXPRESSION:
+ return getExpression();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE__EXPRESSION:
+ setExpression((Expression) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE__EXPRESSION:
+ setExpression((Expression) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE__EXPRESSION:
+ return expression != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // ExpressionValueRuleImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/util/AppliedStereotypePropertyAdapterFactory.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/util/AppliedStereotypePropertyAdapterFactory.java
index 5d1acc95271..a72d04c13ca 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/util/AppliedStereotypePropertyAdapterFactory.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/util/AppliedStereotypePropertyAdapterFactory.java
@@ -4,149 +4,145 @@ package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereot
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
-
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.*;
+import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage;
+import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule;
+import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule;
/**
* <!-- begin-user-doc -->
* The <b>Adapter Factory</b> for the model.
* It provides an adapter <code>createXXX</code> method for each class of the model.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage
* @generated
*/
-public class AppliedStereotypePropertyAdapterFactory extends AdapterFactoryImpl
-{
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static AppliedStereotypePropertyPackage modelPackage;
+public class AppliedStereotypePropertyAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected static AppliedStereotypePropertyPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public AppliedStereotypePropertyAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = AppliedStereotypePropertyPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ * <!-- begin-user-doc -->
+ * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
+ * <!-- end-user-doc -->
+ *
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject) object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public AppliedStereotypePropertyAdapterFactory()
- {
- if (modelPackage == null)
- {
- modelPackage = AppliedStereotypePropertyPackage.eINSTANCE;
- }
- }
+ /**
+ * The switch that delegates to the <code>createXXX</code> methods.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected AppliedStereotypePropertySwitch<Adapter> modelSwitch = new AppliedStereotypePropertySwitch<Adapter>() {
+ @Override
+ public Adapter caseAppliedStereotypePropertyRule(AppliedStereotypePropertyRule object) {
+ return createAppliedStereotypePropertyRuleAdapter();
+ }
- /**
- * Returns whether this factory is applicable for the type of the object.
- * <!-- begin-user-doc -->
- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
- * <!-- end-user-doc -->
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object)
- {
- if (object == modelPackage)
- {
- return true;
- }
- if (object instanceof EObject)
- {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
+ @Override
+ public Adapter caseExpressionValueRule(ExpressionValueRule object) {
+ return createExpressionValueRuleAdapter();
+ }
- /**
- * The switch that delegates to the <code>createXXX</code> methods.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected AppliedStereotypePropertySwitch<Adapter> modelSwitch =
- new AppliedStereotypePropertySwitch<Adapter>()
- {
- @Override
- public Adapter caseAppliedStereotypePropertyRule(AppliedStereotypePropertyRule object)
- {
- return createAppliedStereotypePropertyRuleAdapter();
- }
- @Override
- public Adapter caseExpressionValueRule(ExpressionValueRule object)
- {
- return createExpressionValueRuleAdapter();
- }
- @Override
- public Adapter defaultCase(EObject object)
- {
- return createEObjectAdapter();
- }
- };
+ @Override
+ public Adapter defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
- /**
- * Creates an adapter for the <code>target</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param target the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target)
- {
- return modelSwitch.doSwitch((EObject)target);
- }
+ /**
+ * Creates an adapter for the <code>target</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @param target
+ * the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject) target);
+ }
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule <em>Rule</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule
- * @generated
- */
- public Adapter createAppliedStereotypePropertyRuleAdapter()
- {
- return null;
- }
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule <em>Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule
+ * @generated
+ */
+ public Adapter createAppliedStereotypePropertyRuleAdapter() {
+ return null;
+ }
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule <em>Expression Value Rule</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule
- * @generated
- */
- public Adapter createExpressionValueRuleAdapter()
- {
- return null;
- }
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule <em>Expression Value Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule
+ * @generated
+ */
+ public Adapter createExpressionValueRuleAdapter() {
+ return null;
+ }
- /**
- * Creates a new adapter for the default case.
- * <!-- begin-user-doc -->
- * This default implementation returns null.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter()
- {
- return null;
- }
+ /**
+ * Creates a new adapter for the default case.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null.
+ * <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
-} //AppliedStereotypePropertyAdapterFactory
+} // AppliedStereotypePropertyAdapterFactory
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/util/AppliedStereotypePropertySwitch.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/util/AppliedStereotypePropertySwitch.java
index 9f26d6dfee2..9eb1d66ba2e 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/util/AppliedStereotypePropertySwitch.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/appliedStereotypeProperty/util/AppliedStereotypePropertySwitch.java
@@ -4,10 +4,10 @@ package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereot
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
-
import org.eclipse.emf.ecore.util.Switch;
-
-import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.*;
+import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage;
+import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule;
+import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule;
/**
* <!-- begin-user-doc -->
@@ -19,124 +19,128 @@ import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereoty
* until a non-null result is returned,
* which is the result of the switch.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage
* @generated
*/
-public class AppliedStereotypePropertySwitch<T> extends Switch<T>
-{
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static AppliedStereotypePropertyPackage modelPackage;
+public class AppliedStereotypePropertySwitch<T> extends Switch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected static AppliedStereotypePropertyPackage modelPackage;
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public AppliedStereotypePropertySwitch()
- {
- if (modelPackage == null)
- {
- modelPackage = AppliedStereotypePropertyPackage.eINSTANCE;
- }
- }
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public AppliedStereotypePropertySwitch() {
+ if (modelPackage == null) {
+ modelPackage = AppliedStereotypePropertyPackage.eINSTANCE;
+ }
+ }
- /**
- * Checks whether this is a switch for the given package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param ePackage the package in question.
- * @return whether this is a switch for the given package.
- * @generated
- */
- @Override
- protected boolean isSwitchFor(EPackage ePackage)
- {
- return ePackage == modelPackage;
- }
+ /**
+ * Checks whether this is a switch for the given package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @param ePackage
+ * the package in question.
+ * @return whether this is a switch for the given package.
+ * @generated
+ */
+ @Override
+ protected boolean isSwitchFor(EPackage ePackage) {
+ return ePackage == modelPackage;
+ }
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- @Override
- protected T doSwitch(int classifierID, EObject theEObject)
- {
- switch (classifierID)
- {
- case AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE:
- {
- AppliedStereotypePropertyRule appliedStereotypePropertyRule = (AppliedStereotypePropertyRule)theEObject;
- T result = caseAppliedStereotypePropertyRule(appliedStereotypePropertyRule);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE:
- {
- ExpressionValueRule expressionValueRule = (ExpressionValueRule)theEObject;
- T result = caseExpressionValueRule(expressionValueRule);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE: {
+ AppliedStereotypePropertyRule appliedStereotypePropertyRule = (AppliedStereotypePropertyRule) theEObject;
+ T result = caseAppliedStereotypePropertyRule(appliedStereotypePropertyRule);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE: {
+ ExpressionValueRule expressionValueRule = (ExpressionValueRule) theEObject;
+ T result = caseExpressionValueRule(expressionValueRule);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
+ }
+ }
- /**
- * Returns the result of interpreting the object as an instance of '<em>Rule</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseAppliedStereotypePropertyRule(AppliedStereotypePropertyRule object)
- {
- return null;
- }
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Rule</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAppliedStereotypePropertyRule(AppliedStereotypePropertyRule object) {
+ return null;
+ }
- /**
- * Returns the result of interpreting the object as an instance of '<em>Expression Value Rule</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Expression Value Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseExpressionValueRule(ExpressionValueRule object)
- {
- return null;
- }
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Expression Value Rule</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Expression Value Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseExpressionValueRule(ExpressionValueRule object) {
+ return null;
+ }
- /**
- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- @Override
- public T defaultCase(EObject object)
- {
- return null;
- }
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ * <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
-} //AppliedStereotypePropertySwitch
+} // AppliedStereotypePropertySwitch
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/AppliedStereotypePropertyAntlrTokenFileProvider.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/AppliedStereotypePropertyAntlrTokenFileProvider.java
index 726264c800b..828e6360c71 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/AppliedStereotypePropertyAntlrTokenFileProvider.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/AppliedStereotypePropertyAntlrTokenFileProvider.java
@@ -4,13 +4,14 @@
package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.parser.antlr;
import java.io.InputStream;
+
import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
public class AppliedStereotypePropertyAntlrTokenFileProvider implements IAntlrTokenFileProvider {
-
+
@Override
public InputStream getAntlrTokenFile() {
ClassLoader classLoader = getClass().getClassLoader();
- return classLoader.getResourceAsStream("org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/internal/InternalAppliedStereotypeProperty.tokens");
+ return classLoader.getResourceAsStream("org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/internal/InternalAppliedStereotypeProperty.tokens");
}
}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/AppliedStereotypePropertyParser.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/AppliedStereotypePropertyParser.java
index 8cd5991d9dc..5ba2e7e37b6 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/AppliedStereotypePropertyParser.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/AppliedStereotypePropertyParser.java
@@ -3,37 +3,37 @@
*/
package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.parser.antlr;
-import com.google.inject.Inject;
-
-import org.eclipse.xtext.parser.antlr.XtextTokenStream;
import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.services.AppliedStereotypePropertyGrammarAccess;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream;
+
+import com.google.inject.Inject;
public class AppliedStereotypePropertyParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {
-
+
@Inject
private AppliedStereotypePropertyGrammarAccess grammarAccess;
-
+
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
}
-
+
@Override
protected org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.parser.antlr.internal.InternalAppliedStereotypePropertyParser createParser(XtextTokenStream stream) {
return new org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.parser.antlr.internal.InternalAppliedStereotypePropertyParser(stream, getGrammarAccess());
}
-
- @Override
+
+ @Override
protected String getDefaultRuleName() {
return "AppliedStereotypePropertyRule";
}
-
+
public AppliedStereotypePropertyGrammarAccess getGrammarAccess() {
return this.grammarAccess;
}
-
+
public void setGrammarAccess(AppliedStereotypePropertyGrammarAccess grammarAccess) {
this.grammarAccess = grammarAccess;
}
-
+
}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/internal/InternalAppliedStereotypePropertyLexer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/internal/InternalAppliedStereotypePropertyLexer.java
index af520a509a4..b91b03a9833 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/internal/InternalAppliedStereotypePropertyLexer.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/internal/InternalAppliedStereotypePropertyLexer.java
@@ -1,4761 +1,4618 @@
package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.parser.antlr.internal;
+import org.antlr.runtime.BaseRecognizer;
+import org.antlr.runtime.CharStream;
+import org.antlr.runtime.DFA;
+import org.antlr.runtime.EarlyExitException;
+import org.antlr.runtime.IntStream;
+import org.antlr.runtime.MismatchedSetException;
+import org.antlr.runtime.NoViableAltException;
+import org.antlr.runtime.RecognitionException;
+import org.antlr.runtime.RecognizerSharedState;
// 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 InternalAppliedStereotypePropertyLexer 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=5;
- 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=7;
- 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=4;
- public static final int T__71=71;
- public static final int T__72=72;
- public static final int RULE_STRING=6;
- 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 InternalAppliedStereotypePropertyLexer() {;}
- public InternalAppliedStereotypePropertyLexer(CharStream input) {
- this(input, new RecognizerSharedState());
- }
- public InternalAppliedStereotypePropertyLexer(CharStream input, RecognizerSharedState state) {
- super(input,state);
-
- }
- public String getGrammarFileName() { return "InternalAppliedStereotypeProperty.g"; }
-
- // $ANTLR start "T__15"
- public final void mT__15() throws RecognitionException {
- try {
- int _type = T__15;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAppliedStereotypeProperty.g:11:7: ( '=' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:12:7: ( '@' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:13:7: ( '(' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:14:7: ( ')' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:15:7: ( ',' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:16:7: ( '=>' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:17:7: ( '*' )
- // InternalAppliedStereotypeProperty.g:17:9: '*'
- {
- match('*');
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:18:7: ( 'namespace' )
- // InternalAppliedStereotypeProperty.g:18:9: 'namespace'
- {
- match("namespace");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:19:7: ( ';' )
- // InternalAppliedStereotypeProperty.g:19:9: ';'
- {
- match(';');
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:20:7: ( 'import' )
- // InternalAppliedStereotypeProperty.g:20:9: 'import'
- {
- match("import");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:21:7: ( 'as' )
- // InternalAppliedStereotypeProperty.g:21:9: 'as'
- {
- match("as");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:22:7: ( '::' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:23:7: ( '.' )
- // InternalAppliedStereotypeProperty.g:23:9: '.'
- {
- match('.');
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:24:7: ( 'public' )
- // InternalAppliedStereotypeProperty.g:24:9: 'public'
- {
- match("public");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:25:7: ( 'private' )
- // InternalAppliedStereotypeProperty.g:25:9: 'private'
- {
- match("private");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:26:7: ( 'protected' )
- // InternalAppliedStereotypeProperty.g:26:9: 'protected'
- {
- match("protected");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:27:7: ( 'package' )
- // InternalAppliedStereotypeProperty.g:27:9: 'package'
- {
- match("package");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:28:7: ( '{' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:29:7: ( '}' )
- // InternalAppliedStereotypeProperty.g:29:9: '}'
- {
- match('}');
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:30:7: ( 'specializes' )
- // InternalAppliedStereotypeProperty.g:30:9: 'specializes'
- {
- match("specializes");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:31:7: ( 'abstract' )
- // InternalAppliedStereotypeProperty.g:31:9: 'abstract'
- {
- match("abstract");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:32:7: ( 'class' )
- // InternalAppliedStereotypeProperty.g:32:9: 'class'
- {
- match("class");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:33:7: ( '<' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:34:7: ( '>' )
- // InternalAppliedStereotypeProperty.g:34:9: '>'
- {
- match('>');
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:35:7: ( 'active' )
- // InternalAppliedStereotypeProperty.g:35:9: 'active'
- {
- match("active");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:36:7: ( 'do' )
- // InternalAppliedStereotypeProperty.g:36:9: 'do'
- {
- match("do");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:37:7: ( 'datatype' )
- // InternalAppliedStereotypeProperty.g:37:9: 'datatype'
- {
- match("datatype");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:38:7: ( 'assoc' )
- // InternalAppliedStereotypeProperty.g:38:9: 'assoc'
- {
- match("assoc");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:39:7: ( 'enum' )
- // InternalAppliedStereotypeProperty.g:39:9: 'enum'
- {
- match("enum");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:40:7: ( 'signal' )
- // InternalAppliedStereotypeProperty.g:40:9: 'signal'
- {
- match("signal");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:41:7: ( 'activity' )
- // InternalAppliedStereotypeProperty.g:41:9: 'activity'
- {
- match("activity");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:42:7: ( ':' )
- // InternalAppliedStereotypeProperty.g:42:9: ':'
- {
- match(':');
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:43:7: ( 'in' )
- // InternalAppliedStereotypeProperty.g:43:9: 'in'
- {
- match("in");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:44:7: ( 'out' )
- // InternalAppliedStereotypeProperty.g:44:9: 'out'
- {
- match("out");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:45:7: ( 'inout' )
- // InternalAppliedStereotypeProperty.g:45:9: 'inout'
- {
- match("inout");
-
-
- }
-
- 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;
- // InternalAppliedStereotypeProperty.g:46:7: ( 'compose' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:47:7: ( 'any' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:48:7: ( '[' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:49:7: ( ']' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:50:7: ( '..' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:51:7: ( 'ordered' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:52:7: ( 'nonunique' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:53:7: ( 'sequence' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:54:7: ( 'redefines' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:55:7: ( 'receive' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:56:7: ( '->' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:57:7: ( 'reduce' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:58:7: ( 'this' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:59:7: ( 'super' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:60:7: ( 'new' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:61:7: ( 'createLink' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:62:7: ( 'destroyLink' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:63:7: ( 'clearAssoc' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:64:7: ( 'allInstances' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:65:7: ( 'null' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:66:7: ( '++' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:67:7: ( '--' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:68:7: ( '!' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:69:7: ( '~' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:70:7: ( '+' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:71:7: ( '-' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:72:7: ( '$' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:73:7: ( '/' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:74:7: ( '%' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:75:7: ( '<<' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:76:7: ( '>>' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:77:7: ( '>>>' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:78:7: ( '<=' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:79:7: ( '>=' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:80:7: ( 'instanceof' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:81:7: ( 'hastype' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:82:7: ( '==' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:83:7: ( '!=' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:84:7: ( '&' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:85:7: ( '^' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:86:7: ( '|' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:87:7: ( '&&' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:88:7: ( '||' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:89:7: ( '?' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:90:7: ( '+=' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:91:7: ( '-=' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:92:7: ( '*=' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:93:7: ( '/=' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:94:7: ( '%=' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:95:7: ( '&=' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:96:8: ( '|=' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:97:8: ( '^=' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:98:8: ( '<<=' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:99:8: ( '>>=' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:100:8: ( '>>>=' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:101:8: ( 'let' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:102:8: ( 'if' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:103:8: ( 'else' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:104:8: ( 'or' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:105:8: ( 'switch' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:106:8: ( 'case' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:107:8: ( 'default' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:108:8: ( 'while' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:109:8: ( 'for' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:110:8: ( 'break' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:111:8: ( 'return' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:112:8: ( 'accept' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:113:8: ( 'classify' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:114:8: ( 'from' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:115:8: ( 'to' )
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:12797:20: ( ( 'true' | 'false' ) )
- // InternalAppliedStereotypeProperty.g:12797:22: ( 'true' | 'false' )
- {
- // InternalAppliedStereotypeProperty.g:12797: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 :
- // InternalAppliedStereotypeProperty.g:12797:23: 'true'
- {
- match("true");
-
-
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:12797: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;
- // InternalAppliedStereotypeProperty.g:12799: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' )* ) )
- // InternalAppliedStereotypeProperty.g:12799: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' )* )
- {
- // InternalAppliedStereotypeProperty.g:12799: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 :
- // InternalAppliedStereotypeProperty.g:12799:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
- {
- // InternalAppliedStereotypeProperty.g:12799: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 :
- // InternalAppliedStereotypeProperty.g:12799:24: '0'
- {
- match('0');
-
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:12799:28: '1' .. '9' ( ( '_' )? '0' .. '9' )*
- {
- matchRange('1','9');
- // InternalAppliedStereotypeProperty.g:12799: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 :
- // InternalAppliedStereotypeProperty.g:12799:38: ( '_' )? '0' .. '9'
- {
- // InternalAppliedStereotypeProperty.g:12799:38: ( '_' )?
- int alt2=2;
- int LA2_0 = input.LA(1);
-
- if ( (LA2_0=='_') ) {
- alt2=1;
- }
- switch (alt2) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:12799:38: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0','9');
-
- }
- break;
-
- default :
- break loop3;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:12799:55: ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )*
- {
- // InternalAppliedStereotypeProperty.g:12799: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 :
- // InternalAppliedStereotypeProperty.g:12799:56: '0b'
- {
- match("0b");
-
-
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:12799:61: '0B'
- {
- match("0B");
-
-
- }
- break;
-
- }
-
- matchRange('0','1');
- // InternalAppliedStereotypeProperty.g:12799: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 :
- // InternalAppliedStereotypeProperty.g:12799:77: ( '_' )? '0' .. '1'
- {
- // InternalAppliedStereotypeProperty.g:12799:77: ( '_' )?
- int alt6=2;
- int LA6_0 = input.LA(1);
-
- if ( (LA6_0=='_') ) {
- alt6=1;
- }
- switch (alt6) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:12799:77: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0','1');
-
- }
- break;
-
- default :
- break loop7;
- }
- } while (true);
-
-
- }
- break;
- case 3 :
- // InternalAppliedStereotypeProperty.g:12799:93: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
- {
- // InternalAppliedStereotypeProperty.g:12799: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 :
- // InternalAppliedStereotypeProperty.g:12799:94: '0x'
- {
- match("0x");
-
-
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:12799: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;}
-
- // InternalAppliedStereotypeProperty.g:12799: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 :
- // InternalAppliedStereotypeProperty.g:12799:135: ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
- {
- // InternalAppliedStereotypeProperty.g:12799:135: ( '_' )?
- int alt9=2;
- int LA9_0 = input.LA(1);
-
- if ( (LA9_0=='_') ) {
- alt9=1;
- }
- switch (alt9) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:12799: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 :
- // InternalAppliedStereotypeProperty.g:12799:171: '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )*
- {
- match('0');
- // InternalAppliedStereotypeProperty.g:12799:175: ( '_' )?
- int alt11=2;
- int LA11_0 = input.LA(1);
-
- if ( (LA11_0=='_') ) {
- alt11=1;
- }
- switch (alt11) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:12799:175: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0','7');
- // InternalAppliedStereotypeProperty.g:12799: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 :
- // InternalAppliedStereotypeProperty.g:12799:190: ( '_' )? '0' .. '7'
- {
- // InternalAppliedStereotypeProperty.g:12799:190: ( '_' )?
- int alt12=2;
- int LA12_0 = input.LA(1);
-
- if ( (LA12_0=='_') ) {
- alt12=1;
- }
- switch (alt12) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:12799: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;
- // InternalAppliedStereotypeProperty.g:12801:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
- // InternalAppliedStereotypeProperty.g:12801: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;}
-
- // InternalAppliedStereotypeProperty.g:12801: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 :
- // InternalAppliedStereotypeProperty.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;
- // InternalAppliedStereotypeProperty.g:12803:24: ( '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
- // InternalAppliedStereotypeProperty.g:12803:26: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
- {
- match('\'');
- // InternalAppliedStereotypeProperty.g:12803: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 :
- // InternalAppliedStereotypeProperty.g:12803: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 :
- // InternalAppliedStereotypeProperty.g:12803: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;
- // InternalAppliedStereotypeProperty.g:12805:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
- // InternalAppliedStereotypeProperty.g:12805:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
- {
- match('\"');
- // InternalAppliedStereotypeProperty.g:12805: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 :
- // InternalAppliedStereotypeProperty.g:12805: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 :
- // InternalAppliedStereotypeProperty.g:12805: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;
- // InternalAppliedStereotypeProperty.g:12807:28: ( '/**' ( options {greedy=false; } : . )* '*/' )
- // InternalAppliedStereotypeProperty.g:12807:30: '/**' ( options {greedy=false; } : . )* '*/'
- {
- match("/**");
-
- // InternalAppliedStereotypeProperty.g:12807: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 :
- // InternalAppliedStereotypeProperty.g:12807: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;
- // InternalAppliedStereotypeProperty.g:12809:27: ( '//@' ( options {greedy=false; } : . )* '\\n' )
- // InternalAppliedStereotypeProperty.g:12809:29: '//@' ( options {greedy=false; } : . )* '\\n'
- {
- match("//@");
-
- // InternalAppliedStereotypeProperty.g:12809: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 :
- // InternalAppliedStereotypeProperty.g:12809: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;
- // InternalAppliedStereotypeProperty.g:12811:23: ( '/*@inline(' ( RULE_ID | RULE_UNRESTRICTED_NAME ) ')' ( options {greedy=false; } : . )* '*/' )
- // InternalAppliedStereotypeProperty.g:12811:25: '/*@inline(' ( RULE_ID | RULE_UNRESTRICTED_NAME ) ')' ( options {greedy=false; } : . )* '*/'
- {
- match("/*@inline(");
-
- // InternalAppliedStereotypeProperty.g:12811: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 :
- // InternalAppliedStereotypeProperty.g:12811:39: RULE_ID
- {
- mRULE_ID();
-
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:12811:47: RULE_UNRESTRICTED_NAME
- {
- mRULE_UNRESTRICTED_NAME();
-
- }
- break;
-
- }
-
- match(')');
- // InternalAppliedStereotypeProperty.g:12811: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 :
- // InternalAppliedStereotypeProperty.g:12811: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;
- // InternalAppliedStereotypeProperty.g:12813:17: ( '/*' ~ ( ( '*' | '@' ) ) ( options {greedy=false; } : . )* '*/' )
- // InternalAppliedStereotypeProperty.g:12813: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;}
-
- // InternalAppliedStereotypeProperty.g:12813: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 :
- // InternalAppliedStereotypeProperty.g:12813: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;
- // InternalAppliedStereotypeProperty.g:12815:17: ( '//' (~ ( ( '@' | '\\n' | '\\r' ) ) (~ ( ( '\\n' | '\\r' ) ) )* )? ( ( '\\r' )? '\\n' )? )
- // InternalAppliedStereotypeProperty.g:12815:19: '//' (~ ( ( '@' | '\\n' | '\\r' ) ) (~ ( ( '\\n' | '\\r' ) ) )* )? ( ( '\\r' )? '\\n' )?
- {
- match("//");
-
- // InternalAppliedStereotypeProperty.g:12815: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 :
- // InternalAppliedStereotypeProperty.g:12815: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;}
-
- // InternalAppliedStereotypeProperty.g:12815: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 :
- // InternalAppliedStereotypeProperty.g:12815: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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:12815: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 :
- // InternalAppliedStereotypeProperty.g:12815:63: ( '\\r' )? '\\n'
- {
- // InternalAppliedStereotypeProperty.g:12815:63: ( '\\r' )?
- int alt25=2;
- int LA25_0 = input.LA(1);
-
- if ( (LA25_0=='\r') ) {
- alt25=1;
- }
- switch (alt25) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:12815: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;
- // InternalAppliedStereotypeProperty.g:12817:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
- // InternalAppliedStereotypeProperty.g:12817:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
- {
- // InternalAppliedStereotypeProperty.g:12817: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 :
- // InternalAppliedStereotypeProperty.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 {
- // InternalAppliedStereotypeProperty.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 :
- // InternalAppliedStereotypeProperty.g:1:10: T__15
- {
- mT__15();
-
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:1:16: T__16
- {
- mT__16();
-
- }
- break;
- case 3 :
- // InternalAppliedStereotypeProperty.g:1:22: T__17
- {
- mT__17();
-
- }
- break;
- case 4 :
- // InternalAppliedStereotypeProperty.g:1:28: T__18
- {
- mT__18();
-
- }
- break;
- case 5 :
- // InternalAppliedStereotypeProperty.g:1:34: T__19
- {
- mT__19();
-
- }
- break;
- case 6 :
- // InternalAppliedStereotypeProperty.g:1:40: T__20
- {
- mT__20();
-
- }
- break;
- case 7 :
- // InternalAppliedStereotypeProperty.g:1:46: T__21
- {
- mT__21();
-
- }
- break;
- case 8 :
- // InternalAppliedStereotypeProperty.g:1:52: T__22
- {
- mT__22();
-
- }
- break;
- case 9 :
- // InternalAppliedStereotypeProperty.g:1:58: T__23
- {
- mT__23();
-
- }
- break;
- case 10 :
- // InternalAppliedStereotypeProperty.g:1:64: T__24
- {
- mT__24();
-
- }
- break;
- case 11 :
- // InternalAppliedStereotypeProperty.g:1:70: T__25
- {
- mT__25();
-
- }
- break;
- case 12 :
- // InternalAppliedStereotypeProperty.g:1:76: T__26
- {
- mT__26();
-
- }
- break;
- case 13 :
- // InternalAppliedStereotypeProperty.g:1:82: T__27
- {
- mT__27();
-
- }
- break;
- case 14 :
- // InternalAppliedStereotypeProperty.g:1:88: T__28
- {
- mT__28();
-
- }
- break;
- case 15 :
- // InternalAppliedStereotypeProperty.g:1:94: T__29
- {
- mT__29();
-
- }
- break;
- case 16 :
- // InternalAppliedStereotypeProperty.g:1:100: T__30
- {
- mT__30();
-
- }
- break;
- case 17 :
- // InternalAppliedStereotypeProperty.g:1:106: T__31
- {
- mT__31();
-
- }
- break;
- case 18 :
- // InternalAppliedStereotypeProperty.g:1:112: T__32
- {
- mT__32();
-
- }
- break;
- case 19 :
- // InternalAppliedStereotypeProperty.g:1:118: T__33
- {
- mT__33();
-
- }
- break;
- case 20 :
- // InternalAppliedStereotypeProperty.g:1:124: T__34
- {
- mT__34();
-
- }
- break;
- case 21 :
- // InternalAppliedStereotypeProperty.g:1:130: T__35
- {
- mT__35();
-
- }
- break;
- case 22 :
- // InternalAppliedStereotypeProperty.g:1:136: T__36
- {
- mT__36();
-
- }
- break;
- case 23 :
- // InternalAppliedStereotypeProperty.g:1:142: T__37
- {
- mT__37();
-
- }
- break;
- case 24 :
- // InternalAppliedStereotypeProperty.g:1:148: T__38
- {
- mT__38();
-
- }
- break;
- case 25 :
- // InternalAppliedStereotypeProperty.g:1:154: T__39
- {
- mT__39();
-
- }
- break;
- case 26 :
- // InternalAppliedStereotypeProperty.g:1:160: T__40
- {
- mT__40();
-
- }
- break;
- case 27 :
- // InternalAppliedStereotypeProperty.g:1:166: T__41
- {
- mT__41();
-
- }
- break;
- case 28 :
- // InternalAppliedStereotypeProperty.g:1:172: T__42
- {
- mT__42();
-
- }
- break;
- case 29 :
- // InternalAppliedStereotypeProperty.g:1:178: T__43
- {
- mT__43();
-
- }
- break;
- case 30 :
- // InternalAppliedStereotypeProperty.g:1:184: T__44
- {
- mT__44();
-
- }
- break;
- case 31 :
- // InternalAppliedStereotypeProperty.g:1:190: T__45
- {
- mT__45();
-
- }
- break;
- case 32 :
- // InternalAppliedStereotypeProperty.g:1:196: T__46
- {
- mT__46();
-
- }
- break;
- case 33 :
- // InternalAppliedStereotypeProperty.g:1:202: T__47
- {
- mT__47();
-
- }
- break;
- case 34 :
- // InternalAppliedStereotypeProperty.g:1:208: T__48
- {
- mT__48();
-
- }
- break;
- case 35 :
- // InternalAppliedStereotypeProperty.g:1:214: T__49
- {
- mT__49();
-
- }
- break;
- case 36 :
- // InternalAppliedStereotypeProperty.g:1:220: T__50
- {
- mT__50();
-
- }
- break;
- case 37 :
- // InternalAppliedStereotypeProperty.g:1:226: T__51
- {
- mT__51();
-
- }
- break;
- case 38 :
- // InternalAppliedStereotypeProperty.g:1:232: T__52
- {
- mT__52();
-
- }
- break;
- case 39 :
- // InternalAppliedStereotypeProperty.g:1:238: T__53
- {
- mT__53();
-
- }
- break;
- case 40 :
- // InternalAppliedStereotypeProperty.g:1:244: T__54
- {
- mT__54();
-
- }
- break;
- case 41 :
- // InternalAppliedStereotypeProperty.g:1:250: T__55
- {
- mT__55();
-
- }
- break;
- case 42 :
- // InternalAppliedStereotypeProperty.g:1:256: T__56
- {
- mT__56();
-
- }
- break;
- case 43 :
- // InternalAppliedStereotypeProperty.g:1:262: T__57
- {
- mT__57();
-
- }
- break;
- case 44 :
- // InternalAppliedStereotypeProperty.g:1:268: T__58
- {
- mT__58();
-
- }
- break;
- case 45 :
- // InternalAppliedStereotypeProperty.g:1:274: T__59
- {
- mT__59();
-
- }
- break;
- case 46 :
- // InternalAppliedStereotypeProperty.g:1:280: T__60
- {
- mT__60();
-
- }
- break;
- case 47 :
- // InternalAppliedStereotypeProperty.g:1:286: T__61
- {
- mT__61();
-
- }
- break;
- case 48 :
- // InternalAppliedStereotypeProperty.g:1:292: T__62
- {
- mT__62();
-
- }
- break;
- case 49 :
- // InternalAppliedStereotypeProperty.g:1:298: T__63
- {
- mT__63();
-
- }
- break;
- case 50 :
- // InternalAppliedStereotypeProperty.g:1:304: T__64
- {
- mT__64();
-
- }
- break;
- case 51 :
- // InternalAppliedStereotypeProperty.g:1:310: T__65
- {
- mT__65();
-
- }
- break;
- case 52 :
- // InternalAppliedStereotypeProperty.g:1:316: T__66
- {
- mT__66();
-
- }
- break;
- case 53 :
- // InternalAppliedStereotypeProperty.g:1:322: T__67
- {
- mT__67();
-
- }
- break;
- case 54 :
- // InternalAppliedStereotypeProperty.g:1:328: T__68
- {
- mT__68();
-
- }
- break;
- case 55 :
- // InternalAppliedStereotypeProperty.g:1:334: T__69
- {
- mT__69();
-
- }
- break;
- case 56 :
- // InternalAppliedStereotypeProperty.g:1:340: T__70
- {
- mT__70();
-
- }
- break;
- case 57 :
- // InternalAppliedStereotypeProperty.g:1:346: T__71
- {
- mT__71();
-
- }
- break;
- case 58 :
- // InternalAppliedStereotypeProperty.g:1:352: T__72
- {
- mT__72();
-
- }
- break;
- case 59 :
- // InternalAppliedStereotypeProperty.g:1:358: T__73
- {
- mT__73();
-
- }
- break;
- case 60 :
- // InternalAppliedStereotypeProperty.g:1:364: T__74
- {
- mT__74();
-
- }
- break;
- case 61 :
- // InternalAppliedStereotypeProperty.g:1:370: T__75
- {
- mT__75();
-
- }
- break;
- case 62 :
- // InternalAppliedStereotypeProperty.g:1:376: T__76
- {
- mT__76();
-
- }
- break;
- case 63 :
- // InternalAppliedStereotypeProperty.g:1:382: T__77
- {
- mT__77();
-
- }
- break;
- case 64 :
- // InternalAppliedStereotypeProperty.g:1:388: T__78
- {
- mT__78();
-
- }
- break;
- case 65 :
- // InternalAppliedStereotypeProperty.g:1:394: T__79
- {
- mT__79();
-
- }
- break;
- case 66 :
- // InternalAppliedStereotypeProperty.g:1:400: T__80
- {
- mT__80();
-
- }
- break;
- case 67 :
- // InternalAppliedStereotypeProperty.g:1:406: T__81
- {
- mT__81();
-
- }
- break;
- case 68 :
- // InternalAppliedStereotypeProperty.g:1:412: T__82
- {
- mT__82();
-
- }
- break;
- case 69 :
- // InternalAppliedStereotypeProperty.g:1:418: T__83
- {
- mT__83();
-
- }
- break;
- case 70 :
- // InternalAppliedStereotypeProperty.g:1:424: T__84
- {
- mT__84();
-
- }
- break;
- case 71 :
- // InternalAppliedStereotypeProperty.g:1:430: T__85
- {
- mT__85();
-
- }
- break;
- case 72 :
- // InternalAppliedStereotypeProperty.g:1:436: T__86
- {
- mT__86();
-
- }
- break;
- case 73 :
- // InternalAppliedStereotypeProperty.g:1:442: T__87
- {
- mT__87();
-
- }
- break;
- case 74 :
- // InternalAppliedStereotypeProperty.g:1:448: T__88
- {
- mT__88();
-
- }
- break;
- case 75 :
- // InternalAppliedStereotypeProperty.g:1:454: T__89
- {
- mT__89();
-
- }
- break;
- case 76 :
- // InternalAppliedStereotypeProperty.g:1:460: T__90
- {
- mT__90();
-
- }
- break;
- case 77 :
- // InternalAppliedStereotypeProperty.g:1:466: T__91
- {
- mT__91();
-
- }
- break;
- case 78 :
- // InternalAppliedStereotypeProperty.g:1:472: T__92
- {
- mT__92();
-
- }
- break;
- case 79 :
- // InternalAppliedStereotypeProperty.g:1:478: T__93
- {
- mT__93();
-
- }
- break;
- case 80 :
- // InternalAppliedStereotypeProperty.g:1:484: T__94
- {
- mT__94();
-
- }
- break;
- case 81 :
- // InternalAppliedStereotypeProperty.g:1:490: T__95
- {
- mT__95();
-
- }
- break;
- case 82 :
- // InternalAppliedStereotypeProperty.g:1:496: T__96
- {
- mT__96();
-
- }
- break;
- case 83 :
- // InternalAppliedStereotypeProperty.g:1:502: T__97
- {
- mT__97();
-
- }
- break;
- case 84 :
- // InternalAppliedStereotypeProperty.g:1:508: T__98
- {
- mT__98();
-
- }
- break;
- case 85 :
- // InternalAppliedStereotypeProperty.g:1:514: T__99
- {
- mT__99();
-
- }
- break;
- case 86 :
- // InternalAppliedStereotypeProperty.g:1:520: T__100
- {
- mT__100();
-
- }
- break;
- case 87 :
- // InternalAppliedStereotypeProperty.g:1:527: T__101
- {
- mT__101();
-
- }
- break;
- case 88 :
- // InternalAppliedStereotypeProperty.g:1:534: T__102
- {
- mT__102();
-
- }
- break;
- case 89 :
- // InternalAppliedStereotypeProperty.g:1:541: T__103
- {
- mT__103();
-
- }
- break;
- case 90 :
- // InternalAppliedStereotypeProperty.g:1:548: T__104
- {
- mT__104();
-
- }
- break;
- case 91 :
- // InternalAppliedStereotypeProperty.g:1:555: T__105
- {
- mT__105();
-
- }
- break;
- case 92 :
- // InternalAppliedStereotypeProperty.g:1:562: T__106
- {
- mT__106();
-
- }
- break;
- case 93 :
- // InternalAppliedStereotypeProperty.g:1:569: T__107
- {
- mT__107();
-
- }
- break;
- case 94 :
- // InternalAppliedStereotypeProperty.g:1:576: T__108
- {
- mT__108();
-
- }
- break;
- case 95 :
- // InternalAppliedStereotypeProperty.g:1:583: T__109
- {
- mT__109();
-
- }
- break;
- case 96 :
- // InternalAppliedStereotypeProperty.g:1:590: T__110
- {
- mT__110();
-
- }
- break;
- case 97 :
- // InternalAppliedStereotypeProperty.g:1:597: T__111
- {
- mT__111();
-
- }
- break;
- case 98 :
- // InternalAppliedStereotypeProperty.g:1:604: T__112
- {
- mT__112();
-
- }
- break;
- case 99 :
- // InternalAppliedStereotypeProperty.g:1:611: T__113
- {
- mT__113();
-
- }
- break;
- case 100 :
- // InternalAppliedStereotypeProperty.g:1:618: T__114
- {
- mT__114();
-
- }
- break;
- case 101 :
- // InternalAppliedStereotypeProperty.g:1:625: T__115
- {
- mT__115();
-
- }
- break;
- case 102 :
- // InternalAppliedStereotypeProperty.g:1:632: T__116
- {
- mT__116();
-
- }
- break;
- case 103 :
- // InternalAppliedStereotypeProperty.g:1:639: T__117
- {
- mT__117();
-
- }
- break;
- case 104 :
- // InternalAppliedStereotypeProperty.g:1:646: T__118
- {
- mT__118();
-
- }
- break;
- case 105 :
- // InternalAppliedStereotypeProperty.g:1:653: T__119
- {
- mT__119();
-
- }
- break;
- case 106 :
- // InternalAppliedStereotypeProperty.g:1:660: RULE_BOOLEAN_VALUE
- {
- mRULE_BOOLEAN_VALUE();
-
- }
- break;
- case 107 :
- // InternalAppliedStereotypeProperty.g:1:679: RULE_NATURAL_VALUE
- {
- mRULE_NATURAL_VALUE();
-
- }
- break;
- case 108 :
- // InternalAppliedStereotypeProperty.g:1:698: RULE_ID
- {
- mRULE_ID();
-
- }
- break;
- case 109 :
- // InternalAppliedStereotypeProperty.g:1:706: RULE_UNRESTRICTED_NAME
- {
- mRULE_UNRESTRICTED_NAME();
-
- }
- break;
- case 110 :
- // InternalAppliedStereotypeProperty.g:1:729: RULE_STRING
- {
- mRULE_STRING();
-
- }
- break;
- case 111 :
- // InternalAppliedStereotypeProperty.g:1:741: RULE_DOCUMENTATION_COMMENT
- {
- mRULE_DOCUMENTATION_COMMENT();
-
- }
- break;
- case 112 :
- // InternalAppliedStereotypeProperty.g:1:768: RULE_STATEMENT_ANNOTATION
- {
- mRULE_STATEMENT_ANNOTATION();
-
- }
- break;
- case 113 :
- // InternalAppliedStereotypeProperty.g:1:794: RULE_INLINE_STATEMENT
- {
- mRULE_INLINE_STATEMENT();
-
- }
- break;
- case 114 :
- // InternalAppliedStereotypeProperty.g:1:816: RULE_ML_COMMENT
- {
- mRULE_ML_COMMENT();
-
- }
- break;
- case 115 :
- // InternalAppliedStereotypeProperty.g:1:832: RULE_SL_COMMENT
- {
- mRULE_SL_COMMENT();
-
- }
- break;
- case 116 :
- // InternalAppliedStereotypeProperty.g:1:848: RULE_WS
- {
- mRULE_WS();
-
- }
- break;
-
- }
-
- }
-
-
- protected DFA28 dfa28 = new DFA28(this);
- static final String DFA28_eotS =
- "\1\uffff\1\62\4\uffff\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\1\75\4\uffff\1\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\1\76\4\uffff\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 =
- "\2\uffff\1\2\1\3\1\4\1\5\2\uffff\1\11\5\uffff\1\22\1\23\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\6\1\110\1\1\1\122\1\7\14\uffff\1\14\1\40\1\50\1\15\15\uffff\1\104\1\27\1\uffff\1\105\1\30\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\41\1\134\1\uffff\1\13\23\uffff\1\130\1\101\1\uffff\1\131\1\102\1\32\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\42\10\uffff\1\133\1\uffff\1\143\5\uffff\1\67\25\uffff\1\140\3\uffff\1\35\1\135\5\uffff\1\60\1\152\2\uffff\1\150\5\uffff\1\43\1\uffff\1\34\14\uffff\1\61\2\uffff\1\26\14\uffff\1\142\1\144\2\uffff\1\12\2\uffff\1\31\1\uffff\1\146\1\uffff\1\16\4\uffff\1\36\1\uffff\1\137\11\uffff\1\57\1\uffff\1\145\7\uffff\1\17\1\uffff\1\21\4\uffff\1\44\3\uffff\1\141\1\51\1\uffff\1\55\1\107\3\uffff\1\25\1\37\3\uffff\1\53\1\147\2\uffff\1\33\2\uffff\1\10\1\52\2\uffff\1\20\4\uffff\1\54\1\106\2\uffff\1\65\1\63\2\uffff\1\24\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\3\1\4\1\6\1\34\1\5\1\32\1\14\1\40\12\53\1\13\1\10\1\22\1\1\1\23\1\46\1\2\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;
- }
- }
-
+ 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 = 5;
+ 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 = 7;
+ 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 = 4;
+ public static final int T__71 = 71;
+ public static final int T__72 = 72;
+ public static final int RULE_STRING = 6;
+ 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 InternalAppliedStereotypePropertyLexer() {
+ ;
+ }
+
+ public InternalAppliedStereotypePropertyLexer(CharStream input) {
+ this(input, new RecognizerSharedState());
+ }
+
+ public InternalAppliedStereotypePropertyLexer(CharStream input, RecognizerSharedState state) {
+ super(input, state);
+
+ }
+
+ public String getGrammarFileName() {
+ return "InternalAppliedStereotypeProperty.g";
+ }
+
+ // $ANTLR start "T__15"
+ public final void mT__15() throws RecognitionException {
+ try {
+ int _type = T__15;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAppliedStereotypeProperty.g:11:7: ( '=' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:12:7: ( '@' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:13:7: ( '(' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:14:7: ( ')' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:15:7: ( ',' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:16:7: ( '=>' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:17:7: ( '*' )
+ // InternalAppliedStereotypeProperty.g:17:9: '*'
+ {
+ match('*');
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:18:7: ( 'namespace' )
+ // InternalAppliedStereotypeProperty.g:18:9: 'namespace'
+ {
+ match("namespace");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:19:7: ( ';' )
+ // InternalAppliedStereotypeProperty.g:19:9: ';'
+ {
+ match(';');
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:20:7: ( 'import' )
+ // InternalAppliedStereotypeProperty.g:20:9: 'import'
+ {
+ match("import");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:21:7: ( 'as' )
+ // InternalAppliedStereotypeProperty.g:21:9: 'as'
+ {
+ match("as");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:22:7: ( '::' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:23:7: ( '.' )
+ // InternalAppliedStereotypeProperty.g:23:9: '.'
+ {
+ match('.');
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:24:7: ( 'public' )
+ // InternalAppliedStereotypeProperty.g:24:9: 'public'
+ {
+ match("public");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:25:7: ( 'private' )
+ // InternalAppliedStereotypeProperty.g:25:9: 'private'
+ {
+ match("private");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:26:7: ( 'protected' )
+ // InternalAppliedStereotypeProperty.g:26:9: 'protected'
+ {
+ match("protected");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:27:7: ( 'package' )
+ // InternalAppliedStereotypeProperty.g:27:9: 'package'
+ {
+ match("package");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:28:7: ( '{' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:29:7: ( '}' )
+ // InternalAppliedStereotypeProperty.g:29:9: '}'
+ {
+ match('}');
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:30:7: ( 'specializes' )
+ // InternalAppliedStereotypeProperty.g:30:9: 'specializes'
+ {
+ match("specializes");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:31:7: ( 'abstract' )
+ // InternalAppliedStereotypeProperty.g:31:9: 'abstract'
+ {
+ match("abstract");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:32:7: ( 'class' )
+ // InternalAppliedStereotypeProperty.g:32:9: 'class'
+ {
+ match("class");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:33:7: ( '<' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:34:7: ( '>' )
+ // InternalAppliedStereotypeProperty.g:34:9: '>'
+ {
+ match('>');
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:35:7: ( 'active' )
+ // InternalAppliedStereotypeProperty.g:35:9: 'active'
+ {
+ match("active");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:36:7: ( 'do' )
+ // InternalAppliedStereotypeProperty.g:36:9: 'do'
+ {
+ match("do");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:37:7: ( 'datatype' )
+ // InternalAppliedStereotypeProperty.g:37:9: 'datatype'
+ {
+ match("datatype");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:38:7: ( 'assoc' )
+ // InternalAppliedStereotypeProperty.g:38:9: 'assoc'
+ {
+ match("assoc");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:39:7: ( 'enum' )
+ // InternalAppliedStereotypeProperty.g:39:9: 'enum'
+ {
+ match("enum");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:40:7: ( 'signal' )
+ // InternalAppliedStereotypeProperty.g:40:9: 'signal'
+ {
+ match("signal");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:41:7: ( 'activity' )
+ // InternalAppliedStereotypeProperty.g:41:9: 'activity'
+ {
+ match("activity");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:42:7: ( ':' )
+ // InternalAppliedStereotypeProperty.g:42:9: ':'
+ {
+ match(':');
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:43:7: ( 'in' )
+ // InternalAppliedStereotypeProperty.g:43:9: 'in'
+ {
+ match("in");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:44:7: ( 'out' )
+ // InternalAppliedStereotypeProperty.g:44:9: 'out'
+ {
+ match("out");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:45:7: ( 'inout' )
+ // InternalAppliedStereotypeProperty.g:45:9: 'inout'
+ {
+ match("inout");
+
+
+ }
+
+ 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;
+ // InternalAppliedStereotypeProperty.g:46:7: ( 'compose' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:47:7: ( 'any' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:48:7: ( '[' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:49:7: ( ']' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:50:7: ( '..' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:51:7: ( 'ordered' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:52:7: ( 'nonunique' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:53:7: ( 'sequence' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:54:7: ( 'redefines' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:55:7: ( 'receive' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:56:7: ( '->' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:57:7: ( 'reduce' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:58:7: ( 'this' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:59:7: ( 'super' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:60:7: ( 'new' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:61:7: ( 'createLink' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:62:7: ( 'destroyLink' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:63:7: ( 'clearAssoc' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:64:7: ( 'allInstances' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:65:7: ( 'null' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:66:7: ( '++' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:67:7: ( '--' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:68:7: ( '!' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:69:7: ( '~' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:70:7: ( '+' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:71:7: ( '-' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:72:7: ( '$' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:73:7: ( '/' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:74:7: ( '%' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:75:7: ( '<<' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:76:7: ( '>>' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:77:7: ( '>>>' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:78:7: ( '<=' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:79:7: ( '>=' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:80:7: ( 'instanceof' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:81:7: ( 'hastype' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:82:7: ( '==' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:83:7: ( '!=' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:84:7: ( '&' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:85:7: ( '^' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:86:7: ( '|' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:87:7: ( '&&' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:88:7: ( '||' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:89:7: ( '?' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:90:7: ( '+=' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:91:7: ( '-=' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:92:7: ( '*=' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:93:7: ( '/=' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:94:7: ( '%=' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:95:7: ( '&=' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:96:8: ( '|=' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:97:8: ( '^=' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:98:8: ( '<<=' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:99:8: ( '>>=' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:100:8: ( '>>>=' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:101:8: ( 'let' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:102:8: ( 'if' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:103:8: ( 'else' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:104:8: ( 'or' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:105:8: ( 'switch' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:106:8: ( 'case' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:107:8: ( 'default' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:108:8: ( 'while' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:109:8: ( 'for' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:110:8: ( 'break' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:111:8: ( 'return' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:112:8: ( 'accept' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:113:8: ( 'classify' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:114:8: ( 'from' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:115:8: ( 'to' )
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:12797:20: ( ( 'true' | 'false' ) )
+ // InternalAppliedStereotypeProperty.g:12797:22: ( 'true' | 'false' )
+ {
+ // InternalAppliedStereotypeProperty.g:12797: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:
+ // InternalAppliedStereotypeProperty.g:12797:23: 'true'
+ {
+ match("true");
+
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:12797: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;
+ // InternalAppliedStereotypeProperty.g:12799: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' )* ) )
+ // InternalAppliedStereotypeProperty.g:12799: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' )* )
+ {
+ // InternalAppliedStereotypeProperty.g:12799: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:
+ // InternalAppliedStereotypeProperty.g:12799:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
+ {
+ // InternalAppliedStereotypeProperty.g:12799: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:
+ // InternalAppliedStereotypeProperty.g:12799:24: '0'
+ {
+ match('0');
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:12799:28: '1' .. '9' ( ( '_' )? '0' .. '9' )*
+ {
+ matchRange('1', '9');
+ // InternalAppliedStereotypeProperty.g:12799: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:
+ // InternalAppliedStereotypeProperty.g:12799:38: ( '_' )? '0' .. '9'
+ {
+ // InternalAppliedStereotypeProperty.g:12799:38: ( '_' )?
+ int alt2 = 2;
+ int LA2_0 = input.LA(1);
+
+ if ((LA2_0 == '_')) {
+ alt2 = 1;
+ }
+ switch (alt2) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:12799:38: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0', '9');
+
+ }
+ break;
+
+ default:
+ break loop3;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:12799:55: ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )*
+ {
+ // InternalAppliedStereotypeProperty.g:12799: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:
+ // InternalAppliedStereotypeProperty.g:12799:56: '0b'
+ {
+ match("0b");
+
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:12799:61: '0B'
+ {
+ match("0B");
+
+
+ }
+ break;
+
+ }
+
+ matchRange('0', '1');
+ // InternalAppliedStereotypeProperty.g:12799: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:
+ // InternalAppliedStereotypeProperty.g:12799:77: ( '_' )? '0' .. '1'
+ {
+ // InternalAppliedStereotypeProperty.g:12799:77: ( '_' )?
+ int alt6 = 2;
+ int LA6_0 = input.LA(1);
+
+ if ((LA6_0 == '_')) {
+ alt6 = 1;
+ }
+ switch (alt6) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:12799:77: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0', '1');
+
+ }
+ break;
+
+ default:
+ break loop7;
+ }
+ } while (true);
+
+
+ }
+ break;
+ case 3:
+ // InternalAppliedStereotypeProperty.g:12799:93: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
+ {
+ // InternalAppliedStereotypeProperty.g:12799: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:
+ // InternalAppliedStereotypeProperty.g:12799:94: '0x'
+ {
+ match("0x");
+
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:12799: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;
+ }
+
+ // InternalAppliedStereotypeProperty.g:12799: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:
+ // InternalAppliedStereotypeProperty.g:12799:135: ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
+ {
+ // InternalAppliedStereotypeProperty.g:12799:135: ( '_' )?
+ int alt9 = 2;
+ int LA9_0 = input.LA(1);
+
+ if ((LA9_0 == '_')) {
+ alt9 = 1;
+ }
+ switch (alt9) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:12799: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:
+ // InternalAppliedStereotypeProperty.g:12799:171: '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )*
+ {
+ match('0');
+ // InternalAppliedStereotypeProperty.g:12799:175: ( '_' )?
+ int alt11 = 2;
+ int LA11_0 = input.LA(1);
+
+ if ((LA11_0 == '_')) {
+ alt11 = 1;
+ }
+ switch (alt11) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:12799:175: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0', '7');
+ // InternalAppliedStereotypeProperty.g:12799: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:
+ // InternalAppliedStereotypeProperty.g:12799:190: ( '_' )? '0' .. '7'
+ {
+ // InternalAppliedStereotypeProperty.g:12799:190: ( '_' )?
+ int alt12 = 2;
+ int LA12_0 = input.LA(1);
+
+ if ((LA12_0 == '_')) {
+ alt12 = 1;
+ }
+ switch (alt12) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:12799: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;
+ // InternalAppliedStereotypeProperty.g:12801:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
+ // InternalAppliedStereotypeProperty.g:12801: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;
+ }
+
+ // InternalAppliedStereotypeProperty.g:12801: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:
+ // InternalAppliedStereotypeProperty.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;
+ // InternalAppliedStereotypeProperty.g:12803:24: ( '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
+ // InternalAppliedStereotypeProperty.g:12803:26: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
+ {
+ match('\'');
+ // InternalAppliedStereotypeProperty.g:12803: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:
+ // InternalAppliedStereotypeProperty.g:12803: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:
+ // InternalAppliedStereotypeProperty.g:12803: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;
+ // InternalAppliedStereotypeProperty.g:12805:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
+ // InternalAppliedStereotypeProperty.g:12805:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
+ {
+ match('\"');
+ // InternalAppliedStereotypeProperty.g:12805: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:
+ // InternalAppliedStereotypeProperty.g:12805: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:
+ // InternalAppliedStereotypeProperty.g:12805: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;
+ // InternalAppliedStereotypeProperty.g:12807:28: ( '/**' ( options {greedy=false; } : . )* '*/' )
+ // InternalAppliedStereotypeProperty.g:12807:30: '/**' ( options {greedy=false; } : . )* '*/'
+ {
+ match("/**");
+
+ // InternalAppliedStereotypeProperty.g:12807: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:
+ // InternalAppliedStereotypeProperty.g:12807: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;
+ // InternalAppliedStereotypeProperty.g:12809:27: ( '//@' ( options {greedy=false; } : . )* '\\n' )
+ // InternalAppliedStereotypeProperty.g:12809:29: '//@' ( options {greedy=false; } : . )* '\\n'
+ {
+ match("//@");
+
+ // InternalAppliedStereotypeProperty.g:12809: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:
+ // InternalAppliedStereotypeProperty.g:12809: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;
+ // InternalAppliedStereotypeProperty.g:12811:23: ( '/*@inline(' ( RULE_ID | RULE_UNRESTRICTED_NAME ) ')' ( options {greedy=false; } : . )* '*/' )
+ // InternalAppliedStereotypeProperty.g:12811:25: '/*@inline(' ( RULE_ID | RULE_UNRESTRICTED_NAME ) ')' ( options {greedy=false; } : . )* '*/'
+ {
+ match("/*@inline(");
+
+ // InternalAppliedStereotypeProperty.g:12811: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:
+ // InternalAppliedStereotypeProperty.g:12811:39: RULE_ID
+ {
+ mRULE_ID();
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:12811:47: RULE_UNRESTRICTED_NAME
+ {
+ mRULE_UNRESTRICTED_NAME();
+
+ }
+ break;
+
+ }
+
+ match(')');
+ // InternalAppliedStereotypeProperty.g:12811: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:
+ // InternalAppliedStereotypeProperty.g:12811: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;
+ // InternalAppliedStereotypeProperty.g:12813:17: ( '/*' ~ ( ( '*' | '@' ) ) ( options {greedy=false; } : . )* '*/' )
+ // InternalAppliedStereotypeProperty.g:12813: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;
+ }
+
+ // InternalAppliedStereotypeProperty.g:12813: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:
+ // InternalAppliedStereotypeProperty.g:12813: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;
+ // InternalAppliedStereotypeProperty.g:12815:17: ( '//' (~ ( ( '@' | '\\n' | '\\r' ) ) (~ ( ( '\\n' | '\\r' ) ) )* )? ( ( '\\r' )? '\\n' )? )
+ // InternalAppliedStereotypeProperty.g:12815:19: '//' (~ ( ( '@' | '\\n' | '\\r' ) ) (~ ( ( '\\n' | '\\r' ) ) )* )? ( ( '\\r' )? '\\n' )?
+ {
+ match("//");
+
+ // InternalAppliedStereotypeProperty.g:12815: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:
+ // InternalAppliedStereotypeProperty.g:12815: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;
+ }
+
+ // InternalAppliedStereotypeProperty.g:12815: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:
+ // InternalAppliedStereotypeProperty.g:12815: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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:12815: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:
+ // InternalAppliedStereotypeProperty.g:12815:63: ( '\\r' )? '\\n'
+ {
+ // InternalAppliedStereotypeProperty.g:12815:63: ( '\\r' )?
+ int alt25 = 2;
+ int LA25_0 = input.LA(1);
+
+ if ((LA25_0 == '\r')) {
+ alt25 = 1;
+ }
+ switch (alt25) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:12815: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;
+ // InternalAppliedStereotypeProperty.g:12817:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
+ // InternalAppliedStereotypeProperty.g:12817:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ {
+ // InternalAppliedStereotypeProperty.g:12817: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:
+ // InternalAppliedStereotypeProperty.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 {
+ // InternalAppliedStereotypeProperty.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:
+ // InternalAppliedStereotypeProperty.g:1:10: T__15
+ {
+ mT__15();
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:1:16: T__16
+ {
+ mT__16();
+
+ }
+ break;
+ case 3:
+ // InternalAppliedStereotypeProperty.g:1:22: T__17
+ {
+ mT__17();
+
+ }
+ break;
+ case 4:
+ // InternalAppliedStereotypeProperty.g:1:28: T__18
+ {
+ mT__18();
+
+ }
+ break;
+ case 5:
+ // InternalAppliedStereotypeProperty.g:1:34: T__19
+ {
+ mT__19();
+
+ }
+ break;
+ case 6:
+ // InternalAppliedStereotypeProperty.g:1:40: T__20
+ {
+ mT__20();
+
+ }
+ break;
+ case 7:
+ // InternalAppliedStereotypeProperty.g:1:46: T__21
+ {
+ mT__21();
+
+ }
+ break;
+ case 8:
+ // InternalAppliedStereotypeProperty.g:1:52: T__22
+ {
+ mT__22();
+
+ }
+ break;
+ case 9:
+ // InternalAppliedStereotypeProperty.g:1:58: T__23
+ {
+ mT__23();
+
+ }
+ break;
+ case 10:
+ // InternalAppliedStereotypeProperty.g:1:64: T__24
+ {
+ mT__24();
+
+ }
+ break;
+ case 11:
+ // InternalAppliedStereotypeProperty.g:1:70: T__25
+ {
+ mT__25();
+
+ }
+ break;
+ case 12:
+ // InternalAppliedStereotypeProperty.g:1:76: T__26
+ {
+ mT__26();
+
+ }
+ break;
+ case 13:
+ // InternalAppliedStereotypeProperty.g:1:82: T__27
+ {
+ mT__27();
+
+ }
+ break;
+ case 14:
+ // InternalAppliedStereotypeProperty.g:1:88: T__28
+ {
+ mT__28();
+
+ }
+ break;
+ case 15:
+ // InternalAppliedStereotypeProperty.g:1:94: T__29
+ {
+ mT__29();
+
+ }
+ break;
+ case 16:
+ // InternalAppliedStereotypeProperty.g:1:100: T__30
+ {
+ mT__30();
+
+ }
+ break;
+ case 17:
+ // InternalAppliedStereotypeProperty.g:1:106: T__31
+ {
+ mT__31();
+
+ }
+ break;
+ case 18:
+ // InternalAppliedStereotypeProperty.g:1:112: T__32
+ {
+ mT__32();
+
+ }
+ break;
+ case 19:
+ // InternalAppliedStereotypeProperty.g:1:118: T__33
+ {
+ mT__33();
+
+ }
+ break;
+ case 20:
+ // InternalAppliedStereotypeProperty.g:1:124: T__34
+ {
+ mT__34();
+
+ }
+ break;
+ case 21:
+ // InternalAppliedStereotypeProperty.g:1:130: T__35
+ {
+ mT__35();
+
+ }
+ break;
+ case 22:
+ // InternalAppliedStereotypeProperty.g:1:136: T__36
+ {
+ mT__36();
+
+ }
+ break;
+ case 23:
+ // InternalAppliedStereotypeProperty.g:1:142: T__37
+ {
+ mT__37();
+
+ }
+ break;
+ case 24:
+ // InternalAppliedStereotypeProperty.g:1:148: T__38
+ {
+ mT__38();
+
+ }
+ break;
+ case 25:
+ // InternalAppliedStereotypeProperty.g:1:154: T__39
+ {
+ mT__39();
+
+ }
+ break;
+ case 26:
+ // InternalAppliedStereotypeProperty.g:1:160: T__40
+ {
+ mT__40();
+
+ }
+ break;
+ case 27:
+ // InternalAppliedStereotypeProperty.g:1:166: T__41
+ {
+ mT__41();
+
+ }
+ break;
+ case 28:
+ // InternalAppliedStereotypeProperty.g:1:172: T__42
+ {
+ mT__42();
+
+ }
+ break;
+ case 29:
+ // InternalAppliedStereotypeProperty.g:1:178: T__43
+ {
+ mT__43();
+
+ }
+ break;
+ case 30:
+ // InternalAppliedStereotypeProperty.g:1:184: T__44
+ {
+ mT__44();
+
+ }
+ break;
+ case 31:
+ // InternalAppliedStereotypeProperty.g:1:190: T__45
+ {
+ mT__45();
+
+ }
+ break;
+ case 32:
+ // InternalAppliedStereotypeProperty.g:1:196: T__46
+ {
+ mT__46();
+
+ }
+ break;
+ case 33:
+ // InternalAppliedStereotypeProperty.g:1:202: T__47
+ {
+ mT__47();
+
+ }
+ break;
+ case 34:
+ // InternalAppliedStereotypeProperty.g:1:208: T__48
+ {
+ mT__48();
+
+ }
+ break;
+ case 35:
+ // InternalAppliedStereotypeProperty.g:1:214: T__49
+ {
+ mT__49();
+
+ }
+ break;
+ case 36:
+ // InternalAppliedStereotypeProperty.g:1:220: T__50
+ {
+ mT__50();
+
+ }
+ break;
+ case 37:
+ // InternalAppliedStereotypeProperty.g:1:226: T__51
+ {
+ mT__51();
+
+ }
+ break;
+ case 38:
+ // InternalAppliedStereotypeProperty.g:1:232: T__52
+ {
+ mT__52();
+
+ }
+ break;
+ case 39:
+ // InternalAppliedStereotypeProperty.g:1:238: T__53
+ {
+ mT__53();
+
+ }
+ break;
+ case 40:
+ // InternalAppliedStereotypeProperty.g:1:244: T__54
+ {
+ mT__54();
+
+ }
+ break;
+ case 41:
+ // InternalAppliedStereotypeProperty.g:1:250: T__55
+ {
+ mT__55();
+
+ }
+ break;
+ case 42:
+ // InternalAppliedStereotypeProperty.g:1:256: T__56
+ {
+ mT__56();
+
+ }
+ break;
+ case 43:
+ // InternalAppliedStereotypeProperty.g:1:262: T__57
+ {
+ mT__57();
+
+ }
+ break;
+ case 44:
+ // InternalAppliedStereotypeProperty.g:1:268: T__58
+ {
+ mT__58();
+
+ }
+ break;
+ case 45:
+ // InternalAppliedStereotypeProperty.g:1:274: T__59
+ {
+ mT__59();
+
+ }
+ break;
+ case 46:
+ // InternalAppliedStereotypeProperty.g:1:280: T__60
+ {
+ mT__60();
+
+ }
+ break;
+ case 47:
+ // InternalAppliedStereotypeProperty.g:1:286: T__61
+ {
+ mT__61();
+
+ }
+ break;
+ case 48:
+ // InternalAppliedStereotypeProperty.g:1:292: T__62
+ {
+ mT__62();
+
+ }
+ break;
+ case 49:
+ // InternalAppliedStereotypeProperty.g:1:298: T__63
+ {
+ mT__63();
+
+ }
+ break;
+ case 50:
+ // InternalAppliedStereotypeProperty.g:1:304: T__64
+ {
+ mT__64();
+
+ }
+ break;
+ case 51:
+ // InternalAppliedStereotypeProperty.g:1:310: T__65
+ {
+ mT__65();
+
+ }
+ break;
+ case 52:
+ // InternalAppliedStereotypeProperty.g:1:316: T__66
+ {
+ mT__66();
+
+ }
+ break;
+ case 53:
+ // InternalAppliedStereotypeProperty.g:1:322: T__67
+ {
+ mT__67();
+
+ }
+ break;
+ case 54:
+ // InternalAppliedStereotypeProperty.g:1:328: T__68
+ {
+ mT__68();
+
+ }
+ break;
+ case 55:
+ // InternalAppliedStereotypeProperty.g:1:334: T__69
+ {
+ mT__69();
+
+ }
+ break;
+ case 56:
+ // InternalAppliedStereotypeProperty.g:1:340: T__70
+ {
+ mT__70();
+
+ }
+ break;
+ case 57:
+ // InternalAppliedStereotypeProperty.g:1:346: T__71
+ {
+ mT__71();
+
+ }
+ break;
+ case 58:
+ // InternalAppliedStereotypeProperty.g:1:352: T__72
+ {
+ mT__72();
+
+ }
+ break;
+ case 59:
+ // InternalAppliedStereotypeProperty.g:1:358: T__73
+ {
+ mT__73();
+
+ }
+ break;
+ case 60:
+ // InternalAppliedStereotypeProperty.g:1:364: T__74
+ {
+ mT__74();
+
+ }
+ break;
+ case 61:
+ // InternalAppliedStereotypeProperty.g:1:370: T__75
+ {
+ mT__75();
+
+ }
+ break;
+ case 62:
+ // InternalAppliedStereotypeProperty.g:1:376: T__76
+ {
+ mT__76();
+
+ }
+ break;
+ case 63:
+ // InternalAppliedStereotypeProperty.g:1:382: T__77
+ {
+ mT__77();
+
+ }
+ break;
+ case 64:
+ // InternalAppliedStereotypeProperty.g:1:388: T__78
+ {
+ mT__78();
+
+ }
+ break;
+ case 65:
+ // InternalAppliedStereotypeProperty.g:1:394: T__79
+ {
+ mT__79();
+
+ }
+ break;
+ case 66:
+ // InternalAppliedStereotypeProperty.g:1:400: T__80
+ {
+ mT__80();
+
+ }
+ break;
+ case 67:
+ // InternalAppliedStereotypeProperty.g:1:406: T__81
+ {
+ mT__81();
+
+ }
+ break;
+ case 68:
+ // InternalAppliedStereotypeProperty.g:1:412: T__82
+ {
+ mT__82();
+
+ }
+ break;
+ case 69:
+ // InternalAppliedStereotypeProperty.g:1:418: T__83
+ {
+ mT__83();
+
+ }
+ break;
+ case 70:
+ // InternalAppliedStereotypeProperty.g:1:424: T__84
+ {
+ mT__84();
+
+ }
+ break;
+ case 71:
+ // InternalAppliedStereotypeProperty.g:1:430: T__85
+ {
+ mT__85();
+
+ }
+ break;
+ case 72:
+ // InternalAppliedStereotypeProperty.g:1:436: T__86
+ {
+ mT__86();
+
+ }
+ break;
+ case 73:
+ // InternalAppliedStereotypeProperty.g:1:442: T__87
+ {
+ mT__87();
+
+ }
+ break;
+ case 74:
+ // InternalAppliedStereotypeProperty.g:1:448: T__88
+ {
+ mT__88();
+
+ }
+ break;
+ case 75:
+ // InternalAppliedStereotypeProperty.g:1:454: T__89
+ {
+ mT__89();
+
+ }
+ break;
+ case 76:
+ // InternalAppliedStereotypeProperty.g:1:460: T__90
+ {
+ mT__90();
+
+ }
+ break;
+ case 77:
+ // InternalAppliedStereotypeProperty.g:1:466: T__91
+ {
+ mT__91();
+
+ }
+ break;
+ case 78:
+ // InternalAppliedStereotypeProperty.g:1:472: T__92
+ {
+ mT__92();
+
+ }
+ break;
+ case 79:
+ // InternalAppliedStereotypeProperty.g:1:478: T__93
+ {
+ mT__93();
+
+ }
+ break;
+ case 80:
+ // InternalAppliedStereotypeProperty.g:1:484: T__94
+ {
+ mT__94();
+
+ }
+ break;
+ case 81:
+ // InternalAppliedStereotypeProperty.g:1:490: T__95
+ {
+ mT__95();
+
+ }
+ break;
+ case 82:
+ // InternalAppliedStereotypeProperty.g:1:496: T__96
+ {
+ mT__96();
+
+ }
+ break;
+ case 83:
+ // InternalAppliedStereotypeProperty.g:1:502: T__97
+ {
+ mT__97();
+
+ }
+ break;
+ case 84:
+ // InternalAppliedStereotypeProperty.g:1:508: T__98
+ {
+ mT__98();
+
+ }
+ break;
+ case 85:
+ // InternalAppliedStereotypeProperty.g:1:514: T__99
+ {
+ mT__99();
+
+ }
+ break;
+ case 86:
+ // InternalAppliedStereotypeProperty.g:1:520: T__100
+ {
+ mT__100();
+
+ }
+ break;
+ case 87:
+ // InternalAppliedStereotypeProperty.g:1:527: T__101
+ {
+ mT__101();
+
+ }
+ break;
+ case 88:
+ // InternalAppliedStereotypeProperty.g:1:534: T__102
+ {
+ mT__102();
+
+ }
+ break;
+ case 89:
+ // InternalAppliedStereotypeProperty.g:1:541: T__103
+ {
+ mT__103();
+
+ }
+ break;
+ case 90:
+ // InternalAppliedStereotypeProperty.g:1:548: T__104
+ {
+ mT__104();
+
+ }
+ break;
+ case 91:
+ // InternalAppliedStereotypeProperty.g:1:555: T__105
+ {
+ mT__105();
+
+ }
+ break;
+ case 92:
+ // InternalAppliedStereotypeProperty.g:1:562: T__106
+ {
+ mT__106();
+
+ }
+ break;
+ case 93:
+ // InternalAppliedStereotypeProperty.g:1:569: T__107
+ {
+ mT__107();
+
+ }
+ break;
+ case 94:
+ // InternalAppliedStereotypeProperty.g:1:576: T__108
+ {
+ mT__108();
+
+ }
+ break;
+ case 95:
+ // InternalAppliedStereotypeProperty.g:1:583: T__109
+ {
+ mT__109();
+
+ }
+ break;
+ case 96:
+ // InternalAppliedStereotypeProperty.g:1:590: T__110
+ {
+ mT__110();
+
+ }
+ break;
+ case 97:
+ // InternalAppliedStereotypeProperty.g:1:597: T__111
+ {
+ mT__111();
+
+ }
+ break;
+ case 98:
+ // InternalAppliedStereotypeProperty.g:1:604: T__112
+ {
+ mT__112();
+
+ }
+ break;
+ case 99:
+ // InternalAppliedStereotypeProperty.g:1:611: T__113
+ {
+ mT__113();
+
+ }
+ break;
+ case 100:
+ // InternalAppliedStereotypeProperty.g:1:618: T__114
+ {
+ mT__114();
+
+ }
+ break;
+ case 101:
+ // InternalAppliedStereotypeProperty.g:1:625: T__115
+ {
+ mT__115();
+
+ }
+ break;
+ case 102:
+ // InternalAppliedStereotypeProperty.g:1:632: T__116
+ {
+ mT__116();
+
+ }
+ break;
+ case 103:
+ // InternalAppliedStereotypeProperty.g:1:639: T__117
+ {
+ mT__117();
+
+ }
+ break;
+ case 104:
+ // InternalAppliedStereotypeProperty.g:1:646: T__118
+ {
+ mT__118();
+
+ }
+ break;
+ case 105:
+ // InternalAppliedStereotypeProperty.g:1:653: T__119
+ {
+ mT__119();
+
+ }
+ break;
+ case 106:
+ // InternalAppliedStereotypeProperty.g:1:660: RULE_BOOLEAN_VALUE
+ {
+ mRULE_BOOLEAN_VALUE();
+
+ }
+ break;
+ case 107:
+ // InternalAppliedStereotypeProperty.g:1:679: RULE_NATURAL_VALUE
+ {
+ mRULE_NATURAL_VALUE();
+
+ }
+ break;
+ case 108:
+ // InternalAppliedStereotypeProperty.g:1:698: RULE_ID
+ {
+ mRULE_ID();
+
+ }
+ break;
+ case 109:
+ // InternalAppliedStereotypeProperty.g:1:706: RULE_UNRESTRICTED_NAME
+ {
+ mRULE_UNRESTRICTED_NAME();
+
+ }
+ break;
+ case 110:
+ // InternalAppliedStereotypeProperty.g:1:729: RULE_STRING
+ {
+ mRULE_STRING();
+
+ }
+ break;
+ case 111:
+ // InternalAppliedStereotypeProperty.g:1:741: RULE_DOCUMENTATION_COMMENT
+ {
+ mRULE_DOCUMENTATION_COMMENT();
+
+ }
+ break;
+ case 112:
+ // InternalAppliedStereotypeProperty.g:1:768: RULE_STATEMENT_ANNOTATION
+ {
+ mRULE_STATEMENT_ANNOTATION();
+
+ }
+ break;
+ case 113:
+ // InternalAppliedStereotypeProperty.g:1:794: RULE_INLINE_STATEMENT
+ {
+ mRULE_INLINE_STATEMENT();
+
+ }
+ break;
+ case 114:
+ // InternalAppliedStereotypeProperty.g:1:816: RULE_ML_COMMENT
+ {
+ mRULE_ML_COMMENT();
+
+ }
+ break;
+ case 115:
+ // InternalAppliedStereotypeProperty.g:1:832: RULE_SL_COMMENT
+ {
+ mRULE_SL_COMMENT();
+
+ }
+ break;
+ case 116:
+ // InternalAppliedStereotypeProperty.g:1:848: RULE_WS
+ {
+ mRULE_WS();
+
+ }
+ break;
+
+ }
+
+ }
+
+
+ protected DFA28 dfa28 = new DFA28(this);
+ static final String DFA28_eotS = "\1\uffff\1\62\4\uffff\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\1\75\4\uffff\1\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\1\76\4\uffff\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 = "\2\uffff\1\2\1\3\1\4\1\5\2\uffff\1\11\5\uffff\1\22\1\23\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\6\1\110\1\1\1\122\1\7\14\uffff\1\14\1\40\1\50\1\15\15\uffff\1\104\1\27\1\uffff\1\105\1\30\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\41\1\134\1\uffff\1\13\23\uffff\1\130\1\101\1\uffff\1\131\1\102\1\32\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\42\10\uffff\1\133\1\uffff\1\143\5\uffff\1\67\25\uffff\1\140\3\uffff\1\35\1\135\5\uffff\1\60\1\152\2\uffff\1\150\5\uffff\1\43\1\uffff\1\34\14\uffff\1\61\2\uffff\1\26\14\uffff\1\142\1\144\2\uffff\1\12\2\uffff\1\31\1\uffff\1\146\1\uffff\1\16\4\uffff\1\36\1\uffff\1\137\11\uffff\1\57\1\uffff\1\145\7\uffff\1\17\1\uffff\1\21\4\uffff\1\44\3\uffff\1\141\1\51\1\uffff\1\55\1\107\3\uffff\1\25\1\37\3\uffff\1\53\1\147\2\uffff\1\33\2\uffff\1\10\1\52\2\uffff\1\20\4\uffff\1\54\1\106\2\uffff\1\65\1\63\2\uffff\1\24\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\3\1\4\1\6\1\34\1\5\1\32\1\14\1\40\12\53\1\13\1\10\1\22\1\1\1\23\1\46\1\2\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/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/internal/InternalAppliedStereotypePropertyParser.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/internal/InternalAppliedStereotypePropertyParser.java
index af1a5ac3d34..db681e4d95c 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/internal/InternalAppliedStereotypePropertyParser.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/internal/InternalAppliedStereotypePropertyParser.java
@@ -1,40286 +1,42129 @@
-package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.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;
+package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.parser.antlr.internal;
+
+import org.antlr.runtime.BaseRecognizer;
+import org.antlr.runtime.BitSet;
+import org.antlr.runtime.DFA;
+import org.antlr.runtime.EarlyExitException;
+import org.antlr.runtime.IntStream;
+import org.antlr.runtime.NoViableAltException;
+import org.antlr.runtime.RecognitionException;
+import org.antlr.runtime.RecognizerSharedState;
+import org.antlr.runtime.Token;
+import org.antlr.runtime.TokenStream;
import org.eclipse.emf.ecore.EObject;
+import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.services.AppliedStereotypePropertyGrammarAccess;
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.textedit.stereotypeproperty.xtext.services.AppliedStereotypePropertyGrammarAccess;
-
-
-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 InternalAppliedStereotypePropertyParser extends AbstractInternalAntlrParser {
- public static final String[] tokenNames = new String[] {
- "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_BOOLEAN_VALUE", "RULE_NATURAL_VALUE", "RULE_STRING", "RULE_DOCUMENTATION_COMMENT", "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=5;
- 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=7;
- 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=4;
- public static final int T__71=71;
- public static final int T__72=72;
- public static final int RULE_STRING=6;
- 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 InternalAppliedStereotypePropertyParser(TokenStream input) {
- this(input, new RecognizerSharedState());
- }
- public InternalAppliedStereotypePropertyParser(TokenStream input, RecognizerSharedState state) {
- super(input, state);
-
- }
-
-
- public String[] getTokenNames() { return InternalAppliedStereotypePropertyParser.tokenNames; }
- public String getGrammarFileName() { return "InternalAppliedStereotypeProperty.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 AppliedStereotypePropertyGrammarAccess grammarAccess;
-
- public InternalAppliedStereotypePropertyParser(TokenStream input, AppliedStereotypePropertyGrammarAccess grammarAccess) {
- this(input);
- this.grammarAccess = grammarAccess;
- registerRules(grammarAccess.getGrammar());
- }
-
- @Override
- protected String getFirstRuleName() {
- return "AppliedStereotypePropertyRule";
- }
-
- @Override
- protected AppliedStereotypePropertyGrammarAccess getGrammarAccess() {
- return grammarAccess;
- }
-
-
-
- // $ANTLR start "entryRuleAppliedStereotypePropertyRule"
- // InternalAppliedStereotypeProperty.g:73:1: entryRuleAppliedStereotypePropertyRule returns [EObject current=null] : iv_ruleAppliedStereotypePropertyRule= ruleAppliedStereotypePropertyRule EOF ;
- public final EObject entryRuleAppliedStereotypePropertyRule() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAppliedStereotypePropertyRule = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:74:2: (iv_ruleAppliedStereotypePropertyRule= ruleAppliedStereotypePropertyRule EOF )
- // InternalAppliedStereotypeProperty.g:75:2: iv_ruleAppliedStereotypePropertyRule= ruleAppliedStereotypePropertyRule EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getAppliedStereotypePropertyRuleRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleAppliedStereotypePropertyRule=ruleAppliedStereotypePropertyRule();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleAppliedStereotypePropertyRule;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleAppliedStereotypePropertyRule"
-
-
- // $ANTLR start "ruleAppliedStereotypePropertyRule"
- // InternalAppliedStereotypeProperty.g:82:1: ruleAppliedStereotypePropertyRule returns [EObject current=null] : ( (lv_value_0_0= ruleExpressionValueRule ) ) ;
- public final EObject ruleAppliedStereotypePropertyRule() throws RecognitionException {
- EObject current = null;
-
- EObject lv_value_0_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAppliedStereotypeProperty.g:85:28: ( ( (lv_value_0_0= ruleExpressionValueRule ) ) )
- // InternalAppliedStereotypeProperty.g:86:1: ( (lv_value_0_0= ruleExpressionValueRule ) )
- {
- // InternalAppliedStereotypeProperty.g:86:1: ( (lv_value_0_0= ruleExpressionValueRule ) )
- // InternalAppliedStereotypeProperty.g:87:1: (lv_value_0_0= ruleExpressionValueRule )
- {
- // InternalAppliedStereotypeProperty.g:87:1: (lv_value_0_0= ruleExpressionValueRule )
- // InternalAppliedStereotypeProperty.g:88:3: lv_value_0_0= ruleExpressionValueRule
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAppliedStereotypePropertyRuleAccess().getValueExpressionValueRuleParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_value_0_0=ruleExpressionValueRule();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAppliedStereotypePropertyRuleRule());
- }
- set(
- current,
- "value",
- lv_value_0_0,
- "org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.AppliedStereotypeProperty.ExpressionValueRule");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleAppliedStereotypePropertyRule"
-
-
- // $ANTLR start "entryRuleExpressionValueRule"
- // InternalAppliedStereotypeProperty.g:112:1: entryRuleExpressionValueRule returns [EObject current=null] : iv_ruleExpressionValueRule= ruleExpressionValueRule EOF ;
- public final EObject entryRuleExpressionValueRule() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleExpressionValueRule = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:113:2: (iv_ruleExpressionValueRule= ruleExpressionValueRule EOF )
- // InternalAppliedStereotypeProperty.g:114:2: iv_ruleExpressionValueRule= ruleExpressionValueRule EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getExpressionValueRuleRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleExpressionValueRule=ruleExpressionValueRule();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleExpressionValueRule;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleExpressionValueRule"
-
-
- // $ANTLR start "ruleExpressionValueRule"
- // InternalAppliedStereotypeProperty.g:121:1: ruleExpressionValueRule returns [EObject current=null] : (otherlv_0= '=' ( (lv_expression_1_0= ruleSequenceElement ) ) ) ;
- public final EObject ruleExpressionValueRule() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- EObject lv_expression_1_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAppliedStereotypeProperty.g:124:28: ( (otherlv_0= '=' ( (lv_expression_1_0= ruleSequenceElement ) ) ) )
- // InternalAppliedStereotypeProperty.g:125:1: (otherlv_0= '=' ( (lv_expression_1_0= ruleSequenceElement ) ) )
- {
- // InternalAppliedStereotypeProperty.g:125:1: (otherlv_0= '=' ( (lv_expression_1_0= ruleSequenceElement ) ) )
- // InternalAppliedStereotypeProperty.g:125:3: otherlv_0= '=' ( (lv_expression_1_0= ruleSequenceElement ) )
- {
- otherlv_0=(Token)match(input,15,FOLLOW_3); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getExpressionValueRuleAccess().getEqualsSignKeyword_0());
-
- }
- // InternalAppliedStereotypeProperty.g:129:1: ( (lv_expression_1_0= ruleSequenceElement ) )
- // InternalAppliedStereotypeProperty.g:130:1: (lv_expression_1_0= ruleSequenceElement )
- {
- // InternalAppliedStereotypeProperty.g:130:1: (lv_expression_1_0= ruleSequenceElement )
- // InternalAppliedStereotypeProperty.g:131:3: lv_expression_1_0= ruleSequenceElement
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getExpressionValueRuleAccess().getExpressionSequenceElementParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_expression_1_0=ruleSequenceElement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getExpressionValueRuleRule());
- }
- set(
- current,
- "expression",
- lv_expression_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.SequenceElement");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleExpressionValueRule"
-
-
- // $ANTLR start "entryRuleStereotypeAnnotation"
- // InternalAppliedStereotypeProperty.g:157:1: entryRuleStereotypeAnnotation returns [EObject current=null] : iv_ruleStereotypeAnnotation= ruleStereotypeAnnotation EOF ;
- public final EObject entryRuleStereotypeAnnotation() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleStereotypeAnnotation = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:158:2: (iv_ruleStereotypeAnnotation= ruleStereotypeAnnotation EOF )
- // InternalAppliedStereotypeProperty.g:159: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"
- // InternalAppliedStereotypeProperty.g:166: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 {
- // InternalAppliedStereotypeProperty.g:169:28: ( (otherlv_0= '@' ( (lv_stereotypeName_1_0= ruleQualifiedName ) ) (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )? ) )
- // InternalAppliedStereotypeProperty.g:170:1: (otherlv_0= '@' ( (lv_stereotypeName_1_0= ruleQualifiedName ) ) (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )? )
- {
- // InternalAppliedStereotypeProperty.g:170:1: (otherlv_0= '@' ( (lv_stereotypeName_1_0= ruleQualifiedName ) ) (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )? )
- // InternalAppliedStereotypeProperty.g:170: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,16,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getStereotypeAnnotationAccess().getCommercialAtKeyword_0());
-
- }
- // InternalAppliedStereotypeProperty.g:174:1: ( (lv_stereotypeName_1_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:175:1: (lv_stereotypeName_1_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:175:1: (lv_stereotypeName_1_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:176: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:192:2: (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )?
- int alt2=2;
- int LA2_0 = input.LA(1);
-
- if ( (LA2_0==17) ) {
- alt2=1;
- }
- switch (alt2) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:192:4: otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')'
- {
- otherlv_2=(Token)match(input,17,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getStereotypeAnnotationAccess().getLeftParenthesisKeyword_2_0());
-
- }
- // InternalAppliedStereotypeProperty.g:196:1: ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) )
- int alt1=2;
- int LA1_0 = input.LA(1);
-
- if ( (LA1_0==RULE_ID) ) {
- int LA1_1 = input.LA(2);
-
- if ( ((LA1_1>=18 && LA1_1<=19)||(LA1_1>=26 && LA1_1<=27)||LA1_1==37) ) {
- alt1=1;
- }
- else if ( (LA1_1==20) ) {
- alt1=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 1, 1, input);
-
- throw nvae;
- }
- }
- else if ( (LA1_0==RULE_UNRESTRICTED_NAME) ) {
- int LA1_2 = input.LA(2);
-
- if ( ((LA1_2>=18 && LA1_2<=19)||(LA1_2>=26 && LA1_2<=27)||LA1_2==37) ) {
- alt1=1;
- }
- else if ( (LA1_2==20) ) {
- alt1=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 1, 2, input);
-
- throw nvae;
- }
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 1, 0, input);
-
- throw nvae;
- }
- switch (alt1) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:196:2: ( (lv_names_3_0= ruleQualifiedNameList ) )
- {
- // InternalAppliedStereotypeProperty.g:196:2: ( (lv_names_3_0= ruleQualifiedNameList ) )
- // InternalAppliedStereotypeProperty.g:197:1: (lv_names_3_0= ruleQualifiedNameList )
- {
- // InternalAppliedStereotypeProperty.g:197:1: (lv_names_3_0= ruleQualifiedNameList )
- // InternalAppliedStereotypeProperty.g:198: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 :
- // InternalAppliedStereotypeProperty.g:215:6: ( (lv_taggedValues_4_0= ruleTaggedValueList ) )
- {
- // InternalAppliedStereotypeProperty.g:215:6: ( (lv_taggedValues_4_0= ruleTaggedValueList ) )
- // InternalAppliedStereotypeProperty.g:216:1: (lv_taggedValues_4_0= ruleTaggedValueList )
- {
- // InternalAppliedStereotypeProperty.g:216:1: (lv_taggedValues_4_0= ruleTaggedValueList )
- // InternalAppliedStereotypeProperty.g:217: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,18,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"
- // InternalAppliedStereotypeProperty.g:245:1: entryRuleTaggedValueList returns [EObject current=null] : iv_ruleTaggedValueList= ruleTaggedValueList EOF ;
- public final EObject entryRuleTaggedValueList() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleTaggedValueList = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:246:2: (iv_ruleTaggedValueList= ruleTaggedValueList EOF )
- // InternalAppliedStereotypeProperty.g:247: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"
- // InternalAppliedStereotypeProperty.g:254: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 {
- // InternalAppliedStereotypeProperty.g:257:28: ( ( ( (lv_taggedValue_0_0= ruleTaggedValue ) ) (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )* ) )
- // InternalAppliedStereotypeProperty.g:258:1: ( ( (lv_taggedValue_0_0= ruleTaggedValue ) ) (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:258:1: ( ( (lv_taggedValue_0_0= ruleTaggedValue ) ) (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )* )
- // InternalAppliedStereotypeProperty.g:258:2: ( (lv_taggedValue_0_0= ruleTaggedValue ) ) (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )*
- {
- // InternalAppliedStereotypeProperty.g:258:2: ( (lv_taggedValue_0_0= ruleTaggedValue ) )
- // InternalAppliedStereotypeProperty.g:259:1: (lv_taggedValue_0_0= ruleTaggedValue )
- {
- // InternalAppliedStereotypeProperty.g:259:1: (lv_taggedValue_0_0= ruleTaggedValue )
- // InternalAppliedStereotypeProperty.g:260: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:276:2: (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )*
- loop3:
- do {
- int alt3=2;
- int LA3_0 = input.LA(1);
-
- if ( (LA3_0==19) ) {
- alt3=1;
- }
-
-
- switch (alt3) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:276:4: otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) )
- {
- otherlv_1=(Token)match(input,19,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getTaggedValueListAccess().getCommaKeyword_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:280:1: ( (lv_taggedValue_2_0= ruleTaggedValue ) )
- // InternalAppliedStereotypeProperty.g:281:1: (lv_taggedValue_2_0= ruleTaggedValue )
- {
- // InternalAppliedStereotypeProperty.g:281:1: (lv_taggedValue_2_0= ruleTaggedValue )
- // InternalAppliedStereotypeProperty.g:282: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 loop3;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleTaggedValueList"
-
-
- // $ANTLR start "entryRuleTaggedValue"
- // InternalAppliedStereotypeProperty.g:306:1: entryRuleTaggedValue returns [EObject current=null] : iv_ruleTaggedValue= ruleTaggedValue EOF ;
- public final EObject entryRuleTaggedValue() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleTaggedValue = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:307:2: (iv_ruleTaggedValue= ruleTaggedValue EOF )
- // InternalAppliedStereotypeProperty.g:308: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"
- // InternalAppliedStereotypeProperty.g:315: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 {
- // InternalAppliedStereotypeProperty.g:318: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 ) ) ) ) )
- // InternalAppliedStereotypeProperty.g:319: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 ) ) ) )
- {
- // InternalAppliedStereotypeProperty.g:319: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 ) ) ) )
- // InternalAppliedStereotypeProperty.g:319: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 ) ) )
- {
- // InternalAppliedStereotypeProperty.g:319:2: ( (lv_name_0_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:320:1: (lv_name_0_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:320:1: (lv_name_0_0= ruleName )
- // InternalAppliedStereotypeProperty.g:321: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,20,FOLLOW_9); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getTaggedValueAccess().getEqualsSignGreaterThanSignKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:341: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 alt5=4;
- switch ( input.LA(1) ) {
- case RULE_BOOLEAN_VALUE:
- {
- alt5=1;
- }
- break;
- case RULE_NATURAL_VALUE:
- case 74:
- case 75:
- {
- alt5=2;
- }
- break;
- case 21:
- {
- alt5=3;
- }
- break;
- case RULE_STRING:
- {
- alt5=4;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 5, 0, input);
-
- throw nvae;
- }
-
- switch (alt5) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:341:2: ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) )
- {
- // InternalAppliedStereotypeProperty.g:341:2: ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) )
- // InternalAppliedStereotypeProperty.g:342:1: (lv_value_2_0= RULE_BOOLEAN_VALUE )
- {
- // InternalAppliedStereotypeProperty.g:342:1: (lv_value_2_0= RULE_BOOLEAN_VALUE )
- // InternalAppliedStereotypeProperty.g:343: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 :
- // InternalAppliedStereotypeProperty.g:360:6: ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) )
- {
- // InternalAppliedStereotypeProperty.g:360:6: ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) )
- // InternalAppliedStereotypeProperty.g:360:7: ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) )
- {
- // InternalAppliedStereotypeProperty.g:360:7: ( (lv_operator_3_0= ruleNumericUnaryOperator ) )?
- int alt4=2;
- int LA4_0 = input.LA(1);
-
- if ( ((LA4_0>=74 && LA4_0<=75)) ) {
- alt4=1;
- }
- switch (alt4) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:361:1: (lv_operator_3_0= ruleNumericUnaryOperator )
- {
- // InternalAppliedStereotypeProperty.g:361:1: (lv_operator_3_0= ruleNumericUnaryOperator )
- // InternalAppliedStereotypeProperty.g:362: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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:378:3: ( (lv_value_4_0= RULE_NATURAL_VALUE ) )
- // InternalAppliedStereotypeProperty.g:379:1: (lv_value_4_0= RULE_NATURAL_VALUE )
- {
- // InternalAppliedStereotypeProperty.g:379:1: (lv_value_4_0= RULE_NATURAL_VALUE )
- // InternalAppliedStereotypeProperty.g:380: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 :
- // InternalAppliedStereotypeProperty.g:397:6: ( (lv_value_5_0= '*' ) )
- {
- // InternalAppliedStereotypeProperty.g:397:6: ( (lv_value_5_0= '*' ) )
- // InternalAppliedStereotypeProperty.g:398:1: (lv_value_5_0= '*' )
- {
- // InternalAppliedStereotypeProperty.g:398:1: (lv_value_5_0= '*' )
- // InternalAppliedStereotypeProperty.g:399:3: lv_value_5_0= '*'
- {
- lv_value_5_0=(Token)match(input,21,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 :
- // InternalAppliedStereotypeProperty.g:413:6: ( (lv_value_6_0= RULE_STRING ) )
- {
- // InternalAppliedStereotypeProperty.g:413:6: ( (lv_value_6_0= RULE_STRING ) )
- // InternalAppliedStereotypeProperty.g:414:1: (lv_value_6_0= RULE_STRING )
- {
- // InternalAppliedStereotypeProperty.g:414:1: (lv_value_6_0= RULE_STRING )
- // InternalAppliedStereotypeProperty.g:415: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"
- // InternalAppliedStereotypeProperty.g:439:1: entryRuleNamespaceDeclaration returns [EObject current=null] : iv_ruleNamespaceDeclaration= ruleNamespaceDeclaration EOF ;
- public final EObject entryRuleNamespaceDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNamespaceDeclaration = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:440:2: (iv_ruleNamespaceDeclaration= ruleNamespaceDeclaration EOF )
- // InternalAppliedStereotypeProperty.g:441: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"
- // InternalAppliedStereotypeProperty.g:448: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 {
- // InternalAppliedStereotypeProperty.g:451:28: ( (otherlv_0= 'namespace' this_QualifiedName_1= ruleQualifiedName otherlv_2= ';' ) )
- // InternalAppliedStereotypeProperty.g:452:1: (otherlv_0= 'namespace' this_QualifiedName_1= ruleQualifiedName otherlv_2= ';' )
- {
- // InternalAppliedStereotypeProperty.g:452:1: (otherlv_0= 'namespace' this_QualifiedName_1= ruleQualifiedName otherlv_2= ';' )
- // InternalAppliedStereotypeProperty.g:452:3: otherlv_0= 'namespace' this_QualifiedName_1= ruleQualifiedName otherlv_2= ';'
- {
- otherlv_0=(Token)match(input,22,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,23,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"
- // InternalAppliedStereotypeProperty.g:480:1: entryRuleImportDeclaration returns [EObject current=null] : iv_ruleImportDeclaration= ruleImportDeclaration EOF ;
- public final EObject entryRuleImportDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleImportDeclaration = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:481:2: (iv_ruleImportDeclaration= ruleImportDeclaration EOF )
- // InternalAppliedStereotypeProperty.g:482: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"
- // InternalAppliedStereotypeProperty.g:489: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 {
- // InternalAppliedStereotypeProperty.g:492:28: ( ( (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference ) otherlv_2= ';' ) )
- // InternalAppliedStereotypeProperty.g:493:1: ( (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference ) otherlv_2= ';' )
- {
- // InternalAppliedStereotypeProperty.g:493:1: ( (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference ) otherlv_2= ';' )
- // InternalAppliedStereotypeProperty.g:493:2: (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference ) otherlv_2= ';'
- {
- // InternalAppliedStereotypeProperty.g:493:2: (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference )
- int alt6=2;
- int LA6_0 = input.LA(1);
-
- if ( (LA6_0==28) ) {
- int LA6_1 = input.LA(2);
-
- if ( (synpred8_InternalAppliedStereotypeProperty()) ) {
- alt6=1;
- }
- else if ( (true) ) {
- alt6=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 6, 1, input);
-
- throw nvae;
- }
- }
- else if ( (LA6_0==29) ) {
- int LA6_2 = input.LA(2);
-
- if ( (synpred8_InternalAppliedStereotypeProperty()) ) {
- alt6=1;
- }
- else if ( (true) ) {
- alt6=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 6, 2, input);
-
- throw nvae;
- }
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 6, 0, input);
-
- throw nvae;
- }
- switch (alt6) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:494: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 :
- // InternalAppliedStereotypeProperty.g:507: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,23,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"
- // InternalAppliedStereotypeProperty.g:530:1: entryRuleElementImportReference returns [EObject current=null] : iv_ruleElementImportReference= ruleElementImportReference EOF ;
- public final EObject entryRuleElementImportReference() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleElementImportReference = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:531:2: (iv_ruleElementImportReference= ruleElementImportReference EOF )
- // InternalAppliedStereotypeProperty.g:532: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"
- // InternalAppliedStereotypeProperty.g:539: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 {
- // InternalAppliedStereotypeProperty.g:542:28: ( ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= ruleQualifiedName ) ) (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )? ) )
- // InternalAppliedStereotypeProperty.g:543:1: ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= ruleQualifiedName ) ) (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )? )
- {
- // InternalAppliedStereotypeProperty.g:543:1: ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= ruleQualifiedName ) ) (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )? )
- // InternalAppliedStereotypeProperty.g:543:2: ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= ruleQualifiedName ) ) (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )?
- {
- // InternalAppliedStereotypeProperty.g:543:2: ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) )
- // InternalAppliedStereotypeProperty.g:544:1: (lv_visibility_0_0= ruleImportVisibilityIndicator )
- {
- // InternalAppliedStereotypeProperty.g:544:1: (lv_visibility_0_0= ruleImportVisibilityIndicator )
- // InternalAppliedStereotypeProperty.g:545: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,24,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getElementImportReferenceAccess().getImportKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:565:1: ( (lv_referentName_2_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:566:1: (lv_referentName_2_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:566:1: (lv_referentName_2_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:567: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:583:2: (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )?
- int alt7=2;
- int LA7_0 = input.LA(1);
-
- if ( (LA7_0==25) ) {
- alt7=1;
- }
- switch (alt7) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:583:4: otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) )
- {
- otherlv_3=(Token)match(input,25,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getElementImportReferenceAccess().getAsKeyword_3_0());
-
- }
- // InternalAppliedStereotypeProperty.g:587:1: ( (lv_alias_4_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:588:1: (lv_alias_4_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:588:1: (lv_alias_4_0= ruleName )
- // InternalAppliedStereotypeProperty.g:589: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"
- // InternalAppliedStereotypeProperty.g:613:1: entryRulePackageImportReference returns [EObject current=null] : iv_rulePackageImportReference= rulePackageImportReference EOF ;
- public final EObject entryRulePackageImportReference() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePackageImportReference = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:614:2: (iv_rulePackageImportReference= rulePackageImportReference EOF )
- // InternalAppliedStereotypeProperty.g:615: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"
- // InternalAppliedStereotypeProperty.g:622: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 {
- // InternalAppliedStereotypeProperty.g:625:28: ( ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= rulePackageImportQualifiedName ) ) ) )
- // InternalAppliedStereotypeProperty.g:626:1: ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= rulePackageImportQualifiedName ) ) )
- {
- // InternalAppliedStereotypeProperty.g:626:1: ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= rulePackageImportQualifiedName ) ) )
- // InternalAppliedStereotypeProperty.g:626:2: ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= rulePackageImportQualifiedName ) )
- {
- // InternalAppliedStereotypeProperty.g:626:2: ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) )
- // InternalAppliedStereotypeProperty.g:627:1: (lv_visibility_0_0= ruleImportVisibilityIndicator )
- {
- // InternalAppliedStereotypeProperty.g:627:1: (lv_visibility_0_0= ruleImportVisibilityIndicator )
- // InternalAppliedStereotypeProperty.g:628: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,24,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getPackageImportReferenceAccess().getImportKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:648:1: ( (lv_referentName_2_0= rulePackageImportQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:649:1: (lv_referentName_2_0= rulePackageImportQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:649:1: (lv_referentName_2_0= rulePackageImportQualifiedName )
- // InternalAppliedStereotypeProperty.g:650: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"
- // InternalAppliedStereotypeProperty.g:674:1: entryRulePackageImportQualifiedName returns [EObject current=null] : iv_rulePackageImportQualifiedName= rulePackageImportQualifiedName EOF ;
- public final EObject entryRulePackageImportQualifiedName() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePackageImportQualifiedName = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:675:2: (iv_rulePackageImportQualifiedName= rulePackageImportQualifiedName EOF )
- // InternalAppliedStereotypeProperty.g:676: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"
- // InternalAppliedStereotypeProperty.g:683: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 {
- // InternalAppliedStereotypeProperty.g:686: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= '*' ) ) ) )
- // InternalAppliedStereotypeProperty.g:687: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= '*' ) ) )
- {
- // InternalAppliedStereotypeProperty.g:687: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= '*' ) ) )
- // InternalAppliedStereotypeProperty.g:687: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= '*' ) )
- {
- // InternalAppliedStereotypeProperty.g:687:2: ( (lv_nameBinding_0_0= ruleNameBinding ) )
- // InternalAppliedStereotypeProperty.g:688:1: (lv_nameBinding_0_0= ruleNameBinding )
- {
- // InternalAppliedStereotypeProperty.g:688:1: (lv_nameBinding_0_0= ruleNameBinding )
- // InternalAppliedStereotypeProperty.g:689:3: lv_nameBinding_0_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackageImportQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_15);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:705:2: ( ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' ) | ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' ) )
- int alt10=2;
- int LA10_0 = input.LA(1);
-
- if ( (LA10_0==26) ) {
- alt10=1;
- }
- else if ( (LA10_0==27) ) {
- alt10=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 10, 0, input);
-
- throw nvae;
- }
- switch (alt10) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:705:3: ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' )
- {
- // InternalAppliedStereotypeProperty.g:705:3: ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' )
- // InternalAppliedStereotypeProperty.g:705:4: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*'
- {
- // InternalAppliedStereotypeProperty.g:705:4: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )*
- loop8:
- do {
- int alt8=2;
- int LA8_0 = input.LA(1);
-
- if ( (LA8_0==26) ) {
- int LA8_1 = input.LA(2);
-
- if ( ((LA8_1>=RULE_ID && LA8_1<=RULE_UNRESTRICTED_NAME)) ) {
- alt8=1;
- }
-
-
- }
-
-
- switch (alt8) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:705:6: otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) )
- {
- otherlv_1=(Token)match(input,26,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getPackageImportQualifiedNameAccess().getColonColonKeyword_1_0_0_0());
-
- }
- // InternalAppliedStereotypeProperty.g:709:1: ( (lv_nameBinding_2_0= ruleNameBinding ) )
- // InternalAppliedStereotypeProperty.g:710:1: (lv_nameBinding_2_0= ruleNameBinding )
- {
- // InternalAppliedStereotypeProperty.g:710:1: (lv_nameBinding_2_0= ruleNameBinding )
- // InternalAppliedStereotypeProperty.g:711:3: lv_nameBinding_2_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackageImportQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_0_0_1_0());
-
- }
- pushFollow(FOLLOW_16);
- 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 loop8;
- }
- } while (true);
-
- otherlv_3=(Token)match(input,26,FOLLOW_17); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getPackageImportQualifiedNameAccess().getColonColonKeyword_1_0_1());
-
- }
- otherlv_4=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getPackageImportQualifiedNameAccess().getAsteriskKeyword_1_0_2());
-
- }
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:736:6: ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' )
- {
- // InternalAppliedStereotypeProperty.g:736:6: ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' )
- // InternalAppliedStereotypeProperty.g:736:7: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*'
- {
- // InternalAppliedStereotypeProperty.g:736:7: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
- loop9:
- do {
- int alt9=2;
- int LA9_0 = input.LA(1);
-
- if ( (LA9_0==27) ) {
- int LA9_1 = input.LA(2);
-
- if ( ((LA9_1>=RULE_ID && LA9_1<=RULE_UNRESTRICTED_NAME)) ) {
- alt9=1;
- }
-
-
- }
-
-
- switch (alt9) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:736:9: otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) )
- {
- otherlv_5=(Token)match(input,27,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getPackageImportQualifiedNameAccess().getFullStopKeyword_1_1_0_0());
-
- }
- // InternalAppliedStereotypeProperty.g:740:1: ( (lv_nameBinding_6_0= ruleNameBinding ) )
- // InternalAppliedStereotypeProperty.g:741:1: (lv_nameBinding_6_0= ruleNameBinding )
- {
- // InternalAppliedStereotypeProperty.g:741:1: (lv_nameBinding_6_0= ruleNameBinding )
- // InternalAppliedStereotypeProperty.g:742:3: lv_nameBinding_6_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackageImportQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_0_1_0());
-
- }
- pushFollow(FOLLOW_18);
- 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();
-
- }
-
- }
+ public static final String[] tokenNames = new String[] {
+ "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_BOOLEAN_VALUE", "RULE_NATURAL_VALUE", "RULE_STRING", "RULE_DOCUMENTATION_COMMENT", "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 = 5;
+ 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 = 7;
+ 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 = 4;
+ public static final int T__71 = 71;
+ public static final int T__72 = 72;
+ public static final int RULE_STRING = 6;
+ 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 InternalAppliedStereotypePropertyParser(TokenStream input) {
+ this(input, new RecognizerSharedState());
+ }
+
+ public InternalAppliedStereotypePropertyParser(TokenStream input, RecognizerSharedState state) {
+ super(input, state);
+
+ }
+
+
+ public String[] getTokenNames() {
+ return InternalAppliedStereotypePropertyParser.tokenNames;
+ }
+
+ public String getGrammarFileName() {
+ return "../org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/parser/antlr/internal/InternalAppliedStereotypeProperty.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 AppliedStereotypePropertyGrammarAccess grammarAccess;
+
+ public InternalAppliedStereotypePropertyParser(TokenStream input, AppliedStereotypePropertyGrammarAccess grammarAccess) {
+ this(input);
+ this.grammarAccess = grammarAccess;
+ registerRules(grammarAccess.getGrammar());
+ }
+
+ @Override
+ protected String getFirstRuleName() {
+ return "AppliedStereotypePropertyRule";
+ }
+
+ @Override
+ protected AppliedStereotypePropertyGrammarAccess getGrammarAccess() {
+ return grammarAccess;
+ }
+
+
+
+ // $ANTLR start "entryRuleAppliedStereotypePropertyRule"
+ // InternalAppliedStereotypeProperty.g:73:1: entryRuleAppliedStereotypePropertyRule returns [EObject current=null] : iv_ruleAppliedStereotypePropertyRule= ruleAppliedStereotypePropertyRule EOF ;
+ public final EObject entryRuleAppliedStereotypePropertyRule() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAppliedStereotypePropertyRule = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:74:2: (iv_ruleAppliedStereotypePropertyRule= ruleAppliedStereotypePropertyRule EOF )
+ // InternalAppliedStereotypeProperty.g:75:2: iv_ruleAppliedStereotypePropertyRule= ruleAppliedStereotypePropertyRule EOF
+ {
+ if (state.backtracking == 0) {
+ newCompositeNode(grammarAccess.getAppliedStereotypePropertyRuleRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleAppliedStereotypePropertyRule = ruleAppliedStereotypePropertyRule();
+
+ state._fsp--;
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+ current = iv_ruleAppliedStereotypePropertyRule;
+ }
+ match(input, EOF, FOLLOW_2);
+ if (state.failed)
+ return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleAppliedStereotypePropertyRule"
+
+
+ // $ANTLR start "ruleAppliedStereotypePropertyRule"
+ // InternalAppliedStereotypeProperty.g:82:1: ruleAppliedStereotypePropertyRule returns [EObject current=null] : ( (lv_value_0_0= ruleExpressionValueRule ) ) ;
+ public final EObject ruleAppliedStereotypePropertyRule() throws RecognitionException {
+ EObject current = null;
+
+ EObject lv_value_0_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAppliedStereotypeProperty.g:85:28: ( ( (lv_value_0_0= ruleExpressionValueRule ) ) )
+ // InternalAppliedStereotypeProperty.g:86:1: ( (lv_value_0_0= ruleExpressionValueRule ) )
+ {
+ // InternalAppliedStereotypeProperty.g:86:1: ( (lv_value_0_0= ruleExpressionValueRule ) )
+ // InternalAppliedStereotypeProperty.g:87:1: (lv_value_0_0= ruleExpressionValueRule )
+ {
+ // InternalAppliedStereotypeProperty.g:87:1: (lv_value_0_0= ruleExpressionValueRule )
+ // InternalAppliedStereotypeProperty.g:88:3: lv_value_0_0= ruleExpressionValueRule
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getAppliedStereotypePropertyRuleAccess().getValueExpressionValueRuleParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_value_0_0 = ruleExpressionValueRule();
+
+ state._fsp--;
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ if (current == null) {
+ current = createModelElementForParent(grammarAccess.getAppliedStereotypePropertyRuleRule());
+ }
+ set(
+ current,
+ "value",
+ lv_value_0_0,
+ "org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.AppliedStereotypeProperty.ExpressionValueRule");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAppliedStereotypePropertyRule"
+
+
+ // $ANTLR start "entryRuleExpressionValueRule"
+ // InternalAppliedStereotypeProperty.g:112:1: entryRuleExpressionValueRule returns [EObject current=null] : iv_ruleExpressionValueRule= ruleExpressionValueRule EOF ;
+ public final EObject entryRuleExpressionValueRule() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleExpressionValueRule = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:113:2: (iv_ruleExpressionValueRule= ruleExpressionValueRule EOF )
+ // InternalAppliedStereotypeProperty.g:114:2: iv_ruleExpressionValueRule= ruleExpressionValueRule EOF
+ {
+ if (state.backtracking == 0) {
+ newCompositeNode(grammarAccess.getExpressionValueRuleRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleExpressionValueRule = ruleExpressionValueRule();
+
+ state._fsp--;
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+ current = iv_ruleExpressionValueRule;
+ }
+ match(input, EOF, FOLLOW_2);
+ if (state.failed)
+ return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleExpressionValueRule"
+
+
+ // $ANTLR start "ruleExpressionValueRule"
+ // InternalAppliedStereotypeProperty.g:121:1: ruleExpressionValueRule returns [EObject current=null] : (otherlv_0= '=' ( (lv_expression_1_0= ruleSequenceElement ) ) ) ;
+ public final EObject ruleExpressionValueRule() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0 = null;
+ EObject lv_expression_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAppliedStereotypeProperty.g:124:28: ( (otherlv_0= '=' ( (lv_expression_1_0= ruleSequenceElement ) ) ) )
+ // InternalAppliedStereotypeProperty.g:125:1: (otherlv_0= '=' ( (lv_expression_1_0= ruleSequenceElement ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:125:1: (otherlv_0= '=' ( (lv_expression_1_0= ruleSequenceElement ) ) )
+ // InternalAppliedStereotypeProperty.g:125:3: otherlv_0= '=' ( (lv_expression_1_0= ruleSequenceElement ) )
+ {
+ otherlv_0 = (Token) match(input, 15, FOLLOW_3);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getExpressionValueRuleAccess().getEqualsSignKeyword_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:129:1: ( (lv_expression_1_0= ruleSequenceElement ) )
+ // InternalAppliedStereotypeProperty.g:130:1: (lv_expression_1_0= ruleSequenceElement )
+ {
+ // InternalAppliedStereotypeProperty.g:130:1: (lv_expression_1_0= ruleSequenceElement )
+ // InternalAppliedStereotypeProperty.g:131:3: lv_expression_1_0= ruleSequenceElement
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getExpressionValueRuleAccess().getExpressionSequenceElementParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_expression_1_0 = ruleSequenceElement();
+
+ state._fsp--;
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ if (current == null) {
+ current = createModelElementForParent(grammarAccess.getExpressionValueRuleRule());
+ }
+ set(
+ current,
+ "expression",
+ lv_expression_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SequenceElement");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleExpressionValueRule"
+
+
+ // $ANTLR start "entryRuleStereotypeAnnotation"
+ // InternalAppliedStereotypeProperty.g:157:1: entryRuleStereotypeAnnotation returns [EObject current=null] : iv_ruleStereotypeAnnotation= ruleStereotypeAnnotation EOF ;
+ public final EObject entryRuleStereotypeAnnotation() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleStereotypeAnnotation = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:158:2: (iv_ruleStereotypeAnnotation= ruleStereotypeAnnotation EOF )
+ // InternalAppliedStereotypeProperty.g:159: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"
+ // InternalAppliedStereotypeProperty.g:166: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 {
+ // InternalAppliedStereotypeProperty.g:169:28: ( (otherlv_0= '@' ( (lv_stereotypeName_1_0= ruleQualifiedName ) ) (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )? ) )
+ // InternalAppliedStereotypeProperty.g:170:1: (otherlv_0= '@' ( (lv_stereotypeName_1_0= ruleQualifiedName ) ) (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )? )
+ {
+ // InternalAppliedStereotypeProperty.g:170:1: (otherlv_0= '@' ( (lv_stereotypeName_1_0= ruleQualifiedName ) ) (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )? )
+ // InternalAppliedStereotypeProperty.g:170: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, 16, FOLLOW_4);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getStereotypeAnnotationAccess().getCommercialAtKeyword_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:174:1: ( (lv_stereotypeName_1_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:175:1: (lv_stereotypeName_1_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:175:1: (lv_stereotypeName_1_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:176: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:192:2: (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )?
+ int alt2 = 2;
+ int LA2_0 = input.LA(1);
+
+ if ((LA2_0 == 17)) {
+ alt2 = 1;
+ }
+ switch (alt2) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:192:4: otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')'
+ {
+ otherlv_2 = (Token) match(input, 17, FOLLOW_4);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getStereotypeAnnotationAccess().getLeftParenthesisKeyword_2_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:196:1: ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) )
+ int alt1 = 2;
+ int LA1_0 = input.LA(1);
+
+ if ((LA1_0 == RULE_ID)) {
+ int LA1_1 = input.LA(2);
+
+ if (((LA1_1 >= 18 && LA1_1 <= 19) || (LA1_1 >= 26 && LA1_1 <= 27) || LA1_1 == 37)) {
+ alt1 = 1;
+ } else if ((LA1_1 == 20)) {
+ alt1 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 1, 1, input);
+
+ throw nvae;
+ }
+ } else if ((LA1_0 == RULE_UNRESTRICTED_NAME)) {
+ int LA1_2 = input.LA(2);
+
+ if (((LA1_2 >= 18 && LA1_2 <= 19) || (LA1_2 >= 26 && LA1_2 <= 27) || LA1_2 == 37)) {
+ alt1 = 1;
+ } else if ((LA1_2 == 20)) {
+ alt1 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 1, 2, input);
+
+ throw nvae;
+ }
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 1, 0, input);
+
+ throw nvae;
+ }
+ switch (alt1) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:196:2: ( (lv_names_3_0= ruleQualifiedNameList ) )
+ {
+ // InternalAppliedStereotypeProperty.g:196:2: ( (lv_names_3_0= ruleQualifiedNameList ) )
+ // InternalAppliedStereotypeProperty.g:197:1: (lv_names_3_0= ruleQualifiedNameList )
+ {
+ // InternalAppliedStereotypeProperty.g:197:1: (lv_names_3_0= ruleQualifiedNameList )
+ // InternalAppliedStereotypeProperty.g:198: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:
+ // InternalAppliedStereotypeProperty.g:215:6: ( (lv_taggedValues_4_0= ruleTaggedValueList ) )
+ {
+ // InternalAppliedStereotypeProperty.g:215:6: ( (lv_taggedValues_4_0= ruleTaggedValueList ) )
+ // InternalAppliedStereotypeProperty.g:216:1: (lv_taggedValues_4_0= ruleTaggedValueList )
+ {
+ // InternalAppliedStereotypeProperty.g:216:1: (lv_taggedValues_4_0= ruleTaggedValueList )
+ // InternalAppliedStereotypeProperty.g:217: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, 18, 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"
+ // InternalAppliedStereotypeProperty.g:245:1: entryRuleTaggedValueList returns [EObject current=null] : iv_ruleTaggedValueList= ruleTaggedValueList EOF ;
+ public final EObject entryRuleTaggedValueList() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleTaggedValueList = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:246:2: (iv_ruleTaggedValueList= ruleTaggedValueList EOF )
+ // InternalAppliedStereotypeProperty.g:247: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"
+ // InternalAppliedStereotypeProperty.g:254: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 {
+ // InternalAppliedStereotypeProperty.g:257:28: ( ( ( (lv_taggedValue_0_0= ruleTaggedValue ) ) (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )* ) )
+ // InternalAppliedStereotypeProperty.g:258:1: ( ( (lv_taggedValue_0_0= ruleTaggedValue ) ) (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:258:1: ( ( (lv_taggedValue_0_0= ruleTaggedValue ) ) (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )* )
+ // InternalAppliedStereotypeProperty.g:258:2: ( (lv_taggedValue_0_0= ruleTaggedValue ) ) (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )*
+ {
+ // InternalAppliedStereotypeProperty.g:258:2: ( (lv_taggedValue_0_0= ruleTaggedValue ) )
+ // InternalAppliedStereotypeProperty.g:259:1: (lv_taggedValue_0_0= ruleTaggedValue )
+ {
+ // InternalAppliedStereotypeProperty.g:259:1: (lv_taggedValue_0_0= ruleTaggedValue )
+ // InternalAppliedStereotypeProperty.g:260: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:276:2: (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )*
+ loop3: do {
+ int alt3 = 2;
+ int LA3_0 = input.LA(1);
+
+ if ((LA3_0 == 19)) {
+ alt3 = 1;
+ }
+
+
+ switch (alt3) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:276:4: otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) )
+ {
+ otherlv_1 = (Token) match(input, 19, FOLLOW_4);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getTaggedValueListAccess().getCommaKeyword_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:280:1: ( (lv_taggedValue_2_0= ruleTaggedValue ) )
+ // InternalAppliedStereotypeProperty.g:281:1: (lv_taggedValue_2_0= ruleTaggedValue )
+ {
+ // InternalAppliedStereotypeProperty.g:281:1: (lv_taggedValue_2_0= ruleTaggedValue )
+ // InternalAppliedStereotypeProperty.g:282: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 loop3;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleTaggedValueList"
+
+
+ // $ANTLR start "entryRuleTaggedValue"
+ // InternalAppliedStereotypeProperty.g:306:1: entryRuleTaggedValue returns [EObject current=null] : iv_ruleTaggedValue= ruleTaggedValue EOF ;
+ public final EObject entryRuleTaggedValue() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleTaggedValue = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:307:2: (iv_ruleTaggedValue= ruleTaggedValue EOF )
+ // InternalAppliedStereotypeProperty.g:308: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"
+ // InternalAppliedStereotypeProperty.g:315: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 {
+ // InternalAppliedStereotypeProperty.g:318: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 ) ) ) ) )
+ // InternalAppliedStereotypeProperty.g:319: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 ) ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:319: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 ) ) ) )
+ // InternalAppliedStereotypeProperty.g:319: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 ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:319:2: ( (lv_name_0_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:320:1: (lv_name_0_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:320:1: (lv_name_0_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:321: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, 20, FOLLOW_9);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getTaggedValueAccess().getEqualsSignGreaterThanSignKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:341: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 alt5 = 4;
+ switch (input.LA(1)) {
+ case RULE_BOOLEAN_VALUE: {
+ alt5 = 1;
+ }
+ break;
+ case RULE_NATURAL_VALUE:
+ case 74:
+ case 75: {
+ alt5 = 2;
+ }
+ break;
+ case 21: {
+ alt5 = 3;
+ }
+ break;
+ case RULE_STRING: {
+ alt5 = 4;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 5, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt5) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:341:2: ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) )
+ {
+ // InternalAppliedStereotypeProperty.g:341:2: ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) )
+ // InternalAppliedStereotypeProperty.g:342:1: (lv_value_2_0= RULE_BOOLEAN_VALUE )
+ {
+ // InternalAppliedStereotypeProperty.g:342:1: (lv_value_2_0= RULE_BOOLEAN_VALUE )
+ // InternalAppliedStereotypeProperty.g:343: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:
+ // InternalAppliedStereotypeProperty.g:360:6: ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:360:6: ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) )
+ // InternalAppliedStereotypeProperty.g:360:7: ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) )
+ {
+ // InternalAppliedStereotypeProperty.g:360:7: ( (lv_operator_3_0= ruleNumericUnaryOperator ) )?
+ int alt4 = 2;
+ int LA4_0 = input.LA(1);
+
+ if (((LA4_0 >= 74 && LA4_0 <= 75))) {
+ alt4 = 1;
+ }
+ switch (alt4) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:361:1: (lv_operator_3_0= ruleNumericUnaryOperator )
+ {
+ // InternalAppliedStereotypeProperty.g:361:1: (lv_operator_3_0= ruleNumericUnaryOperator )
+ // InternalAppliedStereotypeProperty.g:362: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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:378:3: ( (lv_value_4_0= RULE_NATURAL_VALUE ) )
+ // InternalAppliedStereotypeProperty.g:379:1: (lv_value_4_0= RULE_NATURAL_VALUE )
+ {
+ // InternalAppliedStereotypeProperty.g:379:1: (lv_value_4_0= RULE_NATURAL_VALUE )
+ // InternalAppliedStereotypeProperty.g:380: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:
+ // InternalAppliedStereotypeProperty.g:397:6: ( (lv_value_5_0= '*' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:397:6: ( (lv_value_5_0= '*' ) )
+ // InternalAppliedStereotypeProperty.g:398:1: (lv_value_5_0= '*' )
+ {
+ // InternalAppliedStereotypeProperty.g:398:1: (lv_value_5_0= '*' )
+ // InternalAppliedStereotypeProperty.g:399:3: lv_value_5_0= '*'
+ {
+ lv_value_5_0 = (Token) match(input, 21, 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:
+ // InternalAppliedStereotypeProperty.g:413:6: ( (lv_value_6_0= RULE_STRING ) )
+ {
+ // InternalAppliedStereotypeProperty.g:413:6: ( (lv_value_6_0= RULE_STRING ) )
+ // InternalAppliedStereotypeProperty.g:414:1: (lv_value_6_0= RULE_STRING )
+ {
+ // InternalAppliedStereotypeProperty.g:414:1: (lv_value_6_0= RULE_STRING )
+ // InternalAppliedStereotypeProperty.g:415: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"
+ // InternalAppliedStereotypeProperty.g:439:1: entryRuleNamespaceDeclaration returns [EObject current=null] : iv_ruleNamespaceDeclaration= ruleNamespaceDeclaration EOF ;
+ public final EObject entryRuleNamespaceDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNamespaceDeclaration = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:440:2: (iv_ruleNamespaceDeclaration= ruleNamespaceDeclaration EOF )
+ // InternalAppliedStereotypeProperty.g:441: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"
+ // InternalAppliedStereotypeProperty.g:448: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 {
+ // InternalAppliedStereotypeProperty.g:451:28: ( (otherlv_0= 'namespace' this_QualifiedName_1= ruleQualifiedName otherlv_2= ';' ) )
+ // InternalAppliedStereotypeProperty.g:452:1: (otherlv_0= 'namespace' this_QualifiedName_1= ruleQualifiedName otherlv_2= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:452:1: (otherlv_0= 'namespace' this_QualifiedName_1= ruleQualifiedName otherlv_2= ';' )
+ // InternalAppliedStereotypeProperty.g:452:3: otherlv_0= 'namespace' this_QualifiedName_1= ruleQualifiedName otherlv_2= ';'
+ {
+ otherlv_0 = (Token) match(input, 22, 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, 23, 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"
+ // InternalAppliedStereotypeProperty.g:480:1: entryRuleImportDeclaration returns [EObject current=null] : iv_ruleImportDeclaration= ruleImportDeclaration EOF ;
+ public final EObject entryRuleImportDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleImportDeclaration = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:481:2: (iv_ruleImportDeclaration= ruleImportDeclaration EOF )
+ // InternalAppliedStereotypeProperty.g:482: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"
+ // InternalAppliedStereotypeProperty.g:489: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 {
+ // InternalAppliedStereotypeProperty.g:492:28: ( ( (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference ) otherlv_2= ';' ) )
+ // InternalAppliedStereotypeProperty.g:493:1: ( (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference ) otherlv_2= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:493:1: ( (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference ) otherlv_2= ';' )
+ // InternalAppliedStereotypeProperty.g:493:2: (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference ) otherlv_2= ';'
+ {
+ // InternalAppliedStereotypeProperty.g:493:2: (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference )
+ int alt6 = 2;
+ int LA6_0 = input.LA(1);
+
+ if ((LA6_0 == 28)) {
+ int LA6_1 = input.LA(2);
+
+ if ((synpred8_InternalAppliedStereotypeProperty())) {
+ alt6 = 1;
+ } else if ((true)) {
+ alt6 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 6, 1, input);
+
+ throw nvae;
+ }
+ } else if ((LA6_0 == 29)) {
+ int LA6_2 = input.LA(2);
+
+ if ((synpred8_InternalAppliedStereotypeProperty())) {
+ alt6 = 1;
+ } else if ((true)) {
+ alt6 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 6, 2, input);
+
+ throw nvae;
+ }
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 6, 0, input);
+
+ throw nvae;
+ }
+ switch (alt6) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:494: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:
+ // InternalAppliedStereotypeProperty.g:507: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, 23, 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"
+ // InternalAppliedStereotypeProperty.g:530:1: entryRuleElementImportReference returns [EObject current=null] : iv_ruleElementImportReference= ruleElementImportReference EOF ;
+ public final EObject entryRuleElementImportReference() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleElementImportReference = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:531:2: (iv_ruleElementImportReference= ruleElementImportReference EOF )
+ // InternalAppliedStereotypeProperty.g:532: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"
+ // InternalAppliedStereotypeProperty.g:539: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 {
+ // InternalAppliedStereotypeProperty.g:542:28: ( ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= ruleQualifiedName ) ) (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )? ) )
+ // InternalAppliedStereotypeProperty.g:543:1: ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= ruleQualifiedName ) ) (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:543:1: ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= ruleQualifiedName ) ) (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )? )
+ // InternalAppliedStereotypeProperty.g:543:2: ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= ruleQualifiedName ) ) (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )?
+ {
+ // InternalAppliedStereotypeProperty.g:543:2: ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) )
+ // InternalAppliedStereotypeProperty.g:544:1: (lv_visibility_0_0= ruleImportVisibilityIndicator )
+ {
+ // InternalAppliedStereotypeProperty.g:544:1: (lv_visibility_0_0= ruleImportVisibilityIndicator )
+ // InternalAppliedStereotypeProperty.g:545: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, 24, FOLLOW_4);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getElementImportReferenceAccess().getImportKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:565:1: ( (lv_referentName_2_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:566:1: (lv_referentName_2_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:566:1: (lv_referentName_2_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:567: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:583:2: (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )?
+ int alt7 = 2;
+ int LA7_0 = input.LA(1);
+
+ if ((LA7_0 == 25)) {
+ alt7 = 1;
+ }
+ switch (alt7) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:583:4: otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) )
+ {
+ otherlv_3 = (Token) match(input, 25, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_3, grammarAccess.getElementImportReferenceAccess().getAsKeyword_3_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:587:1: ( (lv_alias_4_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:588:1: (lv_alias_4_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:588:1: (lv_alias_4_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:589: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"
+ // InternalAppliedStereotypeProperty.g:613:1: entryRulePackageImportReference returns [EObject current=null] : iv_rulePackageImportReference= rulePackageImportReference EOF ;
+ public final EObject entryRulePackageImportReference() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePackageImportReference = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:614:2: (iv_rulePackageImportReference= rulePackageImportReference EOF )
+ // InternalAppliedStereotypeProperty.g:615: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"
+ // InternalAppliedStereotypeProperty.g:622: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 {
+ // InternalAppliedStereotypeProperty.g:625:28: ( ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= rulePackageImportQualifiedName ) ) ) )
+ // InternalAppliedStereotypeProperty.g:626:1: ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= rulePackageImportQualifiedName ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:626:1: ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= rulePackageImportQualifiedName ) ) )
+ // InternalAppliedStereotypeProperty.g:626:2: ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= rulePackageImportQualifiedName ) )
+ {
+ // InternalAppliedStereotypeProperty.g:626:2: ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) )
+ // InternalAppliedStereotypeProperty.g:627:1: (lv_visibility_0_0= ruleImportVisibilityIndicator )
+ {
+ // InternalAppliedStereotypeProperty.g:627:1: (lv_visibility_0_0= ruleImportVisibilityIndicator )
+ // InternalAppliedStereotypeProperty.g:628: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, 24, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getPackageImportReferenceAccess().getImportKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:648:1: ( (lv_referentName_2_0= rulePackageImportQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:649:1: (lv_referentName_2_0= rulePackageImportQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:649:1: (lv_referentName_2_0= rulePackageImportQualifiedName )
+ // InternalAppliedStereotypeProperty.g:650: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"
+ // InternalAppliedStereotypeProperty.g:674:1: entryRulePackageImportQualifiedName returns [EObject current=null] : iv_rulePackageImportQualifiedName= rulePackageImportQualifiedName EOF ;
+ public final EObject entryRulePackageImportQualifiedName() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePackageImportQualifiedName = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:675:2: (iv_rulePackageImportQualifiedName= rulePackageImportQualifiedName EOF )
+ // InternalAppliedStereotypeProperty.g:676: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"
+ // InternalAppliedStereotypeProperty.g:683: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 {
+ // InternalAppliedStereotypeProperty.g:686: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= '*' ) ) ) )
+ // InternalAppliedStereotypeProperty.g:687: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= '*' ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:687: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= '*' ) ) )
+ // InternalAppliedStereotypeProperty.g:687: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= '*' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:687:2: ( (lv_nameBinding_0_0= ruleNameBinding ) )
+ // InternalAppliedStereotypeProperty.g:688:1: (lv_nameBinding_0_0= ruleNameBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:688:1: (lv_nameBinding_0_0= ruleNameBinding )
+ // InternalAppliedStereotypeProperty.g:689:3: lv_nameBinding_0_0= ruleNameBinding
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getPackageImportQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_15);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:705:2: ( ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' ) | ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8=
+ // '*' ) )
+ int alt10 = 2;
+ int LA10_0 = input.LA(1);
+
+ if ((LA10_0 == 26)) {
+ alt10 = 1;
+ } else if ((LA10_0 == 27)) {
+ alt10 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 10, 0, input);
+
+ throw nvae;
+ }
+ switch (alt10) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:705:3: ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' )
+ {
+ // InternalAppliedStereotypeProperty.g:705:3: ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' )
+ // InternalAppliedStereotypeProperty.g:705:4: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*'
+ {
+ // InternalAppliedStereotypeProperty.g:705:4: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )*
+ loop8: do {
+ int alt8 = 2;
+ int LA8_0 = input.LA(1);
+
+ if ((LA8_0 == 26)) {
+ int LA8_1 = input.LA(2);
+
+ if (((LA8_1 >= RULE_ID && LA8_1 <= RULE_UNRESTRICTED_NAME))) {
+ alt8 = 1;
+ }
+
+
+ }
+
+
+ switch (alt8) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:705:6: otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) )
+ {
+ otherlv_1 = (Token) match(input, 26, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getPackageImportQualifiedNameAccess().getColonColonKeyword_1_0_0_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:709:1: ( (lv_nameBinding_2_0= ruleNameBinding ) )
+ // InternalAppliedStereotypeProperty.g:710:1: (lv_nameBinding_2_0= ruleNameBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:710:1: (lv_nameBinding_2_0= ruleNameBinding )
+ // InternalAppliedStereotypeProperty.g:711:3: lv_nameBinding_2_0= ruleNameBinding
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getPackageImportQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_0_0_1_0());
+
+ }
+ pushFollow(FOLLOW_16);
+ 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 loop8;
+ }
+ } while (true);
+
+ otherlv_3 = (Token) match(input, 26, FOLLOW_17);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_3, grammarAccess.getPackageImportQualifiedNameAccess().getColonColonKeyword_1_0_1());
+
+ }
+ otherlv_4 = (Token) match(input, 21, FOLLOW_2);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_4, grammarAccess.getPackageImportQualifiedNameAccess().getAsteriskKeyword_1_0_2());
+
+ }
+
+ }
+
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:736:6: ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' )
+ {
+ // InternalAppliedStereotypeProperty.g:736:6: ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' )
+ // InternalAppliedStereotypeProperty.g:736:7: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*'
+ {
+ // InternalAppliedStereotypeProperty.g:736:7: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
+ loop9: do {
+ int alt9 = 2;
+ int LA9_0 = input.LA(1);
+
+ if ((LA9_0 == 27)) {
+ int LA9_1 = input.LA(2);
+
+ if (((LA9_1 >= RULE_ID && LA9_1 <= RULE_UNRESTRICTED_NAME))) {
+ alt9 = 1;
+ }
+
+
+ }
+
+
+ switch (alt9) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:736:9: otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) )
+ {
+ otherlv_5 = (Token) match(input, 27, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_5, grammarAccess.getPackageImportQualifiedNameAccess().getFullStopKeyword_1_1_0_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:740:1: ( (lv_nameBinding_6_0= ruleNameBinding ) )
+ // InternalAppliedStereotypeProperty.g:741:1: (lv_nameBinding_6_0= ruleNameBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:741:1: (lv_nameBinding_6_0= ruleNameBinding )
+ // InternalAppliedStereotypeProperty.g:742:3: lv_nameBinding_6_0= ruleNameBinding
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getPackageImportQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_0_1_0());
+
+ }
+ pushFollow(FOLLOW_18);
+ 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 loop9;
+ }
+ } while (true);
+
+ otherlv_7 = (Token) match(input, 27, FOLLOW_17);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_7, grammarAccess.getPackageImportQualifiedNameAccess().getFullStopKeyword_1_1_1());
+
+ }
+ otherlv_8 = (Token) match(input, 21, 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"
+ // InternalAppliedStereotypeProperty.g:774:1: entryRuleImportVisibilityIndicator returns [String current=null] : iv_ruleImportVisibilityIndicator= ruleImportVisibilityIndicator EOF ;
+ public final String entryRuleImportVisibilityIndicator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleImportVisibilityIndicator = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:775:2: (iv_ruleImportVisibilityIndicator= ruleImportVisibilityIndicator EOF )
+ // InternalAppliedStereotypeProperty.g:776: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"
+ // InternalAppliedStereotypeProperty.g:783: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 {
+ // InternalAppliedStereotypeProperty.g:786:28: ( (kw= 'public' | kw= 'private' ) )
+ // InternalAppliedStereotypeProperty.g:787:1: (kw= 'public' | kw= 'private' )
+ {
+ // InternalAppliedStereotypeProperty.g:787:1: (kw= 'public' | kw= 'private' )
+ int alt11 = 2;
+ int LA11_0 = input.LA(1);
+
+ if ((LA11_0 == 28)) {
+ alt11 = 1;
+ } else if ((LA11_0 == 29)) {
+ alt11 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 11, 0, input);
+
+ throw nvae;
+ }
+ switch (alt11) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:788:2: kw= 'public'
+ {
+ kw = (Token) match(input, 28, FOLLOW_2);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getImportVisibilityIndicatorAccess().getPublicKeyword_0());
+
+ }
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:795:2: kw= 'private'
+ {
+ kw = (Token) match(input, 29, 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"
+ // InternalAppliedStereotypeProperty.g:808:1: entryRuleNamespaceDefinition returns [EObject current=null] : iv_ruleNamespaceDefinition= ruleNamespaceDefinition EOF ;
+ public final EObject entryRuleNamespaceDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNamespaceDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:809:2: (iv_ruleNamespaceDefinition= ruleNamespaceDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:810: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"
+ // InternalAppliedStereotypeProperty.g:817: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 {
+ // InternalAppliedStereotypeProperty.g:820:28: ( (this_PackageDefinition_0= rulePackageDefinition | this_ClassifierDefinition_1= ruleClassifierDefinition ) )
+ // InternalAppliedStereotypeProperty.g:821:1: (this_PackageDefinition_0= rulePackageDefinition | this_ClassifierDefinition_1= ruleClassifierDefinition )
+ {
+ // InternalAppliedStereotypeProperty.g:821:1: (this_PackageDefinition_0= rulePackageDefinition | this_ClassifierDefinition_1= ruleClassifierDefinition )
+ int alt12 = 2;
+ int LA12_0 = input.LA(1);
+
+ if ((LA12_0 == 31)) {
+ alt12 = 1;
+ } else if (((LA12_0 >= 35 && LA12_0 <= 36) || LA12_0 == 39 || (LA12_0 >= 41 && LA12_0 <= 45))) {
+ alt12 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 12, 0, input);
+
+ throw nvae;
+ }
+ switch (alt12) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:822: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:
+ // InternalAppliedStereotypeProperty.g:835: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"
+ // InternalAppliedStereotypeProperty.g:854:1: entryRuleVisibilityIndicator returns [String current=null] : iv_ruleVisibilityIndicator= ruleVisibilityIndicator EOF ;
+ public final String entryRuleVisibilityIndicator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleVisibilityIndicator = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:855:2: (iv_ruleVisibilityIndicator= ruleVisibilityIndicator EOF )
+ // InternalAppliedStereotypeProperty.g:856: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"
+ // InternalAppliedStereotypeProperty.g:863: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 {
+ // InternalAppliedStereotypeProperty.g:866:28: ( (this_ImportVisibilityIndicator_0= ruleImportVisibilityIndicator | kw= 'protected' ) )
+ // InternalAppliedStereotypeProperty.g:867:1: (this_ImportVisibilityIndicator_0= ruleImportVisibilityIndicator | kw= 'protected' )
+ {
+ // InternalAppliedStereotypeProperty.g:867:1: (this_ImportVisibilityIndicator_0= ruleImportVisibilityIndicator | kw= 'protected' )
+ int alt13 = 2;
+ int LA13_0 = input.LA(1);
+
+ if (((LA13_0 >= 28 && LA13_0 <= 29))) {
+ alt13 = 1;
+ } else if ((LA13_0 == 30)) {
+ alt13 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 13, 0, input);
+
+ throw nvae;
+ }
+ switch (alt13) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:868: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:
+ // InternalAppliedStereotypeProperty.g:880:2: kw= 'protected'
+ {
+ kw = (Token) match(input, 30, 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"
+ // InternalAppliedStereotypeProperty.g:893:1: entryRulePackageDefinition returns [EObject current=null] : iv_rulePackageDefinition= rulePackageDefinition EOF ;
+ public final EObject entryRulePackageDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePackageDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:894:2: (iv_rulePackageDefinition= rulePackageDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:895: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"
+ // InternalAppliedStereotypeProperty.g:902: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 {
+ // InternalAppliedStereotypeProperty.g:905:28: ( (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) otherlv_2= '{' ( (lv_ownedMember_3_0= rulePackagedElement ) )* otherlv_4= '}' ) )
+ // InternalAppliedStereotypeProperty.g:906:1: (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) otherlv_2= '{' ( (lv_ownedMember_3_0= rulePackagedElement ) )* otherlv_4= '}' )
+ {
+ // InternalAppliedStereotypeProperty.g:906:1: (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) otherlv_2= '{' ( (lv_ownedMember_3_0= rulePackagedElement ) )* otherlv_4= '}' )
+ // InternalAppliedStereotypeProperty.g:906:3: otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) otherlv_2= '{' ( (lv_ownedMember_3_0= rulePackagedElement ) )* otherlv_4= '}'
+ {
+ otherlv_0 = (Token) match(input, 31, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getPackageDefinitionAccess().getPackageKeyword_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:910:1: ( (lv_name_1_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:911:1: (lv_name_1_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:911:1: (lv_name_1_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:912:3: lv_name_1_0= ruleName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getPackageDefinitionAccess().getNameNameParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_19);
+ 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, 32, FOLLOW_20);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getPackageDefinitionAccess().getLeftCurlyBracketKeyword_2());
+
+ }
+ // InternalAppliedStereotypeProperty.g:932:1: ( (lv_ownedMember_3_0= rulePackagedElement ) )*
+ loop14: do {
+ int alt14 = 2;
+ int LA14_0 = input.LA(1);
+
+ if ((LA14_0 == RULE_DOCUMENTATION_COMMENT || LA14_0 == 16 || (LA14_0 >= 28 && LA14_0 <= 29))) {
+ alt14 = 1;
+ }
+
+
+ switch (alt14) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:933:1: (lv_ownedMember_3_0= rulePackagedElement )
+ {
+ // InternalAppliedStereotypeProperty.g:933:1: (lv_ownedMember_3_0= rulePackagedElement )
+ // InternalAppliedStereotypeProperty.g:934:3: lv_ownedMember_3_0= rulePackagedElement
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getPackageDefinitionAccess().getOwnedMemberPackagedElementParserRuleCall_3_0());
+
+ }
+ pushFollow(FOLLOW_20);
+ 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 loop14;
+ }
+ } while (true);
+
+ otherlv_4 = (Token) match(input, 33, 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"
+ // InternalAppliedStereotypeProperty.g:962:1: entryRulePackageDefinitionOrStub returns [EObject current=null] : iv_rulePackageDefinitionOrStub= rulePackageDefinitionOrStub EOF ;
+ public final EObject entryRulePackageDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePackageDefinitionOrStub = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:963:2: (iv_rulePackageDefinitionOrStub= rulePackageDefinitionOrStub EOF )
+ // InternalAppliedStereotypeProperty.g:964: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"
+ // InternalAppliedStereotypeProperty.g:971: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 {
+ // InternalAppliedStereotypeProperty.g:974:28: ( (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) ) ) )
+ // InternalAppliedStereotypeProperty.g:975:1: (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:975:1: (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) ) )
+ // InternalAppliedStereotypeProperty.g:975: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, 31, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getPackageDefinitionOrStubAccess().getPackageKeyword_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:979:1: ( (lv_name_1_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:980:1: (lv_name_1_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:980:1: (lv_name_1_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:981:3: lv_name_1_0= ruleName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getPackageDefinitionOrStubAccess().getNameNameParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_21);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:997:2: ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) )
+ int alt16 = 2;
+ int LA16_0 = input.LA(1);
+
+ if ((LA16_0 == 23)) {
+ alt16 = 1;
+ } else if ((LA16_0 == 32)) {
+ 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:
+ // InternalAppliedStereotypeProperty.g:997:3: ( (lv_isStub_2_0= ';' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:997:3: ( (lv_isStub_2_0= ';' ) )
+ // InternalAppliedStereotypeProperty.g:998:1: (lv_isStub_2_0= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:998:1: (lv_isStub_2_0= ';' )
+ // InternalAppliedStereotypeProperty.g:999:3: lv_isStub_2_0= ';'
+ {
+ lv_isStub_2_0 = (Token) match(input, 23, 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:
+ // InternalAppliedStereotypeProperty.g:1013:6: (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' )
+ {
+ // InternalAppliedStereotypeProperty.g:1013:6: (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' )
+ // InternalAppliedStereotypeProperty.g:1013:8: otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}'
+ {
+ otherlv_3 = (Token) match(input, 32, FOLLOW_20);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_3, grammarAccess.getPackageDefinitionOrStubAccess().getLeftCurlyBracketKeyword_2_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:1017:1: ( (lv_ownedMember_4_0= rulePackagedElement ) )*
+ loop15: do {
+ int alt15 = 2;
+ int LA15_0 = input.LA(1);
+
+ if ((LA15_0 == RULE_DOCUMENTATION_COMMENT || LA15_0 == 16 || (LA15_0 >= 28 && LA15_0 <= 29))) {
+ alt15 = 1;
+ }
+
+
+ switch (alt15) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:1018:1: (lv_ownedMember_4_0= rulePackagedElement )
+ {
+ // InternalAppliedStereotypeProperty.g:1018:1: (lv_ownedMember_4_0= rulePackagedElement )
+ // InternalAppliedStereotypeProperty.g:1019:3: lv_ownedMember_4_0= rulePackagedElement
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getPackageDefinitionOrStubAccess().getOwnedMemberPackagedElementParserRuleCall_2_1_1_0());
+
+ }
+ pushFollow(FOLLOW_20);
+ 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 loop15;
+ }
+ } while (true);
+
+ otherlv_5 = (Token) match(input, 33, 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"
+ // InternalAppliedStereotypeProperty.g:1047:1: entryRulePackagedElement returns [EObject current=null] : iv_rulePackagedElement= rulePackagedElement EOF ;
+ public final EObject entryRulePackagedElement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePackagedElement = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:1048:2: (iv_rulePackagedElement= rulePackagedElement EOF )
+ // InternalAppliedStereotypeProperty.g:1049: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"
+ // InternalAppliedStereotypeProperty.g:1056: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 {
+ // InternalAppliedStereotypeProperty.g:1059:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) ) ( (lv_definition_3_0=
+ // rulePackagedElementDefinition ) ) ) )
+ // InternalAppliedStereotypeProperty.g:1060:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) ) ( (lv_definition_3_0=
+ // rulePackagedElementDefinition ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:1060:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) ) ( (lv_definition_3_0=
+ // rulePackagedElementDefinition ) ) )
+ // InternalAppliedStereotypeProperty.g:1060:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) ) ( (lv_definition_3_0=
+ // rulePackagedElementDefinition ) )
+ {
+ // InternalAppliedStereotypeProperty.g:1060:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
+ int alt17 = 2;
+ int LA17_0 = input.LA(1);
+
+ if ((LA17_0 == RULE_DOCUMENTATION_COMMENT)) {
+ alt17 = 1;
+ }
+ switch (alt17) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:1061:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ {
+ // InternalAppliedStereotypeProperty.g:1061:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ // InternalAppliedStereotypeProperty.g:1062:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
+ {
+ lv_documentation_0_0 = (Token) match(input, RULE_DOCUMENTATION_COMMENT, FOLLOW_22);
+ 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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:1078:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
+ loop18: do {
+ int alt18 = 2;
+ int LA18_0 = input.LA(1);
+
+ if ((LA18_0 == 16)) {
+ alt18 = 1;
+ }
+
+
+ switch (alt18) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:1079:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ {
+ // InternalAppliedStereotypeProperty.g:1079:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ // InternalAppliedStereotypeProperty.g:1080:3: lv_annotation_1_0= ruleStereotypeAnnotation
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getPackagedElementAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_22);
+ 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 loop18;
+ }
+ } while (true);
+
+ // InternalAppliedStereotypeProperty.g:1096:3: ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) )
+ // InternalAppliedStereotypeProperty.g:1097:1: (lv_visibility_2_0= ruleImportVisibilityIndicator )
+ {
+ // InternalAppliedStereotypeProperty.g:1097:1: (lv_visibility_2_0= ruleImportVisibilityIndicator )
+ // InternalAppliedStereotypeProperty.g:1098:3: lv_visibility_2_0= ruleImportVisibilityIndicator
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getPackagedElementAccess().getVisibilityImportVisibilityIndicatorParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_23);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:1114:2: ( (lv_definition_3_0= rulePackagedElementDefinition ) )
+ // InternalAppliedStereotypeProperty.g:1115:1: (lv_definition_3_0= rulePackagedElementDefinition )
+ {
+ // InternalAppliedStereotypeProperty.g:1115:1: (lv_definition_3_0= rulePackagedElementDefinition )
+ // InternalAppliedStereotypeProperty.g:1116: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"
+ // InternalAppliedStereotypeProperty.g:1140:1: entryRulePackagedElementDefinition returns [EObject current=null] : iv_rulePackagedElementDefinition= rulePackagedElementDefinition EOF ;
+ public final EObject entryRulePackagedElementDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePackagedElementDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:1141:2: (iv_rulePackagedElementDefinition= rulePackagedElementDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:1142: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"
+ // InternalAppliedStereotypeProperty.g:1149: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 {
+ // InternalAppliedStereotypeProperty.g:1152:28: ( (this_PackageDefinitionOrStub_0= rulePackageDefinitionOrStub | this_ClassifierDefinitionOrStub_1= ruleClassifierDefinitionOrStub ) )
+ // InternalAppliedStereotypeProperty.g:1153:1: (this_PackageDefinitionOrStub_0= rulePackageDefinitionOrStub | this_ClassifierDefinitionOrStub_1= ruleClassifierDefinitionOrStub )
+ {
+ // InternalAppliedStereotypeProperty.g:1153:1: (this_PackageDefinitionOrStub_0= rulePackageDefinitionOrStub | this_ClassifierDefinitionOrStub_1= ruleClassifierDefinitionOrStub )
+ int alt19 = 2;
+ int LA19_0 = input.LA(1);
+
+ if ((LA19_0 == 31)) {
+ alt19 = 1;
+ } else if (((LA19_0 >= 35 && LA19_0 <= 36) || LA19_0 == 39 || (LA19_0 >= 41 && LA19_0 <= 45))) {
+ alt19 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 19, 0, input);
+
+ throw nvae;
+ }
+ switch (alt19) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:1154: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:
+ // InternalAppliedStereotypeProperty.g:1167: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"
+ // InternalAppliedStereotypeProperty.g:1186:1: entryRuleClassifierDefinition returns [EObject current=null] : iv_ruleClassifierDefinition= ruleClassifierDefinition EOF ;
+ public final EObject entryRuleClassifierDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassifierDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:1187:2: (iv_ruleClassifierDefinition= ruleClassifierDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:1188: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"
+ // InternalAppliedStereotypeProperty.g:1195: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 {
+ // InternalAppliedStereotypeProperty.g:1198: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 ) )
+ // InternalAppliedStereotypeProperty.g:1199: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 )
+ {
+ // InternalAppliedStereotypeProperty.g:1199: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 alt20 = 7;
+ switch (input.LA(1)) {
+ case 35: {
+ switch (input.LA(2)) {
+ case 44: {
+ alt20 = 6;
+ }
+ break;
+ case 41: {
+ alt20 = 3;
+ }
+ break;
+ case 36: {
+ alt20 = 1;
+ }
+ break;
+ case 42: {
+ alt20 = 5;
+ }
+ break;
+ case 39: {
+ alt20 = 2;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 20, 1, input);
+
+ throw nvae;
+ }
+
+ }
+ break;
+ case 36: {
+ alt20 = 1;
+ }
+ break;
+ case 39: {
+ alt20 = 2;
+ }
+ break;
+ case 41: {
+ alt20 = 3;
+ }
+ break;
+ case 43: {
+ alt20 = 4;
+ }
+ break;
+ case 42: {
+ alt20 = 5;
+ }
+ break;
+ case 44: {
+ alt20 = 6;
+ }
+ break;
+ case 45: {
+ alt20 = 7;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 20, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt20) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:1200: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:
+ // InternalAppliedStereotypeProperty.g:1213: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:
+ // InternalAppliedStereotypeProperty.g:1226: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:
+ // InternalAppliedStereotypeProperty.g:1239: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:
+ // InternalAppliedStereotypeProperty.g:1252: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:
+ // InternalAppliedStereotypeProperty.g:1265: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:
+ // InternalAppliedStereotypeProperty.g:1278: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"
+ // InternalAppliedStereotypeProperty.g:1297:1: entryRuleClassifierDefinitionOrStub returns [EObject current=null] : iv_ruleClassifierDefinitionOrStub= ruleClassifierDefinitionOrStub EOF ;
+ public final EObject entryRuleClassifierDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassifierDefinitionOrStub = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:1298:2: (iv_ruleClassifierDefinitionOrStub= ruleClassifierDefinitionOrStub EOF )
+ // InternalAppliedStereotypeProperty.g:1299: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"
+ // InternalAppliedStereotypeProperty.g:1306: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 {
+ // InternalAppliedStereotypeProperty.g:1309: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 ) )
+ // InternalAppliedStereotypeProperty.g:1310: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 )
+ {
+ // InternalAppliedStereotypeProperty.g:1310: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 alt21 = 7;
+ switch (input.LA(1)) {
+ case 35: {
+ switch (input.LA(2)) {
+ case 41: {
+ alt21 = 3;
+ }
+ break;
+ case 44: {
+ alt21 = 6;
+ }
+ break;
+ case 36: {
+ alt21 = 1;
+ }
+ break;
+ case 42: {
+ alt21 = 5;
+ }
+ break;
+ case 39: {
+ alt21 = 2;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 21, 1, input);
+
+ throw nvae;
+ }
+
+ }
+ break;
+ case 36: {
+ alt21 = 1;
+ }
+ break;
+ case 39: {
+ alt21 = 2;
+ }
+ break;
+ case 41: {
+ alt21 = 3;
+ }
+ break;
+ case 43: {
+ alt21 = 4;
+ }
+ break;
+ case 42: {
+ alt21 = 5;
+ }
+ break;
+ case 44: {
+ alt21 = 6;
+ }
+ break;
+ case 45: {
+ alt21 = 7;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 21, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt21) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:1311: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:
+ // InternalAppliedStereotypeProperty.g:1324: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:
+ // InternalAppliedStereotypeProperty.g:1337: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:
+ // InternalAppliedStereotypeProperty.g:1350: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:
+ // InternalAppliedStereotypeProperty.g:1363: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:
+ // InternalAppliedStereotypeProperty.g:1376: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:
+ // InternalAppliedStereotypeProperty.g:1389: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"
+ // InternalAppliedStereotypeProperty.g:1410:1: entryRuleClassifierTemplateParameter returns [EObject current=null] : iv_ruleClassifierTemplateParameter= ruleClassifierTemplateParameter EOF ;
+ public final EObject entryRuleClassifierTemplateParameter() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassifierTemplateParameter = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:1411:2: (iv_ruleClassifierTemplateParameter= ruleClassifierTemplateParameter EOF )
+ // InternalAppliedStereotypeProperty.g:1412: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"
+ // InternalAppliedStereotypeProperty.g:1419: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 {
+ // InternalAppliedStereotypeProperty.g:1422:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) ) ) )
+ // InternalAppliedStereotypeProperty.g:1423:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:1423:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) ) )
+ // InternalAppliedStereotypeProperty.g:1423:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) )
+ {
+ // InternalAppliedStereotypeProperty.g:1423:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
+ int alt22 = 2;
+ int LA22_0 = input.LA(1);
+
+ if ((LA22_0 == RULE_DOCUMENTATION_COMMENT)) {
+ alt22 = 1;
+ }
+ switch (alt22) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:1424:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ {
+ // InternalAppliedStereotypeProperty.g:1424:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ // InternalAppliedStereotypeProperty.g:1425:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
+ {
+ lv_documentation_0_0 = (Token) match(input, RULE_DOCUMENTATION_COMMENT, FOLLOW_14);
+ 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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:1441:3: ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) )
+ // InternalAppliedStereotypeProperty.g:1442:1: (lv_definition_1_0= ruleClassifierTemplateParameterDefinition )
+ {
+ // InternalAppliedStereotypeProperty.g:1442:1: (lv_definition_1_0= ruleClassifierTemplateParameterDefinition )
+ // InternalAppliedStereotypeProperty.g:1443: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"
+ // InternalAppliedStereotypeProperty.g:1467:1: entryRuleClassifierTemplateParameterDefinition returns [EObject current=null] : iv_ruleClassifierTemplateParameterDefinition= ruleClassifierTemplateParameterDefinition EOF ;
+ public final EObject entryRuleClassifierTemplateParameterDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassifierTemplateParameterDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:1468:2: (iv_ruleClassifierTemplateParameterDefinition= ruleClassifierTemplateParameterDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:1469: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"
+ // InternalAppliedStereotypeProperty.g:1476: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 {
+ // InternalAppliedStereotypeProperty.g:1479:28: ( ( ( (lv_name_0_0= ruleName ) ) (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )? ) )
+ // InternalAppliedStereotypeProperty.g:1480:1: ( ( (lv_name_0_0= ruleName ) ) (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:1480:1: ( ( (lv_name_0_0= ruleName ) ) (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )? )
+ // InternalAppliedStereotypeProperty.g:1480:2: ( (lv_name_0_0= ruleName ) ) (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )?
+ {
+ // InternalAppliedStereotypeProperty.g:1480:2: ( (lv_name_0_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:1481:1: (lv_name_0_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:1481:1: (lv_name_0_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:1482:3: lv_name_0_0= ruleName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getClassifierTemplateParameterDefinitionAccess().getNameNameParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_24);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:1498:2: (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )?
+ int alt23 = 2;
+ int LA23_0 = input.LA(1);
+
+ if ((LA23_0 == 34)) {
+ alt23 = 1;
+ }
+ switch (alt23) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:1498:4: otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) )
+ {
+ otherlv_1 = (Token) match(input, 34, FOLLOW_4);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getClassifierTemplateParameterDefinitionAccess().getSpecializesKeyword_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:1502:1: ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) )
+ // InternalAppliedStereotypeProperty.g:1503:1: (lv_specialization_2_0= ruleTemplateParameterConstraint )
+ {
+ // InternalAppliedStereotypeProperty.g:1503:1: (lv_specialization_2_0= ruleTemplateParameterConstraint )
+ // InternalAppliedStereotypeProperty.g:1504: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"
+ // InternalAppliedStereotypeProperty.g:1528:1: entryRuleTemplateParameterConstraint returns [EObject current=null] : iv_ruleTemplateParameterConstraint= ruleTemplateParameterConstraint EOF ;
+ public final EObject entryRuleTemplateParameterConstraint() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleTemplateParameterConstraint = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:1529:2: (iv_ruleTemplateParameterConstraint= ruleTemplateParameterConstraint EOF )
+ // InternalAppliedStereotypeProperty.g:1530: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"
+ // InternalAppliedStereotypeProperty.g:1537: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 {
+ // InternalAppliedStereotypeProperty.g:1540:28: ( ( (lv_name_0_0= ruleQualifiedName ) ) )
+ // InternalAppliedStereotypeProperty.g:1541:1: ( (lv_name_0_0= ruleQualifiedName ) )
+ {
+ // InternalAppliedStereotypeProperty.g:1541:1: ( (lv_name_0_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:1542:1: (lv_name_0_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:1542:1: (lv_name_0_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:1543: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"
+ // InternalAppliedStereotypeProperty.g:1567:1: entryRuleSpecializationClause returns [EObject current=null] : iv_ruleSpecializationClause= ruleSpecializationClause EOF ;
+ public final EObject entryRuleSpecializationClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSpecializationClause = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:1568:2: (iv_ruleSpecializationClause= ruleSpecializationClause EOF )
+ // InternalAppliedStereotypeProperty.g:1569: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"
+ // InternalAppliedStereotypeProperty.g:1576: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 {
+ // InternalAppliedStereotypeProperty.g:1579:28: ( (otherlv_0= 'specializes' this_QualifiedNameList_1= ruleQualifiedNameList ) )
+ // InternalAppliedStereotypeProperty.g:1580:1: (otherlv_0= 'specializes' this_QualifiedNameList_1= ruleQualifiedNameList )
+ {
+ // InternalAppliedStereotypeProperty.g:1580:1: (otherlv_0= 'specializes' this_QualifiedNameList_1= ruleQualifiedNameList )
+ // InternalAppliedStereotypeProperty.g:1580:3: otherlv_0= 'specializes' this_QualifiedNameList_1= ruleQualifiedNameList
+ {
+ otherlv_0 = (Token) match(input, 34, 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"
+ // InternalAppliedStereotypeProperty.g:1604:1: entryRuleClassDeclaration returns [EObject current=null] : iv_ruleClassDeclaration= ruleClassDeclaration EOF ;
+ public final EObject entryRuleClassDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassDeclaration = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:1605:2: (iv_ruleClassDeclaration= ruleClassDeclaration EOF )
+ // InternalAppliedStereotypeProperty.g:1606: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"
+ // InternalAppliedStereotypeProperty.g:1613: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 {
+ // InternalAppliedStereotypeProperty.g:1616: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 ) )? ) )
+ // InternalAppliedStereotypeProperty.g:1617: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 ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:1617: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 ) )? )
+ // InternalAppliedStereotypeProperty.g:1617: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 ) )?
+ {
+ // InternalAppliedStereotypeProperty.g:1617:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
+ int alt24 = 2;
+ int LA24_0 = input.LA(1);
+
+ if ((LA24_0 == 35)) {
+ alt24 = 1;
+ }
+ switch (alt24) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:1618:1: (lv_isAbstract_0_0= 'abstract' )
+ {
+ // InternalAppliedStereotypeProperty.g:1618:1: (lv_isAbstract_0_0= 'abstract' )
+ // InternalAppliedStereotypeProperty.g:1619:3: lv_isAbstract_0_0= 'abstract'
+ {
+ lv_isAbstract_0_0 = (Token) match(input, 35, FOLLOW_25);
+ 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, 36, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getClassDeclarationAccess().getClassKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:1636:1: ( (lv_name_2_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:1637:1: (lv_name_2_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:1637:1: (lv_name_2_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:1638:3: lv_name_2_0= ruleName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getClassDeclarationAccess().getNameNameParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_26);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:1654:2: (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )?
+ int alt26 = 2;
+ int LA26_0 = input.LA(1);
+
+ if ((LA26_0 == 37)) {
+ alt26 = 1;
+ }
+ switch (alt26) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:1654:4: otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>'
+ {
+ otherlv_3 = (Token) match(input, 37, FOLLOW_27);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_3, grammarAccess.getClassDeclarationAccess().getLessThanSignKeyword_3_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:1658:1: ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) )
+ // InternalAppliedStereotypeProperty.g:1659:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAppliedStereotypeProperty.g:1659:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
+ // InternalAppliedStereotypeProperty.g:1660:3: lv_ownedMember_4_0= ruleClassifierTemplateParameter
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
+
+ }
+ pushFollow(FOLLOW_28);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:1676:2: (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )*
+ loop25: do {
+ int alt25 = 2;
+ int LA25_0 = input.LA(1);
+
+ if ((LA25_0 == 19)) {
+ alt25 = 1;
+ }
+
+
+ switch (alt25) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:1676:4: otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
+ {
+ otherlv_5 = (Token) match(input, 19, FOLLOW_27);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_5, grammarAccess.getClassDeclarationAccess().getCommaKeyword_3_2_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:1680:1: ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
+ // InternalAppliedStereotypeProperty.g:1681:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAppliedStereotypeProperty.g:1681:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
+ // InternalAppliedStereotypeProperty.g:1682:3: lv_ownedMember_6_0= ruleClassifierTemplateParameter
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
+
+ }
+ pushFollow(FOLLOW_28);
+ 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 loop25;
+ }
+ } while (true);
+
+ otherlv_7 = (Token) match(input, 38, FOLLOW_24);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_7, grammarAccess.getClassDeclarationAccess().getGreaterThanSignKeyword_3_3());
+
+ }
+
+ }
+ break;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:1702:3: ( (lv_specialization_8_0= ruleSpecializationClause ) )?
+ int alt27 = 2;
+ int LA27_0 = input.LA(1);
+
+ if ((LA27_0 == 34)) {
+ alt27 = 1;
+ }
+ switch (alt27) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:1703:1: (lv_specialization_8_0= ruleSpecializationClause )
+ {
+ // InternalAppliedStereotypeProperty.g:1703:1: (lv_specialization_8_0= ruleSpecializationClause )
+ // InternalAppliedStereotypeProperty.g:1704: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"
+ // InternalAppliedStereotypeProperty.g:1728:1: entryRuleClassDefinition returns [EObject current=null] : iv_ruleClassDefinition= ruleClassDefinition EOF ;
+ public final EObject entryRuleClassDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:1729:2: (iv_ruleClassDefinition= ruleClassDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:1730: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"
+ // InternalAppliedStereotypeProperty.g:1737: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 {
+ // InternalAppliedStereotypeProperty.g:1740:28: ( (this_ClassDeclaration_0= ruleClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleClassMember ) )* otherlv_3= '}' ) )
+ // InternalAppliedStereotypeProperty.g:1741:1: (this_ClassDeclaration_0= ruleClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleClassMember ) )* otherlv_3= '}' )
+ {
+ // InternalAppliedStereotypeProperty.g:1741:1: (this_ClassDeclaration_0= ruleClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleClassMember ) )* otherlv_3= '}' )
+ // InternalAppliedStereotypeProperty.g:1742: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_19);
+ 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, 32, FOLLOW_29);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getClassDefinitionAccess().getLeftCurlyBracketKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:1757:1: ( (lv_ownedMember_2_0= ruleClassMember ) )*
+ loop28: do {
+ int alt28 = 2;
+ int LA28_0 = input.LA(1);
+
+ if (((LA28_0 >= RULE_DOCUMENTATION_COMMENT && LA28_0 <= RULE_UNRESTRICTED_NAME) || LA28_0 == 16 || (LA28_0 >= 28 && LA28_0 <= 30) || (LA28_0 >= 35 && LA28_0 <= 36) || LA28_0 == 39 || (LA28_0 >= 41 && LA28_0 <= 45))) {
+ alt28 = 1;
+ }
+
+
+ switch (alt28) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:1758:1: (lv_ownedMember_2_0= ruleClassMember )
+ {
+ // InternalAppliedStereotypeProperty.g:1758:1: (lv_ownedMember_2_0= ruleClassMember )
+ // InternalAppliedStereotypeProperty.g:1759:3: lv_ownedMember_2_0= ruleClassMember
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getClassDefinitionAccess().getOwnedMemberClassMemberParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_29);
+ 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 loop28;
+ }
+ } while (true);
+
+ otherlv_3 = (Token) match(input, 33, 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"
+ // InternalAppliedStereotypeProperty.g:1787:1: entryRuleClassDefinitionOrStub returns [EObject current=null] : iv_ruleClassDefinitionOrStub= ruleClassDefinitionOrStub EOF ;
+ public final EObject entryRuleClassDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassDefinitionOrStub = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:1788:2: (iv_ruleClassDefinitionOrStub= ruleClassDefinitionOrStub EOF )
+ // InternalAppliedStereotypeProperty.g:1789: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"
+ // InternalAppliedStereotypeProperty.g:1796: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 {
+ // InternalAppliedStereotypeProperty.g:1799:28: ( (this_ClassDeclaration_0= ruleClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) ) ) )
+ // InternalAppliedStereotypeProperty.g:1800:1: (this_ClassDeclaration_0= ruleClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:1800:1: (this_ClassDeclaration_0= ruleClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) ) )
+ // InternalAppliedStereotypeProperty.g:1801: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_21);
+ this_ClassDeclaration_0 = ruleClassDeclaration();
+
+ state._fsp--;
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ current = this_ClassDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAppliedStereotypeProperty.g:1812:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) )
+ int alt30 = 2;
+ int LA30_0 = input.LA(1);
+
+ if ((LA30_0 == 23)) {
+ alt30 = 1;
+ } else if ((LA30_0 == 32)) {
+ alt30 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 30, 0, input);
+
+ throw nvae;
+ }
+ switch (alt30) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:1812:2: ( (lv_isStub_1_0= ';' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:1812:2: ( (lv_isStub_1_0= ';' ) )
+ // InternalAppliedStereotypeProperty.g:1813:1: (lv_isStub_1_0= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:1813:1: (lv_isStub_1_0= ';' )
+ // InternalAppliedStereotypeProperty.g:1814:3: lv_isStub_1_0= ';'
+ {
+ lv_isStub_1_0 = (Token) match(input, 23, 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:
+ // InternalAppliedStereotypeProperty.g:1828:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' )
+ {
+ // InternalAppliedStereotypeProperty.g:1828:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' )
+ // InternalAppliedStereotypeProperty.g:1828:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}'
+ {
+ otherlv_2 = (Token) match(input, 32, FOLLOW_29);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getClassDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:1832:1: ( (lv_ownedMember_3_0= ruleClassMember ) )*
+ loop29: do {
+ int alt29 = 2;
+ int LA29_0 = input.LA(1);
+
+ if (((LA29_0 >= RULE_DOCUMENTATION_COMMENT && LA29_0 <= RULE_UNRESTRICTED_NAME) || LA29_0 == 16 || (LA29_0 >= 28 && LA29_0 <= 30) || (LA29_0 >= 35 && LA29_0 <= 36) || LA29_0 == 39 || (LA29_0 >= 41 && LA29_0 <= 45))) {
+ alt29 = 1;
+ }
+
+
+ switch (alt29) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:1833:1: (lv_ownedMember_3_0= ruleClassMember )
+ {
+ // InternalAppliedStereotypeProperty.g:1833:1: (lv_ownedMember_3_0= ruleClassMember )
+ // InternalAppliedStereotypeProperty.g:1834:3: lv_ownedMember_3_0= ruleClassMember
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getClassDefinitionOrStubAccess().getOwnedMemberClassMemberParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_29);
+ 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 loop29;
+ }
+ } while (true);
+
+ otherlv_4 = (Token) match(input, 33, 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"
+ // InternalAppliedStereotypeProperty.g:1862:1: entryRuleClassMember returns [EObject current=null] : iv_ruleClassMember= ruleClassMember EOF ;
+ public final EObject entryRuleClassMember() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassMember = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:1863:2: (iv_ruleClassMember= ruleClassMember EOF )
+ // InternalAppliedStereotypeProperty.g:1864: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"
+ // InternalAppliedStereotypeProperty.g:1871: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 {
+ // InternalAppliedStereotypeProperty.g:1874:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )* ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0=
+ // ruleClassMemberDefinition ) ) ) )
+ // InternalAppliedStereotypeProperty.g:1875:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )* ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0=
+ // ruleClassMemberDefinition ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:1875:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )* ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0=
+ // ruleClassMemberDefinition ) ) )
+ // InternalAppliedStereotypeProperty.g:1875:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )* ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0=
+ // ruleClassMemberDefinition ) )
+ {
+ // InternalAppliedStereotypeProperty.g:1875:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )*
+ loop31: do {
+ int alt31 = 2;
+ int LA31_0 = input.LA(1);
+
+ if ((LA31_0 == RULE_DOCUMENTATION_COMMENT)) {
+ alt31 = 1;
+ }
+
+
+ switch (alt31) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:1876:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ {
+ // InternalAppliedStereotypeProperty.g:1876:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ // InternalAppliedStereotypeProperty.g:1877:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
+ {
+ lv_documentation_0_0 = (Token) match(input, RULE_DOCUMENTATION_COMMENT, FOLLOW_30);
+ 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 loop31;
+ }
+ } while (true);
+
+ // InternalAppliedStereotypeProperty.g:1893:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
+ loop32: do {
+ int alt32 = 2;
+ int LA32_0 = input.LA(1);
+
+ if ((LA32_0 == 16)) {
+ alt32 = 1;
+ }
+
+
+ switch (alt32) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:1894:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ {
+ // InternalAppliedStereotypeProperty.g:1894:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ // InternalAppliedStereotypeProperty.g:1895:3: lv_annotation_1_0= ruleStereotypeAnnotation
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getClassMemberAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_30);
+ 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 loop32;
+ }
+ } while (true);
+
+ // InternalAppliedStereotypeProperty.g:1911:3: ( (lv_visibility_2_0= ruleVisibilityIndicator ) )?
+ int alt33 = 2;
+ int LA33_0 = input.LA(1);
+
+ if (((LA33_0 >= 28 && LA33_0 <= 30))) {
+ alt33 = 1;
+ }
+ switch (alt33) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:1912:1: (lv_visibility_2_0= ruleVisibilityIndicator )
+ {
+ // InternalAppliedStereotypeProperty.g:1912:1: (lv_visibility_2_0= ruleVisibilityIndicator )
+ // InternalAppliedStereotypeProperty.g:1913:3: lv_visibility_2_0= ruleVisibilityIndicator
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getClassMemberAccess().getVisibilityVisibilityIndicatorParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_30);
+ 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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:1929:3: ( (lv_definition_3_0= ruleClassMemberDefinition ) )
+ // InternalAppliedStereotypeProperty.g:1930:1: (lv_definition_3_0= ruleClassMemberDefinition )
+ {
+ // InternalAppliedStereotypeProperty.g:1930:1: (lv_definition_3_0= ruleClassMemberDefinition )
+ // InternalAppliedStereotypeProperty.g:1931: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"
+ // InternalAppliedStereotypeProperty.g:1955:1: entryRuleClassMemberDefinition returns [EObject current=null] : iv_ruleClassMemberDefinition= ruleClassMemberDefinition EOF ;
+ public final EObject entryRuleClassMemberDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassMemberDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:1956:2: (iv_ruleClassMemberDefinition= ruleClassMemberDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:1957: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"
+ // InternalAppliedStereotypeProperty.g:1964: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 {
+ // InternalAppliedStereotypeProperty.g:1967:28: ( (this_ClassifierDefinitionOrStub_0= ruleClassifierDefinitionOrStub | this_FeatureDefinitionOrStub_1= ruleFeatureDefinitionOrStub ) )
+ // InternalAppliedStereotypeProperty.g:1968:1: (this_ClassifierDefinitionOrStub_0= ruleClassifierDefinitionOrStub | this_FeatureDefinitionOrStub_1= ruleFeatureDefinitionOrStub )
+ {
+ // InternalAppliedStereotypeProperty.g:1968:1: (this_ClassifierDefinitionOrStub_0= ruleClassifierDefinitionOrStub | this_FeatureDefinitionOrStub_1= ruleFeatureDefinitionOrStub )
+ int alt34 = 2;
+ switch (input.LA(1)) {
+ case 35: {
+ int LA34_1 = input.LA(2);
+
+ if ((LA34_1 == 36 || LA34_1 == 39 || (LA34_1 >= 41 && LA34_1 <= 42) || LA34_1 == 44)) {
+ alt34 = 1;
+ } else if (((LA34_1 >= RULE_ID && LA34_1 <= RULE_UNRESTRICTED_NAME))) {
+ alt34 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 34, 1, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case 36:
+ case 39:
+ case 41:
+ case 42:
+ case 43:
+ case 44:
+ case 45: {
+ alt34 = 1;
+ }
+ break;
+ case RULE_ID:
+ case RULE_UNRESTRICTED_NAME: {
+ alt34 = 2;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 34, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt34) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:1969: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:
+ // InternalAppliedStereotypeProperty.g:1982: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"
+ // InternalAppliedStereotypeProperty.g:2001:1: entryRuleActiveClassDeclaration returns [EObject current=null] : iv_ruleActiveClassDeclaration= ruleActiveClassDeclaration EOF ;
+ public final EObject entryRuleActiveClassDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleActiveClassDeclaration = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:2002:2: (iv_ruleActiveClassDeclaration= ruleActiveClassDeclaration EOF )
+ // InternalAppliedStereotypeProperty.g:2003: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"
+ // InternalAppliedStereotypeProperty.g:2010: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 {
+ // InternalAppliedStereotypeProperty.g:2013: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 ) )? ) )
+ // InternalAppliedStereotypeProperty.g:2014: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 ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:2014: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 ) )? )
+ // InternalAppliedStereotypeProperty.g:2014: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 ) )?
+ {
+ // InternalAppliedStereotypeProperty.g:2014:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
+ int alt35 = 2;
+ int LA35_0 = input.LA(1);
+
+ if ((LA35_0 == 35)) {
+ alt35 = 1;
+ }
+ switch (alt35) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2015:1: (lv_isAbstract_0_0= 'abstract' )
+ {
+ // InternalAppliedStereotypeProperty.g:2015:1: (lv_isAbstract_0_0= 'abstract' )
+ // InternalAppliedStereotypeProperty.g:2016:3: lv_isAbstract_0_0= 'abstract'
+ {
+ lv_isAbstract_0_0 = (Token) match(input, 35, FOLLOW_31);
+ 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, 39, FOLLOW_25);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getActiveClassDeclarationAccess().getActiveKeyword_1());
+
+ }
+ otherlv_2 = (Token) match(input, 36, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getActiveClassDeclarationAccess().getClassKeyword_2());
+
+ }
+ // InternalAppliedStereotypeProperty.g:2037:1: ( (lv_name_3_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:2038:1: (lv_name_3_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:2038:1: (lv_name_3_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:2039:3: lv_name_3_0= ruleName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getNameNameParserRuleCall_3_0());
+
+ }
+ pushFollow(FOLLOW_26);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:2055:2: (otherlv_4= '<' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )* otherlv_8= '>' )?
+ int alt37 = 2;
+ int LA37_0 = input.LA(1);
+
+ if ((LA37_0 == 37)) {
+ alt37 = 1;
+ }
+ switch (alt37) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2055:4: otherlv_4= '<' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )* otherlv_8= '>'
+ {
+ otherlv_4 = (Token) match(input, 37, FOLLOW_27);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_4, grammarAccess.getActiveClassDeclarationAccess().getLessThanSignKeyword_4_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:2059:1: ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) )
+ // InternalAppliedStereotypeProperty.g:2060:1: (lv_ownedMember_5_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAppliedStereotypeProperty.g:2060:1: (lv_ownedMember_5_0= ruleClassifierTemplateParameter )
+ // InternalAppliedStereotypeProperty.g:2061:3: lv_ownedMember_5_0= ruleClassifierTemplateParameter
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_4_1_0());
+
+ }
+ pushFollow(FOLLOW_28);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:2077:2: (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )*
+ loop36: do {
+ int alt36 = 2;
+ int LA36_0 = input.LA(1);
+
+ if ((LA36_0 == 19)) {
+ alt36 = 1;
+ }
+
+
+ switch (alt36) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2077:4: otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) )
+ {
+ otherlv_6 = (Token) match(input, 19, FOLLOW_27);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_6, grammarAccess.getActiveClassDeclarationAccess().getCommaKeyword_4_2_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:2081:1: ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) )
+ // InternalAppliedStereotypeProperty.g:2082:1: (lv_ownedMember_7_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAppliedStereotypeProperty.g:2082:1: (lv_ownedMember_7_0= ruleClassifierTemplateParameter )
+ // InternalAppliedStereotypeProperty.g:2083:3: lv_ownedMember_7_0= ruleClassifierTemplateParameter
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_4_2_1_0());
+
+ }
+ pushFollow(FOLLOW_28);
+ 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 loop36;
+ }
+ } while (true);
+
+ otherlv_8 = (Token) match(input, 38, FOLLOW_24);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_8, grammarAccess.getActiveClassDeclarationAccess().getGreaterThanSignKeyword_4_3());
+
+ }
+
+ }
+ break;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:2103:3: ( (lv_specialization_9_0= ruleSpecializationClause ) )?
+ int alt38 = 2;
+ int LA38_0 = input.LA(1);
+
+ if ((LA38_0 == 34)) {
+ alt38 = 1;
+ }
+ switch (alt38) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2104:1: (lv_specialization_9_0= ruleSpecializationClause )
+ {
+ // InternalAppliedStereotypeProperty.g:2104:1: (lv_specialization_9_0= ruleSpecializationClause )
+ // InternalAppliedStereotypeProperty.g:2105: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"
+ // InternalAppliedStereotypeProperty.g:2129:1: entryRuleActiveClassDefinition returns [EObject current=null] : iv_ruleActiveClassDefinition= ruleActiveClassDefinition EOF ;
+ public final EObject entryRuleActiveClassDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleActiveClassDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:2130:2: (iv_ruleActiveClassDefinition= ruleActiveClassDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:2131: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"
+ // InternalAppliedStereotypeProperty.g:2138: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 {
+ // InternalAppliedStereotypeProperty.g:2141:28: ( (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleActiveClassMember ) )* otherlv_3= '}' (otherlv_4= 'do' ( (lv_classifierBehavior_5_0=
+ // ruleBehaviorClause ) ) )? ) )
+ // InternalAppliedStereotypeProperty.g:2142:1: (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleActiveClassMember ) )* otherlv_3= '}' (otherlv_4= 'do' ( (lv_classifierBehavior_5_0=
+ // ruleBehaviorClause ) ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:2142:1: (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleActiveClassMember ) )* otherlv_3= '}' (otherlv_4= 'do' ( (lv_classifierBehavior_5_0=
+ // ruleBehaviorClause ) ) )? )
+ // InternalAppliedStereotypeProperty.g:2143: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_19);
+ 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, 32, FOLLOW_32);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getActiveClassDefinitionAccess().getLeftCurlyBracketKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:2158:1: ( (lv_ownedMember_2_0= ruleActiveClassMember ) )*
+ loop39: do {
+ int alt39 = 2;
+ int LA39_0 = input.LA(1);
+
+ if (((LA39_0 >= RULE_DOCUMENTATION_COMMENT && LA39_0 <= RULE_UNRESTRICTED_NAME) || LA39_0 == 16 || (LA39_0 >= 28 && LA39_0 <= 30) || (LA39_0 >= 35 && LA39_0 <= 36) || LA39_0 == 39 || (LA39_0 >= 41 && LA39_0 <= 45) || LA39_0 == 59)) {
+ alt39 = 1;
+ }
+
+
+ switch (alt39) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2159:1: (lv_ownedMember_2_0= ruleActiveClassMember )
+ {
+ // InternalAppliedStereotypeProperty.g:2159:1: (lv_ownedMember_2_0= ruleActiveClassMember )
+ // InternalAppliedStereotypeProperty.g:2160:3: lv_ownedMember_2_0= ruleActiveClassMember
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getActiveClassDefinitionAccess().getOwnedMemberActiveClassMemberParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_32);
+ 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 loop39;
+ }
+ } while (true);
+
+ otherlv_3 = (Token) match(input, 33, FOLLOW_33);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_3, grammarAccess.getActiveClassDefinitionAccess().getRightCurlyBracketKeyword_3());
+
+ }
+ // InternalAppliedStereotypeProperty.g:2180:1: (otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) ) )?
+ int alt40 = 2;
+ int LA40_0 = input.LA(1);
+
+ if ((LA40_0 == 40)) {
+ alt40 = 1;
+ }
+ switch (alt40) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2180:3: otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) )
+ {
+ otherlv_4 = (Token) match(input, 40, FOLLOW_34);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_4, grammarAccess.getActiveClassDefinitionAccess().getDoKeyword_4_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:2184:1: ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) )
+ // InternalAppliedStereotypeProperty.g:2185:1: (lv_classifierBehavior_5_0= ruleBehaviorClause )
+ {
+ // InternalAppliedStereotypeProperty.g:2185:1: (lv_classifierBehavior_5_0= ruleBehaviorClause )
+ // InternalAppliedStereotypeProperty.g:2186: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"
+ // InternalAppliedStereotypeProperty.g:2210:1: entryRuleActiveClassDefinitionOrStub returns [EObject current=null] : iv_ruleActiveClassDefinitionOrStub= ruleActiveClassDefinitionOrStub EOF ;
+ public final EObject entryRuleActiveClassDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleActiveClassDefinitionOrStub = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:2211:2: (iv_ruleActiveClassDefinitionOrStub= ruleActiveClassDefinitionOrStub EOF )
+ // InternalAppliedStereotypeProperty.g:2212: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"
+ // InternalAppliedStereotypeProperty.g:2219: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 {
+ // InternalAppliedStereotypeProperty.g:2222: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 ) ) )? ) ) ) )
+ // InternalAppliedStereotypeProperty.g:2223: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 ) ) )? ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:2223: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 ) ) )? ) ) )
+ // InternalAppliedStereotypeProperty.g:2224: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_21);
+ this_ActiveClassDeclaration_0 = ruleActiveClassDeclaration();
+
+ state._fsp--;
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ current = this_ActiveClassDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAppliedStereotypeProperty.g:2235:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? ) )
+ int alt43 = 2;
+ int LA43_0 = input.LA(1);
+
+ if ((LA43_0 == 23)) {
+ alt43 = 1;
+ } else if ((LA43_0 == 32)) {
+ alt43 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 43, 0, input);
+
+ throw nvae;
+ }
+ switch (alt43) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2235:2: ( (lv_isStub_1_0= ';' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:2235:2: ( (lv_isStub_1_0= ';' ) )
+ // InternalAppliedStereotypeProperty.g:2236:1: (lv_isStub_1_0= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:2236:1: (lv_isStub_1_0= ';' )
+ // InternalAppliedStereotypeProperty.g:2237:3: lv_isStub_1_0= ';'
+ {
+ lv_isStub_1_0 = (Token) match(input, 23, 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:
+ // InternalAppliedStereotypeProperty.g:2251:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:2251:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? )
+ // InternalAppliedStereotypeProperty.g:2251:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )?
+ {
+ otherlv_2 = (Token) match(input, 32, FOLLOW_32);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getActiveClassDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:2255:1: ( (lv_ownedMember_3_0= ruleActiveClassMember ) )*
+ loop41: do {
+ int alt41 = 2;
+ int LA41_0 = input.LA(1);
+
+ if (((LA41_0 >= RULE_DOCUMENTATION_COMMENT && LA41_0 <= RULE_UNRESTRICTED_NAME) || LA41_0 == 16 || (LA41_0 >= 28 && LA41_0 <= 30) || (LA41_0 >= 35 && LA41_0 <= 36) || LA41_0 == 39 || (LA41_0 >= 41 && LA41_0 <= 45)
+ || LA41_0 == 59)) {
+ alt41 = 1;
+ }
+
+
+ switch (alt41) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2256:1: (lv_ownedMember_3_0= ruleActiveClassMember )
+ {
+ // InternalAppliedStereotypeProperty.g:2256:1: (lv_ownedMember_3_0= ruleActiveClassMember )
+ // InternalAppliedStereotypeProperty.g:2257:3: lv_ownedMember_3_0= ruleActiveClassMember
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getActiveClassDefinitionOrStubAccess().getOwnedMemberActiveClassMemberParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_32);
+ 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 loop41;
+ }
+ } while (true);
+
+ otherlv_4 = (Token) match(input, 33, FOLLOW_33);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_4, grammarAccess.getActiveClassDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
+
+ }
+ // InternalAppliedStereotypeProperty.g:2277:1: (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )?
+ int alt42 = 2;
+ int LA42_0 = input.LA(1);
+
+ if ((LA42_0 == 40)) {
+ alt42 = 1;
+ }
+ switch (alt42) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2277:3: otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) )
+ {
+ otherlv_5 = (Token) match(input, 40, FOLLOW_34);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_5, grammarAccess.getActiveClassDefinitionOrStubAccess().getDoKeyword_1_1_3_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:2281:1: ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) )
+ // InternalAppliedStereotypeProperty.g:2282:1: (lv_classifierBehavior_6_0= ruleBehaviorClause )
+ {
+ // InternalAppliedStereotypeProperty.g:2282:1: (lv_classifierBehavior_6_0= ruleBehaviorClause )
+ // InternalAppliedStereotypeProperty.g:2283: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"
+ // InternalAppliedStereotypeProperty.g:2307:1: entryRuleBehaviorClause returns [EObject current=null] : iv_ruleBehaviorClause= ruleBehaviorClause EOF ;
+ public final EObject entryRuleBehaviorClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBehaviorClause = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:2308:2: (iv_ruleBehaviorClause= ruleBehaviorClause EOF )
+ // InternalAppliedStereotypeProperty.g:2309: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"
+ // InternalAppliedStereotypeProperty.g:2316: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 {
+ // InternalAppliedStereotypeProperty.g:2319:28: ( ( ( (lv_body_0_0= ruleBlock ) ) | ( (lv_name_1_0= ruleName ) ) ) )
+ // InternalAppliedStereotypeProperty.g:2320:1: ( ( (lv_body_0_0= ruleBlock ) ) | ( (lv_name_1_0= ruleName ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:2320:1: ( ( (lv_body_0_0= ruleBlock ) ) | ( (lv_name_1_0= ruleName ) ) )
+ int alt44 = 2;
+ int LA44_0 = input.LA(1);
+
+ if ((LA44_0 == 32)) {
+ alt44 = 1;
+ } else if (((LA44_0 >= RULE_ID && LA44_0 <= RULE_UNRESTRICTED_NAME))) {
+ alt44 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 44, 0, input);
+
+ throw nvae;
+ }
+ switch (alt44) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2320:2: ( (lv_body_0_0= ruleBlock ) )
+ {
+ // InternalAppliedStereotypeProperty.g:2320:2: ( (lv_body_0_0= ruleBlock ) )
+ // InternalAppliedStereotypeProperty.g:2321:1: (lv_body_0_0= ruleBlock )
+ {
+ // InternalAppliedStereotypeProperty.g:2321:1: (lv_body_0_0= ruleBlock )
+ // InternalAppliedStereotypeProperty.g:2322: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:
+ // InternalAppliedStereotypeProperty.g:2339:6: ( (lv_name_1_0= ruleName ) )
+ {
+ // InternalAppliedStereotypeProperty.g:2339:6: ( (lv_name_1_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:2340:1: (lv_name_1_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:2340:1: (lv_name_1_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:2341: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"
+ // InternalAppliedStereotypeProperty.g:2365:1: entryRuleActiveClassMember returns [EObject current=null] : iv_ruleActiveClassMember= ruleActiveClassMember EOF ;
+ public final EObject entryRuleActiveClassMember() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleActiveClassMember = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:2366:2: (iv_ruleActiveClassMember= ruleActiveClassMember EOF )
+ // InternalAppliedStereotypeProperty.g:2367: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"
+ // InternalAppliedStereotypeProperty.g:2374: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 {
+ // InternalAppliedStereotypeProperty.g:2377:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0=
+ // ruleActiveClassMemberDefinition ) ) ) )
+ // InternalAppliedStereotypeProperty.g:2378:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0=
+ // ruleActiveClassMemberDefinition ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:2378:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0=
+ // ruleActiveClassMemberDefinition ) ) )
+ // InternalAppliedStereotypeProperty.g:2378:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0=
+ // ruleActiveClassMemberDefinition ) )
+ {
+ // InternalAppliedStereotypeProperty.g:2378:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
+ int alt45 = 2;
+ int LA45_0 = input.LA(1);
+
+ if ((LA45_0 == RULE_DOCUMENTATION_COMMENT)) {
+ alt45 = 1;
+ }
+ switch (alt45) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2379:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ {
+ // InternalAppliedStereotypeProperty.g:2379:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ // InternalAppliedStereotypeProperty.g:2380:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
+ {
+ lv_documentation_0_0 = (Token) match(input, RULE_DOCUMENTATION_COMMENT, FOLLOW_35);
+ 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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:2396:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
+ loop46: do {
+ int alt46 = 2;
+ int LA46_0 = input.LA(1);
+
+ if ((LA46_0 == 16)) {
+ alt46 = 1;
+ }
+
+
+ switch (alt46) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2397:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ {
+ // InternalAppliedStereotypeProperty.g:2397:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ // InternalAppliedStereotypeProperty.g:2398:3: lv_annotation_1_0= ruleStereotypeAnnotation
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getActiveClassMemberAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_35);
+ 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 loop46;
+ }
+ } while (true);
+
+ // InternalAppliedStereotypeProperty.g:2414:3: ( (lv_visibility_2_0= ruleVisibilityIndicator ) )?
+ int alt47 = 2;
+ int LA47_0 = input.LA(1);
+
+ if (((LA47_0 >= 28 && LA47_0 <= 30))) {
+ alt47 = 1;
+ }
+ switch (alt47) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2415:1: (lv_visibility_2_0= ruleVisibilityIndicator )
+ {
+ // InternalAppliedStereotypeProperty.g:2415:1: (lv_visibility_2_0= ruleVisibilityIndicator )
+ // InternalAppliedStereotypeProperty.g:2416:3: lv_visibility_2_0= ruleVisibilityIndicator
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getActiveClassMemberAccess().getVisibilityVisibilityIndicatorParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_35);
+ 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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:2432:3: ( (lv_definition_3_0= ruleActiveClassMemberDefinition ) )
+ // InternalAppliedStereotypeProperty.g:2433:1: (lv_definition_3_0= ruleActiveClassMemberDefinition )
+ {
+ // InternalAppliedStereotypeProperty.g:2433:1: (lv_definition_3_0= ruleActiveClassMemberDefinition )
+ // InternalAppliedStereotypeProperty.g:2434: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"
+ // InternalAppliedStereotypeProperty.g:2458:1: entryRuleActiveClassMemberDefinition returns [EObject current=null] : iv_ruleActiveClassMemberDefinition= ruleActiveClassMemberDefinition EOF ;
+ public final EObject entryRuleActiveClassMemberDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleActiveClassMemberDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:2459:2: (iv_ruleActiveClassMemberDefinition= ruleActiveClassMemberDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:2460: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"
+ // InternalAppliedStereotypeProperty.g:2467: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 {
+ // InternalAppliedStereotypeProperty.g:2470:28: ( (this_ClassMemberDefinition_0= ruleClassMemberDefinition | this_ActiveFeatureDefinitionOrStub_1= ruleActiveFeatureDefinitionOrStub ) )
+ // InternalAppliedStereotypeProperty.g:2471:1: (this_ClassMemberDefinition_0= ruleClassMemberDefinition | this_ActiveFeatureDefinitionOrStub_1= ruleActiveFeatureDefinitionOrStub )
+ {
+ // InternalAppliedStereotypeProperty.g:2471:1: (this_ClassMemberDefinition_0= ruleClassMemberDefinition | this_ActiveFeatureDefinitionOrStub_1= ruleActiveFeatureDefinitionOrStub )
+ int alt48 = 2;
+ int LA48_0 = input.LA(1);
+
+ if (((LA48_0 >= RULE_ID && LA48_0 <= RULE_UNRESTRICTED_NAME) || (LA48_0 >= 35 && LA48_0 <= 36) || LA48_0 == 39 || (LA48_0 >= 41 && LA48_0 <= 45))) {
+ alt48 = 1;
+ } else if ((LA48_0 == 59)) {
+ 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:
+ // InternalAppliedStereotypeProperty.g:2472: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:
+ // InternalAppliedStereotypeProperty.g:2485: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"
+ // InternalAppliedStereotypeProperty.g:2504:1: entryRuleDataTypeDeclaration returns [EObject current=null] : iv_ruleDataTypeDeclaration= ruleDataTypeDeclaration EOF ;
+ public final EObject entryRuleDataTypeDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleDataTypeDeclaration = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:2505:2: (iv_ruleDataTypeDeclaration= ruleDataTypeDeclaration EOF )
+ // InternalAppliedStereotypeProperty.g:2506: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"
+ // InternalAppliedStereotypeProperty.g:2513: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 {
+ // InternalAppliedStereotypeProperty.g:2516: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 ) )? ) )
+ // InternalAppliedStereotypeProperty.g:2517: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 ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:2517: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 ) )? )
+ // InternalAppliedStereotypeProperty.g:2517: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 ) )?
+ {
+ // InternalAppliedStereotypeProperty.g:2517:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
+ int alt49 = 2;
+ int LA49_0 = input.LA(1);
+
+ if ((LA49_0 == 35)) {
+ alt49 = 1;
+ }
+ switch (alt49) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2518:1: (lv_isAbstract_0_0= 'abstract' )
+ {
+ // InternalAppliedStereotypeProperty.g:2518:1: (lv_isAbstract_0_0= 'abstract' )
+ // InternalAppliedStereotypeProperty.g:2519:3: lv_isAbstract_0_0= 'abstract'
+ {
+ lv_isAbstract_0_0 = (Token) match(input, 35, FOLLOW_36);
+ 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, 41, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getDataTypeDeclarationAccess().getDatatypeKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:2536:1: ( (lv_name_2_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:2537:1: (lv_name_2_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:2537:1: (lv_name_2_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:2538:3: lv_name_2_0= ruleName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getNameNameParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_26);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:2554:2: (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )?
+ int alt51 = 2;
+ int LA51_0 = input.LA(1);
+
+ if ((LA51_0 == 37)) {
+ alt51 = 1;
+ }
+ switch (alt51) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2554:4: otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>'
+ {
+ otherlv_3 = (Token) match(input, 37, FOLLOW_27);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_3, grammarAccess.getDataTypeDeclarationAccess().getLessThanSignKeyword_3_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:2558:1: ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) )
+ // InternalAppliedStereotypeProperty.g:2559:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAppliedStereotypeProperty.g:2559:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
+ // InternalAppliedStereotypeProperty.g:2560:3: lv_ownedMember_4_0= ruleClassifierTemplateParameter
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
+
+ }
+ pushFollow(FOLLOW_28);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:2576:2: (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )*
+ loop50: do {
+ int alt50 = 2;
+ int LA50_0 = input.LA(1);
+
+ if ((LA50_0 == 19)) {
+ alt50 = 1;
+ }
+
+
+ switch (alt50) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2576:4: otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
+ {
+ otherlv_5 = (Token) match(input, 19, FOLLOW_27);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_5, grammarAccess.getDataTypeDeclarationAccess().getCommaKeyword_3_2_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:2580:1: ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
+ // InternalAppliedStereotypeProperty.g:2581:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAppliedStereotypeProperty.g:2581:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
+ // InternalAppliedStereotypeProperty.g:2582:3: lv_ownedMember_6_0= ruleClassifierTemplateParameter
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
+
+ }
+ pushFollow(FOLLOW_28);
+ 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 loop50;
+ }
+ } while (true);
+
+ otherlv_7 = (Token) match(input, 38, FOLLOW_24);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_7, grammarAccess.getDataTypeDeclarationAccess().getGreaterThanSignKeyword_3_3());
+
+ }
+
+ }
+ break;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:2602:3: ( (lv_specialization_8_0= ruleSpecializationClause ) )?
+ int alt52 = 2;
+ int LA52_0 = input.LA(1);
+
+ if ((LA52_0 == 34)) {
+ alt52 = 1;
+ }
+ switch (alt52) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2603:1: (lv_specialization_8_0= ruleSpecializationClause )
+ {
+ // InternalAppliedStereotypeProperty.g:2603:1: (lv_specialization_8_0= ruleSpecializationClause )
+ // InternalAppliedStereotypeProperty.g:2604: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"
+ // InternalAppliedStereotypeProperty.g:2628:1: entryRuleDataTypeDefinition returns [EObject current=null] : iv_ruleDataTypeDefinition= ruleDataTypeDefinition EOF ;
+ public final EObject entryRuleDataTypeDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleDataTypeDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:2629:2: (iv_ruleDataTypeDefinition= ruleDataTypeDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:2630: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"
+ // InternalAppliedStereotypeProperty.g:2637: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 {
+ // InternalAppliedStereotypeProperty.g:2640:28: ( (this_DataTypeDeclaration_0= ruleDataTypeDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' ) )
+ // InternalAppliedStereotypeProperty.g:2641:1: (this_DataTypeDeclaration_0= ruleDataTypeDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
+ {
+ // InternalAppliedStereotypeProperty.g:2641:1: (this_DataTypeDeclaration_0= ruleDataTypeDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
+ // InternalAppliedStereotypeProperty.g:2642: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_19);
+ 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, 32, FOLLOW_37);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getDataTypeDefinitionAccess().getLeftCurlyBracketKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:2657:1: ( (lv_ownedMember_2_0= ruleStructuredMember ) )*
+ loop53: do {
+ int alt53 = 2;
+ int LA53_0 = input.LA(1);
+
+ if (((LA53_0 >= RULE_DOCUMENTATION_COMMENT && LA53_0 <= RULE_UNRESTRICTED_NAME) || LA53_0 == 16 || LA53_0 == 28)) {
+ alt53 = 1;
+ }
+
+
+ switch (alt53) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2658:1: (lv_ownedMember_2_0= ruleStructuredMember )
+ {
+ // InternalAppliedStereotypeProperty.g:2658:1: (lv_ownedMember_2_0= ruleStructuredMember )
+ // InternalAppliedStereotypeProperty.g:2659:3: lv_ownedMember_2_0= ruleStructuredMember
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getDataTypeDefinitionAccess().getOwnedMemberStructuredMemberParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_37);
+ 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 loop53;
+ }
+ } while (true);
+
+ otherlv_3 = (Token) match(input, 33, 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"
+ // InternalAppliedStereotypeProperty.g:2687:1: entryRuleDataTypeDefinitionOrStub returns [EObject current=null] : iv_ruleDataTypeDefinitionOrStub= ruleDataTypeDefinitionOrStub EOF ;
+ public final EObject entryRuleDataTypeDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleDataTypeDefinitionOrStub = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:2688:2: (iv_ruleDataTypeDefinitionOrStub= ruleDataTypeDefinitionOrStub EOF )
+ // InternalAppliedStereotypeProperty.g:2689: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"
+ // InternalAppliedStereotypeProperty.g:2696: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 {
+ // InternalAppliedStereotypeProperty.g:2699:28: ( (this_DataTypeDeclaration_0= ruleDataTypeDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) )
+ // InternalAppliedStereotypeProperty.g:2700:1: (this_DataTypeDeclaration_0= ruleDataTypeDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:2700:1: (this_DataTypeDeclaration_0= ruleDataTypeDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
+ // InternalAppliedStereotypeProperty.g:2701: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_21);
+ this_DataTypeDeclaration_0 = ruleDataTypeDeclaration();
+
+ state._fsp--;
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ current = this_DataTypeDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAppliedStereotypeProperty.g:2712:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
+ int alt55 = 2;
+ int LA55_0 = input.LA(1);
+
+ if ((LA55_0 == 23)) {
+ alt55 = 1;
+ } else if ((LA55_0 == 32)) {
+ alt55 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 55, 0, input);
+
+ throw nvae;
+ }
+ switch (alt55) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2712:2: ( (lv_isStub_1_0= ';' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:2712:2: ( (lv_isStub_1_0= ';' ) )
+ // InternalAppliedStereotypeProperty.g:2713:1: (lv_isStub_1_0= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:2713:1: (lv_isStub_1_0= ';' )
+ // InternalAppliedStereotypeProperty.g:2714:3: lv_isStub_1_0= ';'
+ {
+ lv_isStub_1_0 = (Token) match(input, 23, 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:
+ // InternalAppliedStereotypeProperty.g:2728:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
+ {
+ // InternalAppliedStereotypeProperty.g:2728:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
+ // InternalAppliedStereotypeProperty.g:2728:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}'
+ {
+ otherlv_2 = (Token) match(input, 32, FOLLOW_37);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getDataTypeDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:2732:1: ( (lv_ownedMember_3_0= ruleStructuredMember ) )*
+ loop54: do {
+ int alt54 = 2;
+ int LA54_0 = input.LA(1);
+
+ if (((LA54_0 >= RULE_DOCUMENTATION_COMMENT && LA54_0 <= RULE_UNRESTRICTED_NAME) || LA54_0 == 16 || LA54_0 == 28)) {
+ alt54 = 1;
+ }
+
+
+ switch (alt54) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2733:1: (lv_ownedMember_3_0= ruleStructuredMember )
+ {
+ // InternalAppliedStereotypeProperty.g:2733:1: (lv_ownedMember_3_0= ruleStructuredMember )
+ // InternalAppliedStereotypeProperty.g:2734:3: lv_ownedMember_3_0= ruleStructuredMember
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getDataTypeDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_37);
+ 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 loop54;
+ }
+ } while (true);
+
+ otherlv_4 = (Token) match(input, 33, 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"
+ // InternalAppliedStereotypeProperty.g:2762:1: entryRuleStructuredMember returns [EObject current=null] : iv_ruleStructuredMember= ruleStructuredMember EOF ;
+ public final EObject entryRuleStructuredMember() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleStructuredMember = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:2763:2: (iv_ruleStructuredMember= ruleStructuredMember EOF )
+ // InternalAppliedStereotypeProperty.g:2764: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"
+ // InternalAppliedStereotypeProperty.g:2771: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 {
+ // InternalAppliedStereotypeProperty.g:2774:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= 'public' ) )? ( (lv_definition_3_0= rulePropertyDefinition ) ) )
+ // )
+ // InternalAppliedStereotypeProperty.g:2775:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= 'public' ) )? ( (lv_definition_3_0= rulePropertyDefinition ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:2775:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= 'public' ) )? ( (lv_definition_3_0= rulePropertyDefinition ) ) )
+ // InternalAppliedStereotypeProperty.g:2775:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= 'public' ) )? ( (lv_definition_3_0= rulePropertyDefinition ) )
+ {
+ // InternalAppliedStereotypeProperty.g:2775:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
+ int alt56 = 2;
+ int LA56_0 = input.LA(1);
+
+ if ((LA56_0 == RULE_DOCUMENTATION_COMMENT)) {
+ alt56 = 1;
+ }
+ switch (alt56) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2776:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ {
+ // InternalAppliedStereotypeProperty.g:2776:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ // InternalAppliedStereotypeProperty.g:2777:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
+ {
+ lv_documentation_0_0 = (Token) match(input, RULE_DOCUMENTATION_COMMENT, FOLLOW_38);
+ 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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:2793:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
+ loop57: do {
+ int alt57 = 2;
+ int LA57_0 = input.LA(1);
+
+ if ((LA57_0 == 16)) {
+ alt57 = 1;
+ }
+
+
+ switch (alt57) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2794:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ {
+ // InternalAppliedStereotypeProperty.g:2794:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ // InternalAppliedStereotypeProperty.g:2795:3: lv_annotation_1_0= ruleStereotypeAnnotation
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getStructuredMemberAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_38);
+ 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 loop57;
+ }
+ } while (true);
+
+ // InternalAppliedStereotypeProperty.g:2811:3: ( (lv_visibility_2_0= 'public' ) )?
+ int alt58 = 2;
+ int LA58_0 = input.LA(1);
+
+ if ((LA58_0 == 28)) {
+ alt58 = 1;
+ }
+ switch (alt58) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2812:1: (lv_visibility_2_0= 'public' )
+ {
+ // InternalAppliedStereotypeProperty.g:2812:1: (lv_visibility_2_0= 'public' )
+ // InternalAppliedStereotypeProperty.g:2813:3: lv_visibility_2_0= 'public'
+ {
+ lv_visibility_2_0 = (Token) match(input, 28, FOLLOW_38);
+ 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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:2826:3: ( (lv_definition_3_0= rulePropertyDefinition ) )
+ // InternalAppliedStereotypeProperty.g:2827:1: (lv_definition_3_0= rulePropertyDefinition )
+ {
+ // InternalAppliedStereotypeProperty.g:2827:1: (lv_definition_3_0= rulePropertyDefinition )
+ // InternalAppliedStereotypeProperty.g:2828: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"
+ // InternalAppliedStereotypeProperty.g:2852:1: entryRuleAssociationDeclaration returns [EObject current=null] : iv_ruleAssociationDeclaration= ruleAssociationDeclaration EOF ;
+ public final EObject entryRuleAssociationDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAssociationDeclaration = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:2853:2: (iv_ruleAssociationDeclaration= ruleAssociationDeclaration EOF )
+ // InternalAppliedStereotypeProperty.g:2854: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"
+ // InternalAppliedStereotypeProperty.g:2861: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 {
+ // InternalAppliedStereotypeProperty.g:2864: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 ) )? ) )
+ // InternalAppliedStereotypeProperty.g:2865: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 ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:2865: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 ) )? )
+ // InternalAppliedStereotypeProperty.g:2865: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 ) )?
+ {
+ // InternalAppliedStereotypeProperty.g:2865:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
+ int alt59 = 2;
+ int LA59_0 = input.LA(1);
+
+ if ((LA59_0 == 35)) {
+ alt59 = 1;
+ }
+ switch (alt59) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2866:1: (lv_isAbstract_0_0= 'abstract' )
+ {
+ // InternalAppliedStereotypeProperty.g:2866:1: (lv_isAbstract_0_0= 'abstract' )
+ // InternalAppliedStereotypeProperty.g:2867:3: lv_isAbstract_0_0= 'abstract'
+ {
+ lv_isAbstract_0_0 = (Token) match(input, 35, FOLLOW_39);
+ 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, 42, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getAssociationDeclarationAccess().getAssocKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:2884:1: ( (lv_name_2_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:2885:1: (lv_name_2_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:2885:1: (lv_name_2_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:2886:3: lv_name_2_0= ruleName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getNameNameParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_26);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:2902:2: (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )?
+ int alt61 = 2;
+ int LA61_0 = input.LA(1);
+
+ if ((LA61_0 == 37)) {
+ alt61 = 1;
+ }
+ switch (alt61) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2902:4: otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>'
+ {
+ otherlv_3 = (Token) match(input, 37, FOLLOW_27);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_3, grammarAccess.getAssociationDeclarationAccess().getLessThanSignKeyword_3_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:2906:1: ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) )
+ // InternalAppliedStereotypeProperty.g:2907:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAppliedStereotypeProperty.g:2907:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
+ // InternalAppliedStereotypeProperty.g:2908:3: lv_ownedMember_4_0= ruleClassifierTemplateParameter
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
+
+ }
+ pushFollow(FOLLOW_28);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:2924:2: (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )*
+ loop60: do {
+ int alt60 = 2;
+ int LA60_0 = input.LA(1);
+
+ if ((LA60_0 == 19)) {
+ alt60 = 1;
+ }
+
+
+ switch (alt60) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2924:4: otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
+ {
+ otherlv_5 = (Token) match(input, 19, FOLLOW_27);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_5, grammarAccess.getAssociationDeclarationAccess().getCommaKeyword_3_2_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:2928:1: ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
+ // InternalAppliedStereotypeProperty.g:2929:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAppliedStereotypeProperty.g:2929:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
+ // InternalAppliedStereotypeProperty.g:2930:3: lv_ownedMember_6_0= ruleClassifierTemplateParameter
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
+
+ }
+ pushFollow(FOLLOW_28);
+ 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 loop60;
+ }
+ } while (true);
+
+ otherlv_7 = (Token) match(input, 38, FOLLOW_24);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_7, grammarAccess.getAssociationDeclarationAccess().getGreaterThanSignKeyword_3_3());
+
+ }
+
+ }
+ break;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:2950:3: ( (lv_specialization_8_0= ruleSpecializationClause ) )?
+ int alt62 = 2;
+ int LA62_0 = input.LA(1);
+
+ if ((LA62_0 == 34)) {
+ alt62 = 1;
+ }
+ switch (alt62) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:2951:1: (lv_specialization_8_0= ruleSpecializationClause )
+ {
+ // InternalAppliedStereotypeProperty.g:2951:1: (lv_specialization_8_0= ruleSpecializationClause )
+ // InternalAppliedStereotypeProperty.g:2952: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"
+ // InternalAppliedStereotypeProperty.g:2976:1: entryRuleAssociationDefinition returns [EObject current=null] : iv_ruleAssociationDefinition= ruleAssociationDefinition EOF ;
+ public final EObject entryRuleAssociationDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAssociationDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:2977:2: (iv_ruleAssociationDefinition= ruleAssociationDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:2978: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"
+ // InternalAppliedStereotypeProperty.g:2985: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 {
+ // InternalAppliedStereotypeProperty.g:2988:28: ( (this_AssociationDeclaration_0= ruleAssociationDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' ) )
+ // InternalAppliedStereotypeProperty.g:2989:1: (this_AssociationDeclaration_0= ruleAssociationDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
+ {
+ // InternalAppliedStereotypeProperty.g:2989:1: (this_AssociationDeclaration_0= ruleAssociationDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
+ // InternalAppliedStereotypeProperty.g:2990: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_19);
+ 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, 32, FOLLOW_37);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getAssociationDefinitionAccess().getLeftCurlyBracketKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:3005:1: ( (lv_ownedMember_2_0= ruleStructuredMember ) )*
+ loop63: do {
+ int alt63 = 2;
+ int LA63_0 = input.LA(1);
+
+ if (((LA63_0 >= RULE_DOCUMENTATION_COMMENT && LA63_0 <= RULE_UNRESTRICTED_NAME) || LA63_0 == 16 || LA63_0 == 28)) {
+ alt63 = 1;
+ }
+
+
+ switch (alt63) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3006:1: (lv_ownedMember_2_0= ruleStructuredMember )
+ {
+ // InternalAppliedStereotypeProperty.g:3006:1: (lv_ownedMember_2_0= ruleStructuredMember )
+ // InternalAppliedStereotypeProperty.g:3007:3: lv_ownedMember_2_0= ruleStructuredMember
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getAssociationDefinitionAccess().getOwnedMemberStructuredMemberParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_37);
+ 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 loop63;
+ }
+ } while (true);
+
+ otherlv_3 = (Token) match(input, 33, 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"
+ // InternalAppliedStereotypeProperty.g:3035:1: entryRuleAssociationDefinitionOrStub returns [EObject current=null] : iv_ruleAssociationDefinitionOrStub= ruleAssociationDefinitionOrStub EOF ;
+ public final EObject entryRuleAssociationDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAssociationDefinitionOrStub = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:3036:2: (iv_ruleAssociationDefinitionOrStub= ruleAssociationDefinitionOrStub EOF )
+ // InternalAppliedStereotypeProperty.g:3037: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"
+ // InternalAppliedStereotypeProperty.g:3044: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 {
+ // InternalAppliedStereotypeProperty.g:3047:28: ( (this_AssociationDeclaration_0= ruleAssociationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) )
+ // InternalAppliedStereotypeProperty.g:3048:1: (this_AssociationDeclaration_0= ruleAssociationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:3048:1: (this_AssociationDeclaration_0= ruleAssociationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
+ // InternalAppliedStereotypeProperty.g:3049: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_21);
+ this_AssociationDeclaration_0 = ruleAssociationDeclaration();
+
+ state._fsp--;
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ current = this_AssociationDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAppliedStereotypeProperty.g:3060:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
+ int alt65 = 2;
+ int LA65_0 = input.LA(1);
+
+ if ((LA65_0 == 23)) {
+ alt65 = 1;
+ } else if ((LA65_0 == 32)) {
+ alt65 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 65, 0, input);
+
+ throw nvae;
+ }
+ switch (alt65) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3060:2: ( (lv_isStub_1_0= ';' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:3060:2: ( (lv_isStub_1_0= ';' ) )
+ // InternalAppliedStereotypeProperty.g:3061:1: (lv_isStub_1_0= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:3061:1: (lv_isStub_1_0= ';' )
+ // InternalAppliedStereotypeProperty.g:3062:3: lv_isStub_1_0= ';'
+ {
+ lv_isStub_1_0 = (Token) match(input, 23, 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:
+ // InternalAppliedStereotypeProperty.g:3076:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
+ {
+ // InternalAppliedStereotypeProperty.g:3076:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
+ // InternalAppliedStereotypeProperty.g:3076:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}'
+ {
+ otherlv_2 = (Token) match(input, 32, FOLLOW_37);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getAssociationDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:3080:1: ( (lv_ownedMember_3_0= ruleStructuredMember ) )*
+ loop64: do {
+ int alt64 = 2;
+ int LA64_0 = input.LA(1);
+
+ if (((LA64_0 >= RULE_DOCUMENTATION_COMMENT && LA64_0 <= RULE_UNRESTRICTED_NAME) || LA64_0 == 16 || LA64_0 == 28)) {
+ alt64 = 1;
+ }
+
+
+ switch (alt64) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3081:1: (lv_ownedMember_3_0= ruleStructuredMember )
+ {
+ // InternalAppliedStereotypeProperty.g:3081:1: (lv_ownedMember_3_0= ruleStructuredMember )
+ // InternalAppliedStereotypeProperty.g:3082:3: lv_ownedMember_3_0= ruleStructuredMember
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getAssociationDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_37);
+ 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 loop64;
+ }
+ } while (true);
+
+ otherlv_4 = (Token) match(input, 33, 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"
+ // InternalAppliedStereotypeProperty.g:3110:1: entryRuleEnumerationDeclaration returns [EObject current=null] : iv_ruleEnumerationDeclaration= ruleEnumerationDeclaration EOF ;
+ public final EObject entryRuleEnumerationDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleEnumerationDeclaration = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:3111:2: (iv_ruleEnumerationDeclaration= ruleEnumerationDeclaration EOF )
+ // InternalAppliedStereotypeProperty.g:3112: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"
+ // InternalAppliedStereotypeProperty.g:3119: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 {
+ // InternalAppliedStereotypeProperty.g:3122:28: ( (otherlv_0= 'enum' ( (lv_name_1_0= ruleName ) ) ( (lv_specialization_2_0= ruleSpecializationClause ) )? ) )
+ // InternalAppliedStereotypeProperty.g:3123:1: (otherlv_0= 'enum' ( (lv_name_1_0= ruleName ) ) ( (lv_specialization_2_0= ruleSpecializationClause ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:3123:1: (otherlv_0= 'enum' ( (lv_name_1_0= ruleName ) ) ( (lv_specialization_2_0= ruleSpecializationClause ) )? )
+ // InternalAppliedStereotypeProperty.g:3123:3: otherlv_0= 'enum' ( (lv_name_1_0= ruleName ) ) ( (lv_specialization_2_0= ruleSpecializationClause ) )?
+ {
+ otherlv_0 = (Token) match(input, 43, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getEnumerationDeclarationAccess().getEnumKeyword_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:3127:1: ( (lv_name_1_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:3128:1: (lv_name_1_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:3128:1: (lv_name_1_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:3129:3: lv_name_1_0= ruleName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getEnumerationDeclarationAccess().getNameNameParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_24);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:3145:2: ( (lv_specialization_2_0= ruleSpecializationClause ) )?
+ int alt66 = 2;
+ int LA66_0 = input.LA(1);
+
+ if ((LA66_0 == 34)) {
+ alt66 = 1;
+ }
+ switch (alt66) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3146:1: (lv_specialization_2_0= ruleSpecializationClause )
+ {
+ // InternalAppliedStereotypeProperty.g:3146:1: (lv_specialization_2_0= ruleSpecializationClause )
+ // InternalAppliedStereotypeProperty.g:3147: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"
+ // InternalAppliedStereotypeProperty.g:3171:1: entryRuleEnumerationDefinition returns [EObject current=null] : iv_ruleEnumerationDefinition= ruleEnumerationDefinition EOF ;
+ public final EObject entryRuleEnumerationDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleEnumerationDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:3172:2: (iv_ruleEnumerationDefinition= ruleEnumerationDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:3173: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"
+ // InternalAppliedStereotypeProperty.g:3180: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 {
+ // InternalAppliedStereotypeProperty.g:3183:28: ( (this_EnumerationDeclaration_0= ruleEnumerationDeclaration otherlv_1= '{' ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName )
+ // ) )* )? otherlv_5= '}' ) )
+ // InternalAppliedStereotypeProperty.g:3184:1: (this_EnumerationDeclaration_0= ruleEnumerationDeclaration otherlv_1= '{' ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) )
+ // )* )? otherlv_5= '}' )
+ {
+ // InternalAppliedStereotypeProperty.g:3184:1: (this_EnumerationDeclaration_0= ruleEnumerationDeclaration otherlv_1= '{' ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName )
+ // ) )* )? otherlv_5= '}' )
+ // InternalAppliedStereotypeProperty.g:3185: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_19);
+ 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, 32, FOLLOW_40);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getEnumerationDefinitionAccess().getLeftCurlyBracketKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:3200:1: ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )* )?
+ int alt68 = 2;
+ int LA68_0 = input.LA(1);
+
+ if (((LA68_0 >= RULE_DOCUMENTATION_COMMENT && LA68_0 <= RULE_UNRESTRICTED_NAME))) {
+ alt68 = 1;
+ }
+ switch (alt68) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3200:2: ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )*
+ {
+ // InternalAppliedStereotypeProperty.g:3200:2: ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) )
+ // InternalAppliedStereotypeProperty.g:3201:1: (lv_ownedMember_2_0= ruleEnumerationLiteralName )
+ {
+ // InternalAppliedStereotypeProperty.g:3201:1: (lv_ownedMember_2_0= ruleEnumerationLiteralName )
+ // InternalAppliedStereotypeProperty.g:3202:3: lv_ownedMember_2_0= ruleEnumerationLiteralName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getEnumerationDefinitionAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_2_0_0());
+
+ }
+ pushFollow(FOLLOW_41);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:3218:2: (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )*
+ loop67: do {
+ int alt67 = 2;
+ int LA67_0 = input.LA(1);
+
+ if ((LA67_0 == 19)) {
+ alt67 = 1;
+ }
+
+
+ switch (alt67) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3218:4: otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) )
+ {
+ otherlv_3 = (Token) match(input, 19, FOLLOW_27);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_3, grammarAccess.getEnumerationDefinitionAccess().getCommaKeyword_2_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:3222:1: ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) )
+ // InternalAppliedStereotypeProperty.g:3223:1: (lv_ownedMember_4_0= ruleEnumerationLiteralName )
+ {
+ // InternalAppliedStereotypeProperty.g:3223:1: (lv_ownedMember_4_0= ruleEnumerationLiteralName )
+ // InternalAppliedStereotypeProperty.g:3224:3: lv_ownedMember_4_0= ruleEnumerationLiteralName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getEnumerationDefinitionAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_2_1_1_0());
+
+ }
+ pushFollow(FOLLOW_41);
+ 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 loop67;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+ otherlv_5 = (Token) match(input, 33, 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"
+ // InternalAppliedStereotypeProperty.g:3252:1: entryRuleEnumerationDefinitionOrStub returns [EObject current=null] : iv_ruleEnumerationDefinitionOrStub= ruleEnumerationDefinitionOrStub EOF ;
+ public final EObject entryRuleEnumerationDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleEnumerationDefinitionOrStub = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:3253:2: (iv_ruleEnumerationDefinitionOrStub= ruleEnumerationDefinitionOrStub EOF )
+ // InternalAppliedStereotypeProperty.g:3254: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"
+ // InternalAppliedStereotypeProperty.g:3261: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 {
+ // InternalAppliedStereotypeProperty.g:3264: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= '}' ) ) ) )
+ // InternalAppliedStereotypeProperty.g:3265: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= '}' ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:3265: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= '}' ) ) )
+ // InternalAppliedStereotypeProperty.g:3266: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_21);
+ this_EnumerationDeclaration_0 = ruleEnumerationDeclaration();
+
+ state._fsp--;
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ current = this_EnumerationDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAppliedStereotypeProperty.g:3277:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}'
+ // ) )
+ int alt71 = 2;
+ int LA71_0 = input.LA(1);
+
+ if ((LA71_0 == 23)) {
+ alt71 = 1;
+ } else if ((LA71_0 == 32)) {
+ alt71 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 71, 0, input);
+
+ throw nvae;
+ }
+ switch (alt71) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3277:2: ( (lv_isStub_1_0= ';' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:3277:2: ( (lv_isStub_1_0= ';' ) )
+ // InternalAppliedStereotypeProperty.g:3278:1: (lv_isStub_1_0= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:3278:1: (lv_isStub_1_0= ';' )
+ // InternalAppliedStereotypeProperty.g:3279:3: lv_isStub_1_0= ';'
+ {
+ lv_isStub_1_0 = (Token) match(input, 23, 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:
+ // InternalAppliedStereotypeProperty.g:3293:6: (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' )
+ {
+ // InternalAppliedStereotypeProperty.g:3293:6: (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' )
+ // InternalAppliedStereotypeProperty.g:3293:8: otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}'
+ {
+ otherlv_2 = (Token) match(input, 32, FOLLOW_40);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getEnumerationDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:3297:1: ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )?
+ int alt70 = 2;
+ int LA70_0 = input.LA(1);
+
+ if (((LA70_0 >= RULE_DOCUMENTATION_COMMENT && LA70_0 <= RULE_UNRESTRICTED_NAME))) {
+ alt70 = 1;
+ }
+ switch (alt70) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3297:2: ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )*
+ {
+ // InternalAppliedStereotypeProperty.g:3297:2: ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) )
+ // InternalAppliedStereotypeProperty.g:3298:1: (lv_ownedMember_3_0= ruleEnumerationLiteralName )
+ {
+ // InternalAppliedStereotypeProperty.g:3298:1: (lv_ownedMember_3_0= ruleEnumerationLiteralName )
+ // InternalAppliedStereotypeProperty.g:3299:3: lv_ownedMember_3_0= ruleEnumerationLiteralName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_0_0());
+
+ }
+ pushFollow(FOLLOW_41);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:3315:2: (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )*
+ loop69: do {
+ int alt69 = 2;
+ int LA69_0 = input.LA(1);
+
+ if ((LA69_0 == 19)) {
+ alt69 = 1;
+ }
+
+
+ switch (alt69) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3315:4: otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) )
+ {
+ otherlv_4 = (Token) match(input, 19, FOLLOW_27);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_4, grammarAccess.getEnumerationDefinitionOrStubAccess().getCommaKeyword_1_1_1_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:3319:1: ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) )
+ // InternalAppliedStereotypeProperty.g:3320:1: (lv_ownedMember_5_0= ruleEnumerationLiteralName )
+ {
+ // InternalAppliedStereotypeProperty.g:3320:1: (lv_ownedMember_5_0= ruleEnumerationLiteralName )
+ // InternalAppliedStereotypeProperty.g:3321:3: lv_ownedMember_5_0= ruleEnumerationLiteralName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_41);
+ 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 loop69;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+ otherlv_6 = (Token) match(input, 33, 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"
+ // InternalAppliedStereotypeProperty.g:3349:1: entryRuleEnumerationLiteralName returns [EObject current=null] : iv_ruleEnumerationLiteralName= ruleEnumerationLiteralName EOF ;
+ public final EObject entryRuleEnumerationLiteralName() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleEnumerationLiteralName = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:3350:2: (iv_ruleEnumerationLiteralName= ruleEnumerationLiteralName EOF )
+ // InternalAppliedStereotypeProperty.g:3351: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"
+ // InternalAppliedStereotypeProperty.g:3358: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 {
+ // InternalAppliedStereotypeProperty.g:3361:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) ) ) )
+ // InternalAppliedStereotypeProperty.g:3362:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:3362:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) ) )
+ // InternalAppliedStereotypeProperty.g:3362:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) )
+ {
+ // InternalAppliedStereotypeProperty.g:3362:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
+ int alt72 = 2;
+ int LA72_0 = input.LA(1);
+
+ if ((LA72_0 == RULE_DOCUMENTATION_COMMENT)) {
+ alt72 = 1;
+ }
+ switch (alt72) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3363:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ {
+ // InternalAppliedStereotypeProperty.g:3363:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ // InternalAppliedStereotypeProperty.g:3364:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
+ {
+ lv_documentation_0_0 = (Token) match(input, RULE_DOCUMENTATION_COMMENT, FOLLOW_27);
+ 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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:3380:3: ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) )
+ // InternalAppliedStereotypeProperty.g:3381:1: (lv_definition_1_0= ruleEnumerationLiteralNameDefinition )
+ {
+ // InternalAppliedStereotypeProperty.g:3381:1: (lv_definition_1_0= ruleEnumerationLiteralNameDefinition )
+ // InternalAppliedStereotypeProperty.g:3382: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"
+ // InternalAppliedStereotypeProperty.g:3406:1: entryRuleEnumerationLiteralNameDefinition returns [EObject current=null] : iv_ruleEnumerationLiteralNameDefinition= ruleEnumerationLiteralNameDefinition EOF ;
+ public final EObject entryRuleEnumerationLiteralNameDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleEnumerationLiteralNameDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:3407:2: (iv_ruleEnumerationLiteralNameDefinition= ruleEnumerationLiteralNameDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:3408: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"
+ // InternalAppliedStereotypeProperty.g:3415: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 {
+ // InternalAppliedStereotypeProperty.g:3418:28: ( ( (lv_name_0_0= ruleName ) ) )
+ // InternalAppliedStereotypeProperty.g:3419:1: ( (lv_name_0_0= ruleName ) )
+ {
+ // InternalAppliedStereotypeProperty.g:3419:1: ( (lv_name_0_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:3420:1: (lv_name_0_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:3420:1: (lv_name_0_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:3421: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"
+ // InternalAppliedStereotypeProperty.g:3445:1: entryRuleSignalDeclaration returns [EObject current=null] : iv_ruleSignalDeclaration= ruleSignalDeclaration EOF ;
+ public final EObject entryRuleSignalDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSignalDeclaration = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:3446:2: (iv_ruleSignalDeclaration= ruleSignalDeclaration EOF )
+ // InternalAppliedStereotypeProperty.g:3447: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"
+ // InternalAppliedStereotypeProperty.g:3454: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 {
+ // InternalAppliedStereotypeProperty.g:3457: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 ) )? ) )
+ // InternalAppliedStereotypeProperty.g:3458: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 ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:3458: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 ) )? )
+ // InternalAppliedStereotypeProperty.g:3458: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 ) )?
+ {
+ // InternalAppliedStereotypeProperty.g:3458:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
+ int alt73 = 2;
+ int LA73_0 = input.LA(1);
+
+ if ((LA73_0 == 35)) {
+ alt73 = 1;
+ }
+ switch (alt73) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3459:1: (lv_isAbstract_0_0= 'abstract' )
+ {
+ // InternalAppliedStereotypeProperty.g:3459:1: (lv_isAbstract_0_0= 'abstract' )
+ // InternalAppliedStereotypeProperty.g:3460:3: lv_isAbstract_0_0= 'abstract'
+ {
+ lv_isAbstract_0_0 = (Token) match(input, 35, FOLLOW_42);
+ 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, 44, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getSignalDeclarationAccess().getSignalKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:3477:1: ( (lv_name_2_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:3478:1: (lv_name_2_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:3478:1: (lv_name_2_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:3479:3: lv_name_2_0= ruleName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getSignalDeclarationAccess().getNameNameParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_26);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:3495:2: (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )?
+ int alt75 = 2;
+ int LA75_0 = input.LA(1);
+
+ if ((LA75_0 == 37)) {
+ alt75 = 1;
+ }
+ switch (alt75) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3495:4: otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>'
+ {
+ otherlv_3 = (Token) match(input, 37, FOLLOW_27);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_3, grammarAccess.getSignalDeclarationAccess().getLessThanSignKeyword_3_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:3499:1: ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) )
+ // InternalAppliedStereotypeProperty.g:3500:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAppliedStereotypeProperty.g:3500:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
+ // InternalAppliedStereotypeProperty.g:3501:3: lv_ownedMember_4_0= ruleClassifierTemplateParameter
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getSignalDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
+
+ }
+ pushFollow(FOLLOW_28);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:3517:2: (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )*
+ loop74: do {
+ int alt74 = 2;
+ int LA74_0 = input.LA(1);
+
+ if ((LA74_0 == 19)) {
+ alt74 = 1;
+ }
+
+
+ switch (alt74) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3517:4: otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
+ {
+ otherlv_5 = (Token) match(input, 19, FOLLOW_27);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_5, grammarAccess.getSignalDeclarationAccess().getCommaKeyword_3_2_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:3521:1: ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
+ // InternalAppliedStereotypeProperty.g:3522:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAppliedStereotypeProperty.g:3522:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
+ // InternalAppliedStereotypeProperty.g:3523:3: lv_ownedMember_6_0= ruleClassifierTemplateParameter
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getSignalDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
+
+ }
+ pushFollow(FOLLOW_28);
+ 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 loop74;
+ }
+ } while (true);
+
+ otherlv_7 = (Token) match(input, 38, FOLLOW_24);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_7, grammarAccess.getSignalDeclarationAccess().getGreaterThanSignKeyword_3_3());
+
+ }
+
+ }
+ break;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:3543:3: ( (lv_specialization_8_0= ruleSpecializationClause ) )?
+ int alt76 = 2;
+ int LA76_0 = input.LA(1);
+
+ if ((LA76_0 == 34)) {
+ alt76 = 1;
+ }
+ switch (alt76) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3544:1: (lv_specialization_8_0= ruleSpecializationClause )
+ {
+ // InternalAppliedStereotypeProperty.g:3544:1: (lv_specialization_8_0= ruleSpecializationClause )
+ // InternalAppliedStereotypeProperty.g:3545: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"
+ // InternalAppliedStereotypeProperty.g:3569:1: entryRuleSignalDefinition returns [EObject current=null] : iv_ruleSignalDefinition= ruleSignalDefinition EOF ;
+ public final EObject entryRuleSignalDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSignalDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:3570:2: (iv_ruleSignalDefinition= ruleSignalDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:3571: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"
+ // InternalAppliedStereotypeProperty.g:3578: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 {
+ // InternalAppliedStereotypeProperty.g:3581:28: ( (this_SignalDeclaration_0= ruleSignalDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' ) )
+ // InternalAppliedStereotypeProperty.g:3582:1: (this_SignalDeclaration_0= ruleSignalDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
+ {
+ // InternalAppliedStereotypeProperty.g:3582:1: (this_SignalDeclaration_0= ruleSignalDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
+ // InternalAppliedStereotypeProperty.g:3583: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_19);
+ 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, 32, FOLLOW_37);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getSignalDefinitionAccess().getLeftCurlyBracketKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:3598:1: ( (lv_ownedMember_2_0= ruleStructuredMember ) )*
+ loop77: do {
+ int alt77 = 2;
+ int LA77_0 = input.LA(1);
+
+ if (((LA77_0 >= RULE_DOCUMENTATION_COMMENT && LA77_0 <= RULE_UNRESTRICTED_NAME) || LA77_0 == 16 || LA77_0 == 28)) {
+ alt77 = 1;
+ }
+
+
+ switch (alt77) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3599:1: (lv_ownedMember_2_0= ruleStructuredMember )
+ {
+ // InternalAppliedStereotypeProperty.g:3599:1: (lv_ownedMember_2_0= ruleStructuredMember )
+ // InternalAppliedStereotypeProperty.g:3600:3: lv_ownedMember_2_0= ruleStructuredMember
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getSignalDefinitionAccess().getOwnedMemberStructuredMemberParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_37);
+ 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 loop77;
+ }
+ } while (true);
+
+ otherlv_3 = (Token) match(input, 33, 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"
+ // InternalAppliedStereotypeProperty.g:3628:1: entryRuleSignalDefinitionOrStub returns [EObject current=null] : iv_ruleSignalDefinitionOrStub= ruleSignalDefinitionOrStub EOF ;
+ public final EObject entryRuleSignalDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSignalDefinitionOrStub = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:3629:2: (iv_ruleSignalDefinitionOrStub= ruleSignalDefinitionOrStub EOF )
+ // InternalAppliedStereotypeProperty.g:3630: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"
+ // InternalAppliedStereotypeProperty.g:3637: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 {
+ // InternalAppliedStereotypeProperty.g:3640:28: ( (this_SignalDeclaration_0= ruleSignalDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) )
+ // InternalAppliedStereotypeProperty.g:3641:1: (this_SignalDeclaration_0= ruleSignalDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:3641:1: (this_SignalDeclaration_0= ruleSignalDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
+ // InternalAppliedStereotypeProperty.g:3642: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_21);
+ this_SignalDeclaration_0 = ruleSignalDeclaration();
+
+ state._fsp--;
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ current = this_SignalDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAppliedStereotypeProperty.g:3653:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
+ int alt79 = 2;
+ int LA79_0 = input.LA(1);
+
+ if ((LA79_0 == 23)) {
+ alt79 = 1;
+ } else if ((LA79_0 == 32)) {
+ alt79 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 79, 0, input);
+
+ throw nvae;
+ }
+ switch (alt79) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3653:2: ( (lv_isStub_1_0= ';' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:3653:2: ( (lv_isStub_1_0= ';' ) )
+ // InternalAppliedStereotypeProperty.g:3654:1: (lv_isStub_1_0= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:3654:1: (lv_isStub_1_0= ';' )
+ // InternalAppliedStereotypeProperty.g:3655:3: lv_isStub_1_0= ';'
+ {
+ lv_isStub_1_0 = (Token) match(input, 23, 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:
+ // InternalAppliedStereotypeProperty.g:3669:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
+ {
+ // InternalAppliedStereotypeProperty.g:3669:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
+ // InternalAppliedStereotypeProperty.g:3669:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}'
+ {
+ otherlv_2 = (Token) match(input, 32, FOLLOW_37);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getSignalDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:3673:1: ( (lv_ownedMember_3_0= ruleStructuredMember ) )*
+ loop78: do {
+ int alt78 = 2;
+ int LA78_0 = input.LA(1);
+
+ if (((LA78_0 >= RULE_DOCUMENTATION_COMMENT && LA78_0 <= RULE_UNRESTRICTED_NAME) || LA78_0 == 16 || LA78_0 == 28)) {
+ alt78 = 1;
+ }
+
+
+ switch (alt78) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3674:1: (lv_ownedMember_3_0= ruleStructuredMember )
+ {
+ // InternalAppliedStereotypeProperty.g:3674:1: (lv_ownedMember_3_0= ruleStructuredMember )
+ // InternalAppliedStereotypeProperty.g:3675:3: lv_ownedMember_3_0= ruleStructuredMember
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getSignalDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_37);
+ 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 loop78;
+ }
+ } while (true);
+
+ otherlv_4 = (Token) match(input, 33, 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"
+ // InternalAppliedStereotypeProperty.g:3703:1: entryRuleActivityDeclaration returns [EObject current=null] : iv_ruleActivityDeclaration= ruleActivityDeclaration EOF ;
+ public final EObject entryRuleActivityDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleActivityDeclaration = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:3704:2: (iv_ruleActivityDeclaration= ruleActivityDeclaration EOF )
+ // InternalAppliedStereotypeProperty.g:3705: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"
+ // InternalAppliedStereotypeProperty.g:3712: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 {
+ // InternalAppliedStereotypeProperty.g:3715: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 ) )? ) )
+ // InternalAppliedStereotypeProperty.g:3716: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 ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:3716: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 ) )? )
+ // InternalAppliedStereotypeProperty.g:3716: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, 45, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getActivityDeclarationAccess().getActivityKeyword_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:3720:1: ( (lv_name_1_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:3721:1: (lv_name_1_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:3721:1: (lv_name_1_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:3722:3: lv_name_1_0= ruleName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getActivityDeclarationAccess().getNameNameParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_43);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:3738:2: (otherlv_2= '<' ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )* otherlv_6= '>' )?
+ int alt81 = 2;
+ int LA81_0 = input.LA(1);
+
+ if ((LA81_0 == 37)) {
+ alt81 = 1;
+ }
+ switch (alt81) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3738:4: otherlv_2= '<' ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )* otherlv_6= '>'
+ {
+ otherlv_2 = (Token) match(input, 37, FOLLOW_27);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getActivityDeclarationAccess().getLessThanSignKeyword_2_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:3742:1: ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) )
+ // InternalAppliedStereotypeProperty.g:3743:1: (lv_ownedMember_3_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAppliedStereotypeProperty.g:3743:1: (lv_ownedMember_3_0= ruleClassifierTemplateParameter )
+ // InternalAppliedStereotypeProperty.g:3744:3: lv_ownedMember_3_0= ruleClassifierTemplateParameter
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_2_1_0());
+
+ }
+ pushFollow(FOLLOW_28);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:3760:2: (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )*
+ loop80: do {
+ int alt80 = 2;
+ int LA80_0 = input.LA(1);
+
+ if ((LA80_0 == 19)) {
+ alt80 = 1;
+ }
+
+
+ switch (alt80) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3760:4: otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) )
+ {
+ otherlv_4 = (Token) match(input, 19, FOLLOW_27);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_4, grammarAccess.getActivityDeclarationAccess().getCommaKeyword_2_2_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:3764:1: ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) )
+ // InternalAppliedStereotypeProperty.g:3765:1: (lv_ownedMember_5_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAppliedStereotypeProperty.g:3765:1: (lv_ownedMember_5_0= ruleClassifierTemplateParameter )
+ // InternalAppliedStereotypeProperty.g:3766:3: lv_ownedMember_5_0= ruleClassifierTemplateParameter
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_2_2_1_0());
+
+ }
+ pushFollow(FOLLOW_28);
+ 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 loop80;
+ }
+ } while (true);
+
+ otherlv_6 = (Token) match(input, 38, FOLLOW_44);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_6, grammarAccess.getActivityDeclarationAccess().getGreaterThanSignKeyword_2_3());
+
+ }
+
+ }
+ break;
+
+ }
+
+ otherlv_7 = (Token) match(input, 17, FOLLOW_45);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_7, grammarAccess.getActivityDeclarationAccess().getLeftParenthesisKeyword_3());
+
+ }
+ // InternalAppliedStereotypeProperty.g:3790:1: ( ( (lv_ownedMember_8_0= ruleFormalParameter ) ) (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )* )?
+ int alt83 = 2;
+ int LA83_0 = input.LA(1);
+
+ if ((LA83_0 == RULE_DOCUMENTATION_COMMENT || LA83_0 == 16 || (LA83_0 >= 47 && LA83_0 <= 49))) {
+ alt83 = 1;
+ }
+ switch (alt83) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3790:2: ( (lv_ownedMember_8_0= ruleFormalParameter ) ) (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )*
+ {
+ // InternalAppliedStereotypeProperty.g:3790:2: ( (lv_ownedMember_8_0= ruleFormalParameter ) )
+ // InternalAppliedStereotypeProperty.g:3791:1: (lv_ownedMember_8_0= ruleFormalParameter )
+ {
+ // InternalAppliedStereotypeProperty.g:3791:1: (lv_ownedMember_8_0= ruleFormalParameter )
+ // InternalAppliedStereotypeProperty.g:3792:3: lv_ownedMember_8_0= ruleFormalParameter
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_4_0_0());
+
+ }
+ pushFollow(FOLLOW_46);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:3808:2: (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )*
+ loop82: do {
+ int alt82 = 2;
+ int LA82_0 = input.LA(1);
+
+ if ((LA82_0 == 19)) {
+ alt82 = 1;
+ }
+
+
+ switch (alt82) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3808:4: otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) )
+ {
+ otherlv_9 = (Token) match(input, 19, FOLLOW_47);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_9, grammarAccess.getActivityDeclarationAccess().getCommaKeyword_4_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:3812:1: ( (lv_ownedMember_10_0= ruleFormalParameter ) )
+ // InternalAppliedStereotypeProperty.g:3813:1: (lv_ownedMember_10_0= ruleFormalParameter )
+ {
+ // InternalAppliedStereotypeProperty.g:3813:1: (lv_ownedMember_10_0= ruleFormalParameter )
+ // InternalAppliedStereotypeProperty.g:3814:3: lv_ownedMember_10_0= ruleFormalParameter
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_4_1_1_0());
+
+ }
+ pushFollow(FOLLOW_46);
+ 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 loop82;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+ otherlv_11 = (Token) match(input, 18, FOLLOW_48);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_11, grammarAccess.getActivityDeclarationAccess().getRightParenthesisKeyword_5());
+
+ }
+ // InternalAppliedStereotypeProperty.g:3834:1: ( (lv_ownedMember_12_0= ruleReturnParameter ) )?
+ int alt84 = 2;
+ int LA84_0 = input.LA(1);
+
+ if ((LA84_0 == 46)) {
+ alt84 = 1;
+ }
+ switch (alt84) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3835:1: (lv_ownedMember_12_0= ruleReturnParameter )
+ {
+ // InternalAppliedStereotypeProperty.g:3835:1: (lv_ownedMember_12_0= ruleReturnParameter )
+ // InternalAppliedStereotypeProperty.g:3836: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"
+ // InternalAppliedStereotypeProperty.g:3860:1: entryRuleActivityDefinition returns [EObject current=null] : iv_ruleActivityDefinition= ruleActivityDefinition EOF ;
+ public final EObject entryRuleActivityDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleActivityDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:3861:2: (iv_ruleActivityDefinition= ruleActivityDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:3862: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"
+ // InternalAppliedStereotypeProperty.g:3869: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 {
+ // InternalAppliedStereotypeProperty.g:3872:28: ( (this_ActivityDeclaration_0= ruleActivityDeclaration ( (lv_body_1_0= ruleBlock ) ) ) )
+ // InternalAppliedStereotypeProperty.g:3873:1: (this_ActivityDeclaration_0= ruleActivityDeclaration ( (lv_body_1_0= ruleBlock ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:3873:1: (this_ActivityDeclaration_0= ruleActivityDeclaration ( (lv_body_1_0= ruleBlock ) ) )
+ // InternalAppliedStereotypeProperty.g:3874: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_19);
+ this_ActivityDeclaration_0 = ruleActivityDeclaration();
+
+ state._fsp--;
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ current = this_ActivityDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAppliedStereotypeProperty.g:3885:1: ( (lv_body_1_0= ruleBlock ) )
+ // InternalAppliedStereotypeProperty.g:3886:1: (lv_body_1_0= ruleBlock )
+ {
+ // InternalAppliedStereotypeProperty.g:3886:1: (lv_body_1_0= ruleBlock )
+ // InternalAppliedStereotypeProperty.g:3887: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"
+ // InternalAppliedStereotypeProperty.g:3911:1: entryRuleActivityDefinitionOrStub returns [EObject current=null] : iv_ruleActivityDefinitionOrStub= ruleActivityDefinitionOrStub EOF ;
+ public final EObject entryRuleActivityDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleActivityDefinitionOrStub = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:3912:2: (iv_ruleActivityDefinitionOrStub= ruleActivityDefinitionOrStub EOF )
+ // InternalAppliedStereotypeProperty.g:3913: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"
+ // InternalAppliedStereotypeProperty.g:3920: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 {
+ // InternalAppliedStereotypeProperty.g:3923:28: ( (this_ActivityDeclaration_0= ruleActivityDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) ) )
+ // InternalAppliedStereotypeProperty.g:3924:1: (this_ActivityDeclaration_0= ruleActivityDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:3924:1: (this_ActivityDeclaration_0= ruleActivityDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) )
+ // InternalAppliedStereotypeProperty.g:3925: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_21);
+ this_ActivityDeclaration_0 = ruleActivityDeclaration();
+
+ state._fsp--;
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ current = this_ActivityDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAppliedStereotypeProperty.g:3936:1: ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) )
+ int alt85 = 2;
+ int LA85_0 = input.LA(1);
+
+ if ((LA85_0 == 23)) {
+ alt85 = 1;
+ } else if ((LA85_0 == 32)) {
+ alt85 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 85, 0, input);
+
+ throw nvae;
+ }
+ switch (alt85) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3936:2: ( (lv_isStub_1_0= ';' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:3936:2: ( (lv_isStub_1_0= ';' ) )
+ // InternalAppliedStereotypeProperty.g:3937:1: (lv_isStub_1_0= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:3937:1: (lv_isStub_1_0= ';' )
+ // InternalAppliedStereotypeProperty.g:3938:3: lv_isStub_1_0= ';'
+ {
+ lv_isStub_1_0 = (Token) match(input, 23, 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:
+ // InternalAppliedStereotypeProperty.g:3952:6: ( (lv_body_2_0= ruleBlock ) )
+ {
+ // InternalAppliedStereotypeProperty.g:3952:6: ( (lv_body_2_0= ruleBlock ) )
+ // InternalAppliedStereotypeProperty.g:3953:1: (lv_body_2_0= ruleBlock )
+ {
+ // InternalAppliedStereotypeProperty.g:3953:1: (lv_body_2_0= ruleBlock )
+ // InternalAppliedStereotypeProperty.g:3954: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"
+ // InternalAppliedStereotypeProperty.g:3978:1: entryRuleFormalParameter returns [EObject current=null] : iv_ruleFormalParameter= ruleFormalParameter EOF ;
+ public final EObject entryRuleFormalParameter() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleFormalParameter = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:3979:2: (iv_ruleFormalParameter= ruleFormalParameter EOF )
+ // InternalAppliedStereotypeProperty.g:3980: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"
+ // InternalAppliedStereotypeProperty.g:3987: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 {
+ // InternalAppliedStereotypeProperty.g:3990:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_definition_2_0= ruleFormalParameterDefinition ) ) ) )
+ // InternalAppliedStereotypeProperty.g:3991:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_definition_2_0= ruleFormalParameterDefinition ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:3991:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_definition_2_0= ruleFormalParameterDefinition ) ) )
+ // InternalAppliedStereotypeProperty.g:3991:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_definition_2_0= ruleFormalParameterDefinition ) )
+ {
+ // InternalAppliedStereotypeProperty.g:3991:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
+ int alt86 = 2;
+ int LA86_0 = input.LA(1);
+
+ if ((LA86_0 == RULE_DOCUMENTATION_COMMENT)) {
+ alt86 = 1;
+ }
+ switch (alt86) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:3992:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ {
+ // InternalAppliedStereotypeProperty.g:3992:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ // InternalAppliedStereotypeProperty.g:3993:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
+ {
+ lv_documentation_0_0 = (Token) match(input, RULE_DOCUMENTATION_COMMENT, FOLLOW_47);
+ 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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:4009:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
+ loop87: do {
+ int alt87 = 2;
+ int LA87_0 = input.LA(1);
+
+ if ((LA87_0 == 16)) {
+ alt87 = 1;
+ }
+
+
+ switch (alt87) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4010:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ {
+ // InternalAppliedStereotypeProperty.g:4010:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ // InternalAppliedStereotypeProperty.g:4011:3: lv_annotation_1_0= ruleStereotypeAnnotation
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getFormalParameterAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_47);
+ 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 loop87;
+ }
+ } while (true);
+
+ // InternalAppliedStereotypeProperty.g:4027:3: ( (lv_definition_2_0= ruleFormalParameterDefinition ) )
+ // InternalAppliedStereotypeProperty.g:4028:1: (lv_definition_2_0= ruleFormalParameterDefinition )
+ {
+ // InternalAppliedStereotypeProperty.g:4028:1: (lv_definition_2_0= ruleFormalParameterDefinition )
+ // InternalAppliedStereotypeProperty.g:4029: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"
+ // InternalAppliedStereotypeProperty.g:4053:1: entryRuleFormalParameterDefinition returns [EObject current=null] : iv_ruleFormalParameterDefinition= ruleFormalParameterDefinition EOF ;
+ public final EObject entryRuleFormalParameterDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleFormalParameterDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:4054:2: (iv_ruleFormalParameterDefinition= ruleFormalParameterDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:4055: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"
+ // InternalAppliedStereotypeProperty.g:4062: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 {
+ // InternalAppliedStereotypeProperty.g:4065:28: ( ( ( (lv_direction_0_0= ruleParameterDirection ) ) ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( (lv_typePart_3_0= ruleTypePart ) ) ) )
+ // InternalAppliedStereotypeProperty.g:4066:1: ( ( (lv_direction_0_0= ruleParameterDirection ) ) ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( (lv_typePart_3_0= ruleTypePart ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:4066:1: ( ( (lv_direction_0_0= ruleParameterDirection ) ) ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( (lv_typePart_3_0= ruleTypePart ) ) )
+ // InternalAppliedStereotypeProperty.g:4066:2: ( (lv_direction_0_0= ruleParameterDirection ) ) ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( (lv_typePart_3_0= ruleTypePart ) )
+ {
+ // InternalAppliedStereotypeProperty.g:4066:2: ( (lv_direction_0_0= ruleParameterDirection ) )
+ // InternalAppliedStereotypeProperty.g:4067:1: (lv_direction_0_0= ruleParameterDirection )
+ {
+ // InternalAppliedStereotypeProperty.g:4067:1: (lv_direction_0_0= ruleParameterDirection )
+ // InternalAppliedStereotypeProperty.g:4068:3: lv_direction_0_0= ruleParameterDirection
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getFormalParameterDefinitionAccess().getDirectionParameterDirectionParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_14);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:4084:2: ( (lv_name_1_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:4085:1: (lv_name_1_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:4085:1: (lv_name_1_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:4086:3: lv_name_1_0= ruleName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getFormalParameterDefinitionAccess().getNameNameParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_49);
+ 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, 46, FOLLOW_4);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getFormalParameterDefinitionAccess().getColonKeyword_2());
+
+ }
+ // InternalAppliedStereotypeProperty.g:4106:1: ( (lv_typePart_3_0= ruleTypePart ) )
+ // InternalAppliedStereotypeProperty.g:4107:1: (lv_typePart_3_0= ruleTypePart )
+ {
+ // InternalAppliedStereotypeProperty.g:4107:1: (lv_typePart_3_0= ruleTypePart )
+ // InternalAppliedStereotypeProperty.g:4108: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"
+ // InternalAppliedStereotypeProperty.g:4132:1: entryRuleReturnParameter returns [EObject current=null] : iv_ruleReturnParameter= ruleReturnParameter EOF ;
+ public final EObject entryRuleReturnParameter() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleReturnParameter = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:4133:2: (iv_ruleReturnParameter= ruleReturnParameter EOF )
+ // InternalAppliedStereotypeProperty.g:4134: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"
+ // InternalAppliedStereotypeProperty.g:4141: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 {
+ // InternalAppliedStereotypeProperty.g:4144:28: ( ( (lv_definition_0_0= ruleReturnParameterDefinition ) ) )
+ // InternalAppliedStereotypeProperty.g:4145:1: ( (lv_definition_0_0= ruleReturnParameterDefinition ) )
+ {
+ // InternalAppliedStereotypeProperty.g:4145:1: ( (lv_definition_0_0= ruleReturnParameterDefinition ) )
+ // InternalAppliedStereotypeProperty.g:4146:1: (lv_definition_0_0= ruleReturnParameterDefinition )
+ {
+ // InternalAppliedStereotypeProperty.g:4146:1: (lv_definition_0_0= ruleReturnParameterDefinition )
+ // InternalAppliedStereotypeProperty.g:4147: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"
+ // InternalAppliedStereotypeProperty.g:4171:1: entryRuleReturnParameterDefinition returns [EObject current=null] : iv_ruleReturnParameterDefinition= ruleReturnParameterDefinition EOF ;
+ public final EObject entryRuleReturnParameterDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleReturnParameterDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:4172:2: (iv_ruleReturnParameterDefinition= ruleReturnParameterDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:4173: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"
+ // InternalAppliedStereotypeProperty.g:4180: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 {
+ // InternalAppliedStereotypeProperty.g:4183:28: ( (otherlv_0= ':' ( (lv_typePart_1_0= ruleTypePart ) ) ) )
+ // InternalAppliedStereotypeProperty.g:4184:1: (otherlv_0= ':' ( (lv_typePart_1_0= ruleTypePart ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:4184:1: (otherlv_0= ':' ( (lv_typePart_1_0= ruleTypePart ) ) )
+ // InternalAppliedStereotypeProperty.g:4184:3: otherlv_0= ':' ( (lv_typePart_1_0= ruleTypePart ) )
+ {
+ otherlv_0 = (Token) match(input, 46, FOLLOW_4);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getReturnParameterDefinitionAccess().getColonKeyword_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:4188:1: ( (lv_typePart_1_0= ruleTypePart ) )
+ // InternalAppliedStereotypeProperty.g:4189:1: (lv_typePart_1_0= ruleTypePart )
+ {
+ // InternalAppliedStereotypeProperty.g:4189:1: (lv_typePart_1_0= ruleTypePart )
+ // InternalAppliedStereotypeProperty.g:4190: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"
+ // InternalAppliedStereotypeProperty.g:4214:1: entryRuleParameterDirection returns [String current=null] : iv_ruleParameterDirection= ruleParameterDirection EOF ;
+ public final String entryRuleParameterDirection() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleParameterDirection = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:4215:2: (iv_ruleParameterDirection= ruleParameterDirection EOF )
+ // InternalAppliedStereotypeProperty.g:4216: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"
+ // InternalAppliedStereotypeProperty.g:4223: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 {
+ // InternalAppliedStereotypeProperty.g:4226:28: ( (kw= 'in' | kw= 'out' | kw= 'inout' ) )
+ // InternalAppliedStereotypeProperty.g:4227:1: (kw= 'in' | kw= 'out' | kw= 'inout' )
+ {
+ // InternalAppliedStereotypeProperty.g:4227:1: (kw= 'in' | kw= 'out' | kw= 'inout' )
+ int alt88 = 3;
+ switch (input.LA(1)) {
+ case 47: {
+ alt88 = 1;
+ }
+ break;
+ case 48: {
+ alt88 = 2;
+ }
+ break;
+ case 49: {
+ alt88 = 3;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 88, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt88) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4228:2: kw= 'in'
+ {
+ kw = (Token) match(input, 47, FOLLOW_2);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getParameterDirectionAccess().getInKeyword_0());
+
+ }
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:4235:2: kw= 'out'
+ {
+ kw = (Token) match(input, 48, FOLLOW_2);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getParameterDirectionAccess().getOutKeyword_1());
+
+ }
+
+ }
+ break;
+ case 3:
+ // InternalAppliedStereotypeProperty.g:4242:2: kw= 'inout'
+ {
+ kw = (Token) match(input, 49, 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"
+ // InternalAppliedStereotypeProperty.g:4255:1: entryRuleFeatureDefinitionOrStub returns [EObject current=null] : iv_ruleFeatureDefinitionOrStub= ruleFeatureDefinitionOrStub EOF ;
+ public final EObject entryRuleFeatureDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleFeatureDefinitionOrStub = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:4256:2: (iv_ruleFeatureDefinitionOrStub= ruleFeatureDefinitionOrStub EOF )
+ // InternalAppliedStereotypeProperty.g:4257: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"
+ // InternalAppliedStereotypeProperty.g:4264: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 {
+ // InternalAppliedStereotypeProperty.g:4267:28: ( (this_AttributeDefinition_0= ruleAttributeDefinition | this_OperationDefinitionOrStub_1= ruleOperationDefinitionOrStub ) )
+ // InternalAppliedStereotypeProperty.g:4268:1: (this_AttributeDefinition_0= ruleAttributeDefinition | this_OperationDefinitionOrStub_1= ruleOperationDefinitionOrStub )
+ {
+ // InternalAppliedStereotypeProperty.g:4268:1: (this_AttributeDefinition_0= ruleAttributeDefinition | this_OperationDefinitionOrStub_1= ruleOperationDefinitionOrStub )
+ int alt89 = 2;
+ switch (input.LA(1)) {
+ case RULE_ID: {
+ int LA89_1 = input.LA(2);
+
+ if ((LA89_1 == 46)) {
+ alt89 = 1;
+ } else if ((LA89_1 == 17)) {
+ alt89 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 89, 1, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_UNRESTRICTED_NAME: {
+ int LA89_2 = input.LA(2);
+
+ if ((LA89_2 == 46)) {
+ alt89 = 1;
+ } else if ((LA89_2 == 17)) {
+ alt89 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 89, 2, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case 35: {
+ alt89 = 2;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 89, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt89) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4269: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:
+ // InternalAppliedStereotypeProperty.g:4282: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"
+ // InternalAppliedStereotypeProperty.g:4301:1: entryRuleActiveFeatureDefinitionOrStub returns [EObject current=null] : iv_ruleActiveFeatureDefinitionOrStub= ruleActiveFeatureDefinitionOrStub EOF ;
+ public final EObject entryRuleActiveFeatureDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleActiveFeatureDefinitionOrStub = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:4302:2: (iv_ruleActiveFeatureDefinitionOrStub= ruleActiveFeatureDefinitionOrStub EOF )
+ // InternalAppliedStereotypeProperty.g:4303: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"
+ // InternalAppliedStereotypeProperty.g:4310: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 {
+ // InternalAppliedStereotypeProperty.g:4313:28: ( (this_ReceptionDefinition_0= ruleReceptionDefinition | this_SignalReceptionDefinitionOrStub_1= ruleSignalReceptionDefinitionOrStub ) )
+ // InternalAppliedStereotypeProperty.g:4314:1: (this_ReceptionDefinition_0= ruleReceptionDefinition | this_SignalReceptionDefinitionOrStub_1= ruleSignalReceptionDefinitionOrStub )
+ {
+ // InternalAppliedStereotypeProperty.g:4314:1: (this_ReceptionDefinition_0= ruleReceptionDefinition | this_SignalReceptionDefinitionOrStub_1= ruleSignalReceptionDefinitionOrStub )
+ int alt90 = 2;
+ int LA90_0 = input.LA(1);
+
+ if ((LA90_0 == 59)) {
+ int LA90_1 = input.LA(2);
+
+ if (((LA90_1 >= RULE_ID && LA90_1 <= RULE_UNRESTRICTED_NAME))) {
+ alt90 = 1;
+ } else if ((LA90_1 == 44)) {
+ alt90 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 90, 1, input);
+
+ throw nvae;
+ }
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 90, 0, input);
+
+ throw nvae;
+ }
+ switch (alt90) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4315: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:
+ // InternalAppliedStereotypeProperty.g:4328: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"
+ // InternalAppliedStereotypeProperty.g:4347:1: entryRulePropertyDefinition returns [EObject current=null] : iv_rulePropertyDefinition= rulePropertyDefinition EOF ;
+ public final EObject entryRulePropertyDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePropertyDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:4348:2: (iv_rulePropertyDefinition= rulePropertyDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:4349: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"
+ // InternalAppliedStereotypeProperty.g:4356: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 {
+ // InternalAppliedStereotypeProperty.g:4359:28: ( (this_PropertyDeclaration_0= rulePropertyDeclaration otherlv_1= ';' ) )
+ // InternalAppliedStereotypeProperty.g:4360:1: (this_PropertyDeclaration_0= rulePropertyDeclaration otherlv_1= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:4360:1: (this_PropertyDeclaration_0= rulePropertyDeclaration otherlv_1= ';' )
+ // InternalAppliedStereotypeProperty.g:4361: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, 23, 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"
+ // InternalAppliedStereotypeProperty.g:4384:1: entryRuleAttributeDefinition returns [EObject current=null] : iv_ruleAttributeDefinition= ruleAttributeDefinition EOF ;
+ public final EObject entryRuleAttributeDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAttributeDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:4385:2: (iv_ruleAttributeDefinition= ruleAttributeDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:4386: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"
+ // InternalAppliedStereotypeProperty.g:4393: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 {
+ // InternalAppliedStereotypeProperty.g:4396:28: ( (this_PropertyDeclaration_0= rulePropertyDeclaration ( (lv_initializer_1_0= ruleAttributeInitializer ) )? otherlv_2= ';' ) )
+ // InternalAppliedStereotypeProperty.g:4397:1: (this_PropertyDeclaration_0= rulePropertyDeclaration ( (lv_initializer_1_0= ruleAttributeInitializer ) )? otherlv_2= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:4397:1: (this_PropertyDeclaration_0= rulePropertyDeclaration ( (lv_initializer_1_0= ruleAttributeInitializer ) )? otherlv_2= ';' )
+ // InternalAppliedStereotypeProperty.g:4398: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_50);
+ this_PropertyDeclaration_0 = rulePropertyDeclaration();
+
+ state._fsp--;
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ current = this_PropertyDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAppliedStereotypeProperty.g:4409:1: ( (lv_initializer_1_0= ruleAttributeInitializer ) )?
+ int alt91 = 2;
+ int LA91_0 = input.LA(1);
+
+ if ((LA91_0 == 15)) {
+ alt91 = 1;
+ }
+ switch (alt91) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4410:1: (lv_initializer_1_0= ruleAttributeInitializer )
+ {
+ // InternalAppliedStereotypeProperty.g:4410:1: (lv_initializer_1_0= ruleAttributeInitializer )
+ // InternalAppliedStereotypeProperty.g:4411: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, 23, 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"
+ // InternalAppliedStereotypeProperty.g:4439:1: entryRuleAttributeInitializer returns [EObject current=null] : iv_ruleAttributeInitializer= ruleAttributeInitializer EOF ;
+ public final EObject entryRuleAttributeInitializer() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAttributeInitializer = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:4440:2: (iv_ruleAttributeInitializer= ruleAttributeInitializer EOF )
+ // InternalAppliedStereotypeProperty.g:4441: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"
+ // InternalAppliedStereotypeProperty.g:4448: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 {
+ // InternalAppliedStereotypeProperty.g:4451:28: ( (otherlv_0= '=' this_InitializationExpression_1= ruleInitializationExpression ) )
+ // InternalAppliedStereotypeProperty.g:4452:1: (otherlv_0= '=' this_InitializationExpression_1= ruleInitializationExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:4452:1: (otherlv_0= '=' this_InitializationExpression_1= ruleInitializationExpression )
+ // InternalAppliedStereotypeProperty.g:4452:3: otherlv_0= '=' this_InitializationExpression_1= ruleInitializationExpression
+ {
+ otherlv_0 = (Token) match(input, 15, FOLLOW_3);
+ 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"
+ // InternalAppliedStereotypeProperty.g:4476:1: entryRulePropertyDeclaration returns [EObject current=null] : iv_rulePropertyDeclaration= rulePropertyDeclaration EOF ;
+ public final EObject entryRulePropertyDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePropertyDeclaration = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:4477:2: (iv_rulePropertyDeclaration= rulePropertyDeclaration EOF )
+ // InternalAppliedStereotypeProperty.g:4478: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"
+ // InternalAppliedStereotypeProperty.g:4485: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 {
+ // InternalAppliedStereotypeProperty.g:4488:28: ( ( ( (lv_name_0_0= ruleName ) ) otherlv_1= ':' ( (lv_isComposite_2_0= 'compose' ) )? ( (lv_typePart_3_0= ruleTypePart ) ) ) )
+ // InternalAppliedStereotypeProperty.g:4489:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= ':' ( (lv_isComposite_2_0= 'compose' ) )? ( (lv_typePart_3_0= ruleTypePart ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:4489:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= ':' ( (lv_isComposite_2_0= 'compose' ) )? ( (lv_typePart_3_0= ruleTypePart ) ) )
+ // InternalAppliedStereotypeProperty.g:4489:2: ( (lv_name_0_0= ruleName ) ) otherlv_1= ':' ( (lv_isComposite_2_0= 'compose' ) )? ( (lv_typePart_3_0= ruleTypePart ) )
+ {
+ // InternalAppliedStereotypeProperty.g:4489:2: ( (lv_name_0_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:4490:1: (lv_name_0_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:4490:1: (lv_name_0_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:4491:3: lv_name_0_0= ruleName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getPropertyDeclarationAccess().getNameNameParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_49);
+ 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, 46, FOLLOW_51);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getPropertyDeclarationAccess().getColonKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:4511:1: ( (lv_isComposite_2_0= 'compose' ) )?
+ int alt92 = 2;
+ int LA92_0 = input.LA(1);
+
+ if ((LA92_0 == 50)) {
+ alt92 = 1;
+ }
+ switch (alt92) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4512:1: (lv_isComposite_2_0= 'compose' )
+ {
+ // InternalAppliedStereotypeProperty.g:4512:1: (lv_isComposite_2_0= 'compose' )
+ // InternalAppliedStereotypeProperty.g:4513:3: lv_isComposite_2_0= 'compose'
+ {
+ lv_isComposite_2_0 = (Token) match(input, 50, FOLLOW_4);
+ 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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:4526:3: ( (lv_typePart_3_0= ruleTypePart ) )
+ // InternalAppliedStereotypeProperty.g:4527:1: (lv_typePart_3_0= ruleTypePart )
+ {
+ // InternalAppliedStereotypeProperty.g:4527:1: (lv_typePart_3_0= ruleTypePart )
+ // InternalAppliedStereotypeProperty.g:4528: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"
+ // InternalAppliedStereotypeProperty.g:4552:1: entryRuleTypePart returns [EObject current=null] : iv_ruleTypePart= ruleTypePart EOF ;
+ public final EObject entryRuleTypePart() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleTypePart = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:4553:2: (iv_ruleTypePart= ruleTypePart EOF )
+ // InternalAppliedStereotypeProperty.g:4554: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"
+ // InternalAppliedStereotypeProperty.g:4561: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 {
+ // InternalAppliedStereotypeProperty.g:4564: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' ) ) )? )? ) )
+ // InternalAppliedStereotypeProperty.g:4565: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' ) ) )? )? )
+ {
+ // InternalAppliedStereotypeProperty.g:4565: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' ) ) )? )? )
+ // InternalAppliedStereotypeProperty.g:4565: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' ) ) )? )?
+ {
+ // InternalAppliedStereotypeProperty.g:4565:2: ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) )
+ int alt93 = 2;
+ int LA93_0 = input.LA(1);
+
+ if ((LA93_0 == 51)) {
+ alt93 = 1;
+ } else if (((LA93_0 >= RULE_ID && LA93_0 <= RULE_UNRESTRICTED_NAME))) {
+ alt93 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 93, 0, input);
+
+ throw nvae;
+ }
+ switch (alt93) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4565:3: ( (lv_isAny_0_0= 'any' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:4565:3: ( (lv_isAny_0_0= 'any' ) )
+ // InternalAppliedStereotypeProperty.g:4566:1: (lv_isAny_0_0= 'any' )
+ {
+ // InternalAppliedStereotypeProperty.g:4566:1: (lv_isAny_0_0= 'any' )
+ // InternalAppliedStereotypeProperty.g:4567: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:
+ // InternalAppliedStereotypeProperty.g:4581:6: ( (lv_typeName_1_0= ruleQualifiedName ) )
+ {
+ // InternalAppliedStereotypeProperty.g:4581:6: ( (lv_typeName_1_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:4582:1: (lv_typeName_1_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:4582:1: (lv_typeName_1_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:4583: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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:4599: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 alt100 = 2;
+ alt100 = dfa100.predict(input);
+ switch (alt100) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4599: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' ) ) )?
+ {
+ // InternalAppliedStereotypeProperty.g:4599:4: (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7=
+ // ']' ) ) )?
+ int alt96 = 2;
+ int LA96_0 = input.LA(1);
+
+ if ((LA96_0 == 52)) {
+ alt96 = 1;
+ }
+ switch (alt96) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4599: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());
+
+ }
+ // InternalAppliedStereotypeProperty.g:4603:1: ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) )
+ int alt95 = 2;
+ int LA95_0 = input.LA(1);
+
+ if ((LA95_0 == 53)) {
+ alt95 = 1;
+ } else if ((LA95_0 == RULE_NATURAL_VALUE || LA95_0 == 21)) {
+ alt95 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 95, 0, input);
+
+ throw nvae;
+ }
+ switch (alt95) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4603:2: ( (lv_isMultiplicity_3_0= ']' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:4603:2: ( (lv_isMultiplicity_3_0= ']' ) )
+ // InternalAppliedStereotypeProperty.g:4604:1: (lv_isMultiplicity_3_0= ']' )
+ {
+ // InternalAppliedStereotypeProperty.g:4604:1: (lv_isMultiplicity_3_0= ']' )
+ // InternalAppliedStereotypeProperty.g:4605: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:
+ // InternalAppliedStereotypeProperty.g:4619:6: ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' )
+ {
+ // InternalAppliedStereotypeProperty.g:4619:6: ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' )
+ // InternalAppliedStereotypeProperty.g:4619:7: ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']'
+ {
+ // InternalAppliedStereotypeProperty.g:4619:7: ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )?
+ int alt94 = 2;
+ int LA94_0 = input.LA(1);
+
+ if ((LA94_0 == RULE_NATURAL_VALUE)) {
+ int LA94_1 = input.LA(2);
+
+ if ((LA94_1 == 54)) {
+ alt94 = 1;
+ }
+ }
+ switch (alt94) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4619:8: ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..'
+ {
+ // InternalAppliedStereotypeProperty.g:4619:8: ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) )
+ // InternalAppliedStereotypeProperty.g:4620:1: (lv_lowerBound_4_0= RULE_NATURAL_VALUE )
+ {
+ // InternalAppliedStereotypeProperty.g:4620:1: (lv_lowerBound_4_0= RULE_NATURAL_VALUE )
+ // InternalAppliedStereotypeProperty.g:4621: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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:4641:3: ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) )
+ // InternalAppliedStereotypeProperty.g:4642:1: (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral )
+ {
+ // InternalAppliedStereotypeProperty.g:4642:1: (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral )
+ // InternalAppliedStereotypeProperty.g:4643: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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:4663: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 alt99 = 4;
+ switch (input.LA(1)) {
+ case 55: {
+ alt99 = 1;
+ }
+ break;
+ case 56: {
+ alt99 = 2;
+ }
+ break;
+ case 57: {
+ alt99 = 3;
+ }
+ break;
+ }
+
+ switch (alt99) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4663:6: ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:4663:6: ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? )
+ // InternalAppliedStereotypeProperty.g:4663:7: ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )?
+ {
+ // InternalAppliedStereotypeProperty.g:4663:7: ( (lv_isOrdered_8_0= 'ordered' ) )
+ // InternalAppliedStereotypeProperty.g:4664:1: (lv_isOrdered_8_0= 'ordered' )
+ {
+ // InternalAppliedStereotypeProperty.g:4664:1: (lv_isOrdered_8_0= 'ordered' )
+ // InternalAppliedStereotypeProperty.g:4665: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");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:4678:2: ( (lv_isNonunique_9_0= 'nonunique' ) )?
+ int alt97 = 2;
+ int LA97_0 = input.LA(1);
+
+ if ((LA97_0 == 56)) {
+ alt97 = 1;
+ }
+ switch (alt97) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4679:1: (lv_isNonunique_9_0= 'nonunique' )
+ {
+ // InternalAppliedStereotypeProperty.g:4679:1: (lv_isNonunique_9_0= 'nonunique' )
+ // InternalAppliedStereotypeProperty.g:4680: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:
+ // InternalAppliedStereotypeProperty.g:4694:6: ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:4694:6: ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? )
+ // InternalAppliedStereotypeProperty.g:4694:7: ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )?
+ {
+ // InternalAppliedStereotypeProperty.g:4694:7: ( (lv_isNonunique_10_0= 'nonunique' ) )
+ // InternalAppliedStereotypeProperty.g:4695:1: (lv_isNonunique_10_0= 'nonunique' )
+ {
+ // InternalAppliedStereotypeProperty.g:4695:1: (lv_isNonunique_10_0= 'nonunique' )
+ // InternalAppliedStereotypeProperty.g:4696: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");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:4709:2: ( (lv_isOrdered_11_0= 'ordered' ) )?
+ int alt98 = 2;
+ int LA98_0 = input.LA(1);
+
+ if ((LA98_0 == 55)) {
+ alt98 = 1;
+ }
+ switch (alt98) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4710:1: (lv_isOrdered_11_0= 'ordered' )
+ {
+ // InternalAppliedStereotypeProperty.g:4710:1: (lv_isOrdered_11_0= 'ordered' )
+ // InternalAppliedStereotypeProperty.g:4711: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:
+ // InternalAppliedStereotypeProperty.g:4725:6: ( (lv_isSequence_12_0= 'sequence' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:4725:6: ( (lv_isSequence_12_0= 'sequence' ) )
+ // InternalAppliedStereotypeProperty.g:4726:1: (lv_isSequence_12_0= 'sequence' )
+ {
+ // InternalAppliedStereotypeProperty.g:4726:1: (lv_isSequence_12_0= 'sequence' )
+ // InternalAppliedStereotypeProperty.g:4727: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"
+ // InternalAppliedStereotypeProperty.g:4748:1: entryRuleUnlimitedNaturalLiteral returns [String current=null] : iv_ruleUnlimitedNaturalLiteral= ruleUnlimitedNaturalLiteral EOF ;
+ public final String entryRuleUnlimitedNaturalLiteral() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleUnlimitedNaturalLiteral = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:4749:2: (iv_ruleUnlimitedNaturalLiteral= ruleUnlimitedNaturalLiteral EOF )
+ // InternalAppliedStereotypeProperty.g:4750: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"
+ // InternalAppliedStereotypeProperty.g:4757: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 {
+ // InternalAppliedStereotypeProperty.g:4760:28: ( (this_NATURAL_VALUE_0= RULE_NATURAL_VALUE | kw= '*' ) )
+ // InternalAppliedStereotypeProperty.g:4761:1: (this_NATURAL_VALUE_0= RULE_NATURAL_VALUE | kw= '*' )
+ {
+ // InternalAppliedStereotypeProperty.g:4761:1: (this_NATURAL_VALUE_0= RULE_NATURAL_VALUE | kw= '*' )
+ int alt101 = 2;
+ int LA101_0 = input.LA(1);
+
+ if ((LA101_0 == RULE_NATURAL_VALUE)) {
+ alt101 = 1;
+ } else if ((LA101_0 == 21)) {
+ alt101 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 101, 0, input);
+
+ throw nvae;
+ }
+ switch (alt101) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4761: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:
+ // InternalAppliedStereotypeProperty.g:4770:2: kw= '*'
+ {
+ kw = (Token) match(input, 21, 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"
+ // InternalAppliedStereotypeProperty.g:4783:1: entryRuleOperationDeclaration returns [EObject current=null] : iv_ruleOperationDeclaration= ruleOperationDeclaration EOF ;
+ public final EObject entryRuleOperationDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleOperationDeclaration = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:4784:2: (iv_ruleOperationDeclaration= ruleOperationDeclaration EOF )
+ // InternalAppliedStereotypeProperty.g:4785: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"
+ // InternalAppliedStereotypeProperty.g:4792: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 {
+ // InternalAppliedStereotypeProperty.g:4795: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 ) )? ) )
+ // InternalAppliedStereotypeProperty.g:4796: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 ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:4796: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 ) )? )
+ // InternalAppliedStereotypeProperty.g:4796: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 ) )?
+ {
+ // InternalAppliedStereotypeProperty.g:4796:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
+ int alt102 = 2;
+ int LA102_0 = input.LA(1);
+
+ if ((LA102_0 == 35)) {
+ alt102 = 1;
+ }
+ switch (alt102) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4797:1: (lv_isAbstract_0_0= 'abstract' )
+ {
+ // InternalAppliedStereotypeProperty.g:4797:1: (lv_isAbstract_0_0= 'abstract' )
+ // InternalAppliedStereotypeProperty.g:4798:3: lv_isAbstract_0_0= 'abstract'
+ {
+ lv_isAbstract_0_0 = (Token) match(input, 35, FOLLOW_14);
+ 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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:4811:3: ( (lv_name_1_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:4812:1: (lv_name_1_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:4812:1: (lv_name_1_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:4813:3: lv_name_1_0= ruleName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getOperationDeclarationAccess().getNameNameParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_44);
+ 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, 17, FOLLOW_45);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getOperationDeclarationAccess().getLeftParenthesisKeyword_2());
+
+ }
+ // InternalAppliedStereotypeProperty.g:4833:1: ( ( (lv_ownedMember_3_0= ruleFormalParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )* )?
+ int alt104 = 2;
+ int LA104_0 = input.LA(1);
+
+ if ((LA104_0 == RULE_DOCUMENTATION_COMMENT || LA104_0 == 16 || (LA104_0 >= 47 && LA104_0 <= 49))) {
+ alt104 = 1;
+ }
+ switch (alt104) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4833:2: ( (lv_ownedMember_3_0= ruleFormalParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )*
+ {
+ // InternalAppliedStereotypeProperty.g:4833:2: ( (lv_ownedMember_3_0= ruleFormalParameter ) )
+ // InternalAppliedStereotypeProperty.g:4834:1: (lv_ownedMember_3_0= ruleFormalParameter )
+ {
+ // InternalAppliedStereotypeProperty.g:4834:1: (lv_ownedMember_3_0= ruleFormalParameter )
+ // InternalAppliedStereotypeProperty.g:4835:3: lv_ownedMember_3_0= ruleFormalParameter
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getOperationDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_3_0_0());
+
+ }
+ pushFollow(FOLLOW_46);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:4851:2: (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )*
+ loop103: do {
+ int alt103 = 2;
+ int LA103_0 = input.LA(1);
+
+ if ((LA103_0 == 19)) {
+ alt103 = 1;
+ }
+
+
+ switch (alt103) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4851:4: otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) )
+ {
+ otherlv_4 = (Token) match(input, 19, FOLLOW_47);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_4, grammarAccess.getOperationDeclarationAccess().getCommaKeyword_3_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:4855:1: ( (lv_ownedMember_5_0= ruleFormalParameter ) )
+ // InternalAppliedStereotypeProperty.g:4856:1: (lv_ownedMember_5_0= ruleFormalParameter )
+ {
+ // InternalAppliedStereotypeProperty.g:4856:1: (lv_ownedMember_5_0= ruleFormalParameter )
+ // InternalAppliedStereotypeProperty.g:4857:3: lv_ownedMember_5_0= ruleFormalParameter
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getOperationDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_3_1_1_0());
+
+ }
+ pushFollow(FOLLOW_46);
+ 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 loop103;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+ otherlv_6 = (Token) match(input, 18, FOLLOW_59);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_6, grammarAccess.getOperationDeclarationAccess().getRightParenthesisKeyword_4());
+
+ }
+ // InternalAppliedStereotypeProperty.g:4877:1: ( (lv_ownedMember_7_0= ruleReturnParameter ) )?
+ int alt105 = 2;
+ int LA105_0 = input.LA(1);
+
+ if ((LA105_0 == 46)) {
+ alt105 = 1;
+ }
+ switch (alt105) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4878:1: (lv_ownedMember_7_0= ruleReturnParameter )
+ {
+ // InternalAppliedStereotypeProperty.g:4878:1: (lv_ownedMember_7_0= ruleReturnParameter )
+ // InternalAppliedStereotypeProperty.g:4879: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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:4895:3: ( (lv_redefinition_8_0= ruleRedefinitionClause ) )?
+ int alt106 = 2;
+ int LA106_0 = input.LA(1);
+
+ if ((LA106_0 == 58)) {
+ alt106 = 1;
+ }
+ switch (alt106) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4896:1: (lv_redefinition_8_0= ruleRedefinitionClause )
+ {
+ // InternalAppliedStereotypeProperty.g:4896:1: (lv_redefinition_8_0= ruleRedefinitionClause )
+ // InternalAppliedStereotypeProperty.g:4897: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"
+ // InternalAppliedStereotypeProperty.g:4921:1: entryRuleOperationDefinitionOrStub returns [EObject current=null] : iv_ruleOperationDefinitionOrStub= ruleOperationDefinitionOrStub EOF ;
+ public final EObject entryRuleOperationDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleOperationDefinitionOrStub = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:4922:2: (iv_ruleOperationDefinitionOrStub= ruleOperationDefinitionOrStub EOF )
+ // InternalAppliedStereotypeProperty.g:4923: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"
+ // InternalAppliedStereotypeProperty.g:4930: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 {
+ // InternalAppliedStereotypeProperty.g:4933:28: ( (this_OperationDeclaration_0= ruleOperationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) ) )
+ // InternalAppliedStereotypeProperty.g:4934:1: (this_OperationDeclaration_0= ruleOperationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:4934:1: (this_OperationDeclaration_0= ruleOperationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) )
+ // InternalAppliedStereotypeProperty.g:4935: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_21);
+ this_OperationDeclaration_0 = ruleOperationDeclaration();
+
+ state._fsp--;
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ current = this_OperationDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAppliedStereotypeProperty.g:4946:1: ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) )
+ int alt107 = 2;
+ int LA107_0 = input.LA(1);
+
+ if ((LA107_0 == 23)) {
+ alt107 = 1;
+ } else if ((LA107_0 == 32)) {
+ alt107 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 107, 0, input);
+
+ throw nvae;
+ }
+ switch (alt107) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4946:2: ( (lv_isStub_1_0= ';' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:4946:2: ( (lv_isStub_1_0= ';' ) )
+ // InternalAppliedStereotypeProperty.g:4947:1: (lv_isStub_1_0= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:4947:1: (lv_isStub_1_0= ';' )
+ // InternalAppliedStereotypeProperty.g:4948:3: lv_isStub_1_0= ';'
+ {
+ lv_isStub_1_0 = (Token) match(input, 23, 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:
+ // InternalAppliedStereotypeProperty.g:4962:6: ( (lv_body_2_0= ruleBlock ) )
+ {
+ // InternalAppliedStereotypeProperty.g:4962:6: ( (lv_body_2_0= ruleBlock ) )
+ // InternalAppliedStereotypeProperty.g:4963:1: (lv_body_2_0= ruleBlock )
+ {
+ // InternalAppliedStereotypeProperty.g:4963:1: (lv_body_2_0= ruleBlock )
+ // InternalAppliedStereotypeProperty.g:4964: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"
+ // InternalAppliedStereotypeProperty.g:4988:1: entryRuleRedefinitionClause returns [EObject current=null] : iv_ruleRedefinitionClause= ruleRedefinitionClause EOF ;
+ public final EObject entryRuleRedefinitionClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleRedefinitionClause = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:4989:2: (iv_ruleRedefinitionClause= ruleRedefinitionClause EOF )
+ // InternalAppliedStereotypeProperty.g:4990: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"
+ // InternalAppliedStereotypeProperty.g:4997: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 {
+ // InternalAppliedStereotypeProperty.g:5000:28: ( (otherlv_0= 'redefines' this_QualifiedNameList_1= ruleQualifiedNameList ) )
+ // InternalAppliedStereotypeProperty.g:5001:1: (otherlv_0= 'redefines' this_QualifiedNameList_1= ruleQualifiedNameList )
+ {
+ // InternalAppliedStereotypeProperty.g:5001:1: (otherlv_0= 'redefines' this_QualifiedNameList_1= ruleQualifiedNameList )
+ // InternalAppliedStereotypeProperty.g:5001: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"
+ // InternalAppliedStereotypeProperty.g:5025:1: entryRuleReceptionDefinition returns [EObject current=null] : iv_ruleReceptionDefinition= ruleReceptionDefinition EOF ;
+ public final EObject entryRuleReceptionDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleReceptionDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:5026:2: (iv_ruleReceptionDefinition= ruleReceptionDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:5027: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"
+ // InternalAppliedStereotypeProperty.g:5034: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 {
+ // InternalAppliedStereotypeProperty.g:5037:28: ( (otherlv_0= 'receive' ( (lv_signalName_1_0= ruleQualifiedName ) ) otherlv_2= ';' ) )
+ // InternalAppliedStereotypeProperty.g:5038:1: (otherlv_0= 'receive' ( (lv_signalName_1_0= ruleQualifiedName ) ) otherlv_2= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:5038:1: (otherlv_0= 'receive' ( (lv_signalName_1_0= ruleQualifiedName ) ) otherlv_2= ';' )
+ // InternalAppliedStereotypeProperty.g:5038: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());
+
+ }
+ // InternalAppliedStereotypeProperty.g:5042:1: ( (lv_signalName_1_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:5043:1: (lv_signalName_1_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:5043:1: (lv_signalName_1_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:5044: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, 23, 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"
+ // InternalAppliedStereotypeProperty.g:5072:1: entryRuleSignalReceptionDeclaration returns [EObject current=null] : iv_ruleSignalReceptionDeclaration= ruleSignalReceptionDeclaration EOF ;
+ public final EObject entryRuleSignalReceptionDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSignalReceptionDeclaration = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:5073:2: (iv_ruleSignalReceptionDeclaration= ruleSignalReceptionDeclaration EOF )
+ // InternalAppliedStereotypeProperty.g:5074: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"
+ // InternalAppliedStereotypeProperty.g:5081: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 {
+ // InternalAppliedStereotypeProperty.g:5084:28: ( (otherlv_0= 'receive' otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) ( (lv_specialization_3_0= ruleSpecializationClause ) )? ) )
+ // InternalAppliedStereotypeProperty.g:5085:1: (otherlv_0= 'receive' otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) ( (lv_specialization_3_0= ruleSpecializationClause ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:5085:1: (otherlv_0= 'receive' otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) ( (lv_specialization_3_0= ruleSpecializationClause ) )? )
+ // InternalAppliedStereotypeProperty.g:5085:3: otherlv_0= 'receive' otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) ( (lv_specialization_3_0= ruleSpecializationClause ) )?
+ {
+ otherlv_0 = (Token) match(input, 59, FOLLOW_42);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getSignalReceptionDeclarationAccess().getReceiveKeyword_0());
+
+ }
+ otherlv_1 = (Token) match(input, 44, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getSignalReceptionDeclarationAccess().getSignalKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:5093:1: ( (lv_name_2_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:5094:1: (lv_name_2_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:5094:1: (lv_name_2_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:5095:3: lv_name_2_0= ruleName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getSignalReceptionDeclarationAccess().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.getSignalReceptionDeclarationRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:5111:2: ( (lv_specialization_3_0= ruleSpecializationClause ) )?
+ int alt108 = 2;
+ int LA108_0 = input.LA(1);
+
+ if ((LA108_0 == 34)) {
+ alt108 = 1;
+ }
+ switch (alt108) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:5112:1: (lv_specialization_3_0= ruleSpecializationClause )
+ {
+ // InternalAppliedStereotypeProperty.g:5112:1: (lv_specialization_3_0= ruleSpecializationClause )
+ // InternalAppliedStereotypeProperty.g:5113: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"
+ // InternalAppliedStereotypeProperty.g:5137:1: entryRuleSignalReceptionDefinitionOrStub returns [EObject current=null] : iv_ruleSignalReceptionDefinitionOrStub= ruleSignalReceptionDefinitionOrStub EOF ;
+ public final EObject entryRuleSignalReceptionDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSignalReceptionDefinitionOrStub = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:5138:2: (iv_ruleSignalReceptionDefinitionOrStub= ruleSignalReceptionDefinitionOrStub EOF )
+ // InternalAppliedStereotypeProperty.g:5139: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"
+ // InternalAppliedStereotypeProperty.g:5146: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 {
+ // InternalAppliedStereotypeProperty.g:5149:28: ( (this_SignalReceptionDeclaration_0= ruleSignalReceptionDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) )
+ // InternalAppliedStereotypeProperty.g:5150:1: (this_SignalReceptionDeclaration_0= ruleSignalReceptionDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:5150:1: (this_SignalReceptionDeclaration_0= ruleSignalReceptionDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
+ // InternalAppliedStereotypeProperty.g:5151: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_21);
+ this_SignalReceptionDeclaration_0 = ruleSignalReceptionDeclaration();
+
+ state._fsp--;
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ current = this_SignalReceptionDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAppliedStereotypeProperty.g:5162:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
+ int alt110 = 2;
+ int LA110_0 = input.LA(1);
+
+ if ((LA110_0 == 23)) {
+ alt110 = 1;
+ } else if ((LA110_0 == 32)) {
+ alt110 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 110, 0, input);
+
+ throw nvae;
+ }
+ switch (alt110) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:5162:2: ( (lv_isStub_1_0= ';' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:5162:2: ( (lv_isStub_1_0= ';' ) )
+ // InternalAppliedStereotypeProperty.g:5163:1: (lv_isStub_1_0= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:5163:1: (lv_isStub_1_0= ';' )
+ // InternalAppliedStereotypeProperty.g:5164:3: lv_isStub_1_0= ';'
+ {
+ lv_isStub_1_0 = (Token) match(input, 23, 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:
+ // InternalAppliedStereotypeProperty.g:5178:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
+ {
+ // InternalAppliedStereotypeProperty.g:5178:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
+ // InternalAppliedStereotypeProperty.g:5178:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}'
+ {
+ otherlv_2 = (Token) match(input, 32, FOLLOW_37);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getSignalReceptionDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:5182:1: ( (lv_ownedMember_3_0= ruleStructuredMember ) )*
+ loop109: do {
+ int alt109 = 2;
+ int LA109_0 = input.LA(1);
+
+ if (((LA109_0 >= RULE_DOCUMENTATION_COMMENT && LA109_0 <= RULE_UNRESTRICTED_NAME) || LA109_0 == 16 || LA109_0 == 28)) {
+ alt109 = 1;
+ }
+
+
+ switch (alt109) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:5183:1: (lv_ownedMember_3_0= ruleStructuredMember )
+ {
+ // InternalAppliedStereotypeProperty.g:5183:1: (lv_ownedMember_3_0= ruleStructuredMember )
+ // InternalAppliedStereotypeProperty.g:5184:3: lv_ownedMember_3_0= ruleStructuredMember
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getSignalReceptionDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_37);
+ 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 loop109;
+ }
+ } while (true);
+
+ otherlv_4 = (Token) match(input, 33, 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"
+ // InternalAppliedStereotypeProperty.g:5212:1: entryRuleName returns [String current=null] : iv_ruleName= ruleName EOF ;
+ public final String entryRuleName() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleName = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:5213:2: (iv_ruleName= ruleName EOF )
+ // InternalAppliedStereotypeProperty.g:5214: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"
+ // InternalAppliedStereotypeProperty.g:5221: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 {
+ // InternalAppliedStereotypeProperty.g:5224:28: ( (this_ID_0= RULE_ID | this_UNRESTRICTED_NAME_1= RULE_UNRESTRICTED_NAME ) )
+ // InternalAppliedStereotypeProperty.g:5225:1: (this_ID_0= RULE_ID | this_UNRESTRICTED_NAME_1= RULE_UNRESTRICTED_NAME )
+ {
+ // InternalAppliedStereotypeProperty.g:5225:1: (this_ID_0= RULE_ID | this_UNRESTRICTED_NAME_1= RULE_UNRESTRICTED_NAME )
+ int alt111 = 2;
+ int LA111_0 = input.LA(1);
+
+ if ((LA111_0 == RULE_ID)) {
+ alt111 = 1;
+ } else if ((LA111_0 == RULE_UNRESTRICTED_NAME)) {
+ 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:
+ // InternalAppliedStereotypeProperty.g:5225: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:
+ // InternalAppliedStereotypeProperty.g:5233: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"
+ // InternalAppliedStereotypeProperty.g:5248:1: entryRuleQualifiedName returns [EObject current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ;
+ public final EObject entryRuleQualifiedName() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleQualifiedName = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:5249:2: (iv_ruleQualifiedName= ruleQualifiedName EOF )
+ // InternalAppliedStereotypeProperty.g:5250: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"
+ // InternalAppliedStereotypeProperty.g:5257: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 {
+ // InternalAppliedStereotypeProperty.g:5260:28: ( (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )? ) )
+ // InternalAppliedStereotypeProperty.g:5261:1: (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )? )
+ {
+ // InternalAppliedStereotypeProperty.g:5261:1: (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )? )
+ // InternalAppliedStereotypeProperty.g:5262: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();
+
+ }
+ // InternalAppliedStereotypeProperty.g:5273:1: ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )?
+ int alt114 = 3;
+ int LA114_0 = input.LA(1);
+
+ if ((LA114_0 == 26)) {
+ alt114 = 1;
+ } else if ((LA114_0 == 27)) {
+ int LA114_2 = input.LA(2);
+
+ if ((LA114_2 == RULE_ID)) {
+ int LA114_4 = input.LA(3);
+
+ if ((synpred130_InternalAppliedStereotypeProperty())) {
+ alt114 = 2;
+ }
+ } else if ((LA114_2 == RULE_UNRESTRICTED_NAME)) {
+ int LA114_5 = input.LA(3);
+
+ if ((synpred130_InternalAppliedStereotypeProperty())) {
+ alt114 = 2;
+ }
+ }
+ }
+ switch (alt114) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:5273:2: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+
+ {
+ // InternalAppliedStereotypeProperty.g:5273:2: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+
+ int cnt112 = 0;
+ loop112: do {
+ int alt112 = 2;
+ int LA112_0 = input.LA(1);
+
+ if ((LA112_0 == 26)) {
+ alt112 = 1;
+ }
+
+
+ switch (alt112) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:5273:4: otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) )
+ {
+ otherlv_1 = (Token) match(input, 26, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1_0_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:5277:1: ( (lv_nameBinding_2_0= ruleNameBinding ) )
+ // InternalAppliedStereotypeProperty.g:5278:1: (lv_nameBinding_2_0= ruleNameBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:5278:1: (lv_nameBinding_2_0= ruleNameBinding )
+ // InternalAppliedStereotypeProperty.g:5279: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 (cnt112 >= 1)
+ break loop112;
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ EarlyExitException eee = new EarlyExitException(112, input);
+ throw eee;
+ }
+ cnt112++;
+ } while (true);
+
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:5296:6: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+
+ {
+ // InternalAppliedStereotypeProperty.g:5296:6: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+
+ int cnt113 = 0;
+ loop113: do {
+ int alt113 = 2;
+ int LA113_0 = input.LA(1);
+
+ if ((LA113_0 == 27)) {
+ int LA113_2 = input.LA(2);
+
+ if ((LA113_2 == RULE_ID)) {
+ int LA113_3 = input.LA(3);
+
+ if ((synpred129_InternalAppliedStereotypeProperty())) {
+ alt113 = 1;
+ }
+
+
+ } else if ((LA113_2 == RULE_UNRESTRICTED_NAME)) {
+ int LA113_4 = input.LA(3);
+
+ if ((synpred129_InternalAppliedStereotypeProperty())) {
+ alt113 = 1;
+ }
+
+
+ }
+
+
+ }
+
+
+ switch (alt113) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:5296:8: otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) )
+ {
+ otherlv_3 = (Token) match(input, 27, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_3, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:5300:1: ( (lv_nameBinding_4_0= ruleNameBinding ) )
+ // InternalAppliedStereotypeProperty.g:5301:1: (lv_nameBinding_4_0= ruleNameBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:5301:1: (lv_nameBinding_4_0= ruleNameBinding )
+ // InternalAppliedStereotypeProperty.g:5302: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 (cnt113 >= 1)
+ break loop113;
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ EarlyExitException eee = new EarlyExitException(113, input);
+ throw eee;
+ }
+ cnt113++;
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleQualifiedName"
+
+
+ // $ANTLR start "entryRulePotentiallyAmbiguousQualifiedName"
+ // InternalAppliedStereotypeProperty.g:5326:1: entryRulePotentiallyAmbiguousQualifiedName returns [EObject current=null] : iv_rulePotentiallyAmbiguousQualifiedName= rulePotentiallyAmbiguousQualifiedName EOF ;
+ public final EObject entryRulePotentiallyAmbiguousQualifiedName() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePotentiallyAmbiguousQualifiedName = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:5327:2: (iv_rulePotentiallyAmbiguousQualifiedName= rulePotentiallyAmbiguousQualifiedName EOF )
+ // InternalAppliedStereotypeProperty.g:5328: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"
+ // InternalAppliedStereotypeProperty.g:5335: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 {
+ // InternalAppliedStereotypeProperty.g:5338: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 ) ) )* ) )? ) )
+ // InternalAppliedStereotypeProperty.g:5339: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 ) ) )* ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:5339: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 ) ) )* ) )? )
+ // InternalAppliedStereotypeProperty.g:5340: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();
+
+ }
+ // InternalAppliedStereotypeProperty.g:5351: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 alt117 = 3;
+ int LA117_0 = input.LA(1);
+
+ if ((LA117_0 == 26)) {
+ alt117 = 1;
+ } else if ((LA117_0 == 27)) {
+ int LA117_2 = input.LA(2);
+
+ if ((LA117_2 == RULE_ID)) {
+ int LA117_4 = input.LA(3);
+
+ if ((synpred134_InternalAppliedStereotypeProperty())) {
+ alt117 = 2;
+ }
+ } else if ((LA117_2 == RULE_UNRESTRICTED_NAME)) {
+ int LA117_5 = input.LA(3);
+
+ if ((synpred134_InternalAppliedStereotypeProperty())) {
+ alt117 = 2;
+ }
+ }
+ }
+ switch (alt117) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:5351:2: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+
+ {
+ // InternalAppliedStereotypeProperty.g:5351:2: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+
+ int cnt115 = 0;
+ loop115: do {
+ int alt115 = 2;
+ int LA115_0 = input.LA(1);
+
+ if ((LA115_0 == 26)) {
+ alt115 = 1;
+ }
+
+
+ switch (alt115) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:5351:4: otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) )
+ {
+ otherlv_1 = (Token) match(input, 26, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getColonColonKeyword_1_0_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:5355:1: ( (lv_nameBinding_2_0= ruleNameBinding ) )
+ // InternalAppliedStereotypeProperty.g:5356:1: (lv_nameBinding_2_0= ruleNameBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:5356:1: (lv_nameBinding_2_0= ruleNameBinding )
+ // InternalAppliedStereotypeProperty.g:5357: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 (cnt115 >= 1)
+ break loop115;
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ EarlyExitException eee = new EarlyExitException(115, input);
+ throw eee;
+ }
+ cnt115++;
+ } while (true);
+
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:5374:6: ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:5374:6: ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* )
+ // InternalAppliedStereotypeProperty.g:5374:7: ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
+ {
+ // InternalAppliedStereotypeProperty.g:5374:7: ( (lv_isAmbiguous_3_0= '.' ) )
+ // InternalAppliedStereotypeProperty.g:5375:1: (lv_isAmbiguous_3_0= '.' )
+ {
+ // InternalAppliedStereotypeProperty.g:5375:1: (lv_isAmbiguous_3_0= '.' )
+ // InternalAppliedStereotypeProperty.g:5376:3: lv_isAmbiguous_3_0= '.'
+ {
+ lv_isAmbiguous_3_0 = (Token) match(input, 27, FOLLOW_14);
+ 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, ".");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:5389:2: ( (lv_nameBinding_4_0= ruleNameBinding ) )
+ // InternalAppliedStereotypeProperty.g:5390:1: (lv_nameBinding_4_0= ruleNameBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:5390:1: (lv_nameBinding_4_0= ruleNameBinding )
+ // InternalAppliedStereotypeProperty.g:5391: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:5407:2: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
+ loop116: do {
+ int alt116 = 2;
+ int LA116_0 = input.LA(1);
+
+ if ((LA116_0 == 27)) {
+ int LA116_2 = input.LA(2);
+
+ if ((LA116_2 == RULE_ID)) {
+ int LA116_3 = input.LA(3);
+
+ if ((synpred133_InternalAppliedStereotypeProperty())) {
+ alt116 = 1;
+ }
+
+
+ } else if ((LA116_2 == RULE_UNRESTRICTED_NAME)) {
+ int LA116_4 = input.LA(3);
+
+ if ((synpred133_InternalAppliedStereotypeProperty())) {
+ alt116 = 1;
+ }
+
+
+ }
+
+
+ }
+
+
+ switch (alt116) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:5407:4: otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) )
+ {
+ otherlv_5 = (Token) match(input, 27, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_5, grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getFullStopKeyword_1_1_2_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:5411:1: ( (lv_nameBinding_6_0= ruleNameBinding ) )
+ // InternalAppliedStereotypeProperty.g:5412:1: (lv_nameBinding_6_0= ruleNameBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:5412:1: (lv_nameBinding_6_0= ruleNameBinding )
+ // InternalAppliedStereotypeProperty.g:5413: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 loop116;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePotentiallyAmbiguousQualifiedName"
+
+
+ // $ANTLR start "entryRuleUnqualifiedName"
+ // InternalAppliedStereotypeProperty.g:5441:1: entryRuleUnqualifiedName returns [EObject current=null] : iv_ruleUnqualifiedName= ruleUnqualifiedName EOF ;
+ public final EObject entryRuleUnqualifiedName() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleUnqualifiedName = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:5442:2: (iv_ruleUnqualifiedName= ruleUnqualifiedName EOF )
+ // InternalAppliedStereotypeProperty.g:5443: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"
+ // InternalAppliedStereotypeProperty.g:5450: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 {
+ // InternalAppliedStereotypeProperty.g:5453:28: ( ( (lv_nameBinding_0_0= ruleNameBinding ) ) )
+ // InternalAppliedStereotypeProperty.g:5454:1: ( (lv_nameBinding_0_0= ruleNameBinding ) )
+ {
+ // InternalAppliedStereotypeProperty.g:5454:1: ( (lv_nameBinding_0_0= ruleNameBinding ) )
+ // InternalAppliedStereotypeProperty.g:5455:1: (lv_nameBinding_0_0= ruleNameBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:5455:1: (lv_nameBinding_0_0= ruleNameBinding )
+ // InternalAppliedStereotypeProperty.g:5456: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"
+ // InternalAppliedStereotypeProperty.g:5480:1: entryRuleNameBinding returns [EObject current=null] : iv_ruleNameBinding= ruleNameBinding EOF ;
+ public final EObject entryRuleNameBinding() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNameBinding = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:5481:2: (iv_ruleNameBinding= ruleNameBinding EOF )
+ // InternalAppliedStereotypeProperty.g:5482: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"
+ // InternalAppliedStereotypeProperty.g:5489: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 {
+ // InternalAppliedStereotypeProperty.g:5492:28: ( ( ( (lv_name_0_0= ruleName ) ) ( (lv_binding_1_0= ruleTemplateBinding ) )? ) )
+ // InternalAppliedStereotypeProperty.g:5493:1: ( ( (lv_name_0_0= ruleName ) ) ( (lv_binding_1_0= ruleTemplateBinding ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:5493:1: ( ( (lv_name_0_0= ruleName ) ) ( (lv_binding_1_0= ruleTemplateBinding ) )? )
+ // InternalAppliedStereotypeProperty.g:5493:2: ( (lv_name_0_0= ruleName ) ) ( (lv_binding_1_0= ruleTemplateBinding ) )?
+ {
+ // InternalAppliedStereotypeProperty.g:5493:2: ( (lv_name_0_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:5494:1: (lv_name_0_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:5494:1: (lv_name_0_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:5495: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:5511:2: ( (lv_binding_1_0= ruleTemplateBinding ) )?
+ int alt118 = 2;
+ alt118 = dfa118.predict(input);
+ switch (alt118) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:5512:1: (lv_binding_1_0= ruleTemplateBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:5512:1: (lv_binding_1_0= ruleTemplateBinding )
+ // InternalAppliedStereotypeProperty.g:5513: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"
+ // InternalAppliedStereotypeProperty.g:5537:1: entryRuleTemplateBinding returns [EObject current=null] : iv_ruleTemplateBinding= ruleTemplateBinding EOF ;
+ public final EObject entryRuleTemplateBinding() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleTemplateBinding = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:5538:2: (iv_ruleTemplateBinding= ruleTemplateBinding EOF )
+ // InternalAppliedStereotypeProperty.g:5539: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"
+ // InternalAppliedStereotypeProperty.g:5546: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 {
+ // InternalAppliedStereotypeProperty.g:5549:28: ( (otherlv_0= '<' (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding ) otherlv_3= '>' ) )
+ // InternalAppliedStereotypeProperty.g:5550:1: (otherlv_0= '<' (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding ) otherlv_3= '>' )
+ {
+ // InternalAppliedStereotypeProperty.g:5550:1: (otherlv_0= '<' (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding ) otherlv_3= '>' )
+ // InternalAppliedStereotypeProperty.g:5550:3: otherlv_0= '<' (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding ) otherlv_3= '>'
+ {
+ otherlv_0 = (Token) match(input, 37, FOLLOW_4);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getTemplateBindingAccess().getLessThanSignKeyword_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:5554:1: (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding )
+ int alt119 = 2;
+ int LA119_0 = input.LA(1);
+
+ if ((LA119_0 == RULE_ID)) {
+ int LA119_1 = input.LA(2);
+
+ if ((LA119_1 == 20)) {
+ alt119 = 1;
+ } else if ((LA119_1 == 19 || (LA119_1 >= 26 && LA119_1 <= 27) || (LA119_1 >= 37 && LA119_1 <= 38))) {
+ alt119 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 119, 1, input);
+
+ throw nvae;
+ }
+ } else if ((LA119_0 == RULE_UNRESTRICTED_NAME)) {
+ int LA119_2 = input.LA(2);
+
+ if ((LA119_2 == 20)) {
+ alt119 = 1;
+ } else if ((LA119_2 == 19 || (LA119_2 >= 26 && LA119_2 <= 27) || (LA119_2 >= 37 && LA119_2 <= 38))) {
+ alt119 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 119, 2, input);
+
+ throw nvae;
+ }
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 119, 0, input);
+
+ throw nvae;
+ }
+ switch (alt119) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:5555: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:
+ // InternalAppliedStereotypeProperty.g:5568: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, 38, 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"
+ // InternalAppliedStereotypeProperty.g:5591:1: entryRulePositionalTemplateBinding returns [EObject current=null] : iv_rulePositionalTemplateBinding= rulePositionalTemplateBinding EOF ;
+ public final EObject entryRulePositionalTemplateBinding() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePositionalTemplateBinding = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:5592:2: (iv_rulePositionalTemplateBinding= rulePositionalTemplateBinding EOF )
+ // InternalAppliedStereotypeProperty.g:5593: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"
+ // InternalAppliedStereotypeProperty.g:5600: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 {
+ // InternalAppliedStereotypeProperty.g:5603:28: ( ( ( (lv_argumentName_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )* ) )
+ // InternalAppliedStereotypeProperty.g:5604:1: ( ( (lv_argumentName_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:5604:1: ( ( (lv_argumentName_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )* )
+ // InternalAppliedStereotypeProperty.g:5604:2: ( (lv_argumentName_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )*
+ {
+ // InternalAppliedStereotypeProperty.g:5604:2: ( (lv_argumentName_0_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:5605:1: (lv_argumentName_0_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:5605:1: (lv_argumentName_0_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:5606: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:5622:2: (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )*
+ loop120: do {
+ int alt120 = 2;
+ int LA120_0 = input.LA(1);
+
+ if ((LA120_0 == 19)) {
+ alt120 = 1;
+ }
+
+
+ switch (alt120) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:5622:4: otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) )
+ {
+ otherlv_1 = (Token) match(input, 19, FOLLOW_4);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getPositionalTemplateBindingAccess().getCommaKeyword_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:5626:1: ( (lv_argumentName_2_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:5627:1: (lv_argumentName_2_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:5627:1: (lv_argumentName_2_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:5628: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 loop120;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePositionalTemplateBinding"
+
+
+ // $ANTLR start "entryRuleNamedTemplateBinding"
+ // InternalAppliedStereotypeProperty.g:5652:1: entryRuleNamedTemplateBinding returns [EObject current=null] : iv_ruleNamedTemplateBinding= ruleNamedTemplateBinding EOF ;
+ public final EObject entryRuleNamedTemplateBinding() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNamedTemplateBinding = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:5653:2: (iv_ruleNamedTemplateBinding= ruleNamedTemplateBinding EOF )
+ // InternalAppliedStereotypeProperty.g:5654: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"
+ // InternalAppliedStereotypeProperty.g:5661: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 {
+ // InternalAppliedStereotypeProperty.g:5664:28: ( ( ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) ) (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )* ) )
+ // InternalAppliedStereotypeProperty.g:5665:1: ( ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) ) (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:5665:1: ( ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) ) (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )* )
+ // InternalAppliedStereotypeProperty.g:5665:2: ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) ) (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )*
+ {
+ // InternalAppliedStereotypeProperty.g:5665:2: ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) )
+ // InternalAppliedStereotypeProperty.g:5666:1: (lv_substitution_0_0= ruleTemplateParameterSubstitution )
+ {
+ // InternalAppliedStereotypeProperty.g:5666:1: (lv_substitution_0_0= ruleTemplateParameterSubstitution )
+ // InternalAppliedStereotypeProperty.g:5667: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:5683:2: (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )*
+ loop121: do {
+ int alt121 = 2;
+ int LA121_0 = input.LA(1);
+
+ if ((LA121_0 == 19)) {
+ alt121 = 1;
+ }
+
+
+ switch (alt121) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:5683:4: otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) )
+ {
+ otherlv_1 = (Token) match(input, 19, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getNamedTemplateBindingAccess().getCommaKeyword_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:5687:1: ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) )
+ // InternalAppliedStereotypeProperty.g:5688:1: (lv_substitution_2_0= ruleTemplateParameterSubstitution )
+ {
+ // InternalAppliedStereotypeProperty.g:5688:1: (lv_substitution_2_0= ruleTemplateParameterSubstitution )
+ // InternalAppliedStereotypeProperty.g:5689: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 loop121;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNamedTemplateBinding"
+
+
+ // $ANTLR start "entryRuleTemplateParameterSubstitution"
+ // InternalAppliedStereotypeProperty.g:5713:1: entryRuleTemplateParameterSubstitution returns [EObject current=null] : iv_ruleTemplateParameterSubstitution= ruleTemplateParameterSubstitution EOF ;
+ public final EObject entryRuleTemplateParameterSubstitution() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleTemplateParameterSubstitution = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:5714:2: (iv_ruleTemplateParameterSubstitution= ruleTemplateParameterSubstitution EOF )
+ // InternalAppliedStereotypeProperty.g:5715: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"
+ // InternalAppliedStereotypeProperty.g:5722: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 {
+ // InternalAppliedStereotypeProperty.g:5725:28: ( ( ( (lv_parameterName_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_argumentName_2_0= ruleQualifiedName ) ) ) )
+ // InternalAppliedStereotypeProperty.g:5726:1: ( ( (lv_parameterName_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:5726:1: ( ( (lv_parameterName_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )
+ // InternalAppliedStereotypeProperty.g:5726:2: ( (lv_parameterName_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_argumentName_2_0= ruleQualifiedName ) )
+ {
+ // InternalAppliedStereotypeProperty.g:5726:2: ( (lv_parameterName_0_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:5727:1: (lv_parameterName_0_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:5727:1: (lv_parameterName_0_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:5728: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, 20, FOLLOW_4);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getTemplateParameterSubstitutionAccess().getEqualsSignGreaterThanSignKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:5748:1: ( (lv_argumentName_2_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:5749:1: (lv_argumentName_2_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:5749:1: (lv_argumentName_2_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:5750: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"
+ // InternalAppliedStereotypeProperty.g:5774:1: entryRuleExpression returns [EObject current=null] : iv_ruleExpression= ruleExpression EOF ;
+ public final EObject entryRuleExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:5775:2: (iv_ruleExpression= ruleExpression EOF )
+ // InternalAppliedStereotypeProperty.g:5776: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"
+ // InternalAppliedStereotypeProperty.g:5783: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 {
+ // InternalAppliedStereotypeProperty.g:5786:28: ( (this_AssignmentExpression_0= ruleAssignmentExpression | this_ConditionalExpression_1= ruleConditionalExpression ) )
+ // InternalAppliedStereotypeProperty.g:5787:1: (this_AssignmentExpression_0= ruleAssignmentExpression | this_ConditionalExpression_1= ruleConditionalExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:5787:1: (this_AssignmentExpression_0= ruleAssignmentExpression | this_ConditionalExpression_1= ruleConditionalExpression )
+ int alt122 = 2;
+ alt122 = dfa122.predict(input);
+ switch (alt122) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:5788: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:
+ // InternalAppliedStereotypeProperty.g:5801: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"
+ // InternalAppliedStereotypeProperty.g:5820:1: entryRulePrimaryExpression returns [EObject current=null] : iv_rulePrimaryExpression= rulePrimaryExpression EOF ;
+ public final EObject entryRulePrimaryExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePrimaryExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:5821:2: (iv_rulePrimaryExpression= rulePrimaryExpression EOF )
+ // InternalAppliedStereotypeProperty.g:5822: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"
+ // InternalAppliedStereotypeProperty.g:5829: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 {
+ // InternalAppliedStereotypeProperty.g:5832: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 ) ) ) )* ) )
+ // InternalAppliedStereotypeProperty.g:5833: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 ) ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:5833: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 ) ) ) )* )
+ // InternalAppliedStereotypeProperty.g:5834: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();
+
+ }
+ // InternalAppliedStereotypeProperty.g:5845: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 ) ) ) )*
+ loop125: do {
+ int alt125 = 5;
+ alt125 = dfa125.predict(input);
+ switch (alt125) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:5845:2: ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:5845:2: ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) )
+ // InternalAppliedStereotypeProperty.g:5845:3: () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) )
+ {
+ // InternalAppliedStereotypeProperty.g:5845:3: ()
+ // InternalAppliedStereotypeProperty.g:5846:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0(),
+ current);
+
+ }
+
+ }
+
+ otherlv_2 = (Token) match(input, 27, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getPrimaryExpressionAccess().getFullStopKeyword_1_0_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:5858:1: ( (lv_nameBinding_3_0= ruleNameBinding ) )
+ // InternalAppliedStereotypeProperty.g:5859:1: (lv_nameBinding_3_0= ruleNameBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:5859:1: (lv_nameBinding_3_0= ruleNameBinding )
+ // InternalAppliedStereotypeProperty.g:5860:3: lv_nameBinding_3_0= ruleNameBinding
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_0_2_0());
+
+ }
+ pushFollow(FOLLOW_44);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:5876:2: ()
+ // InternalAppliedStereotypeProperty.g:5877:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getFeatureInvocationExpressionTargetAction_1_0_3(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:5885:2: ( (lv_tuple_5_0= ruleTuple ) )
+ // InternalAppliedStereotypeProperty.g:5886:1: (lv_tuple_5_0= ruleTuple )
+ {
+ // InternalAppliedStereotypeProperty.g:5886:1: (lv_tuple_5_0= ruleTuple )
+ // InternalAppliedStereotypeProperty.g:5887: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:
+ // InternalAppliedStereotypeProperty.g:5904:6: ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () )
+ {
+ // InternalAppliedStereotypeProperty.g:5904:6: ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () )
+ // InternalAppliedStereotypeProperty.g:5904:7: () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) ()
+ {
+ // InternalAppliedStereotypeProperty.g:5904:7: ()
+ // InternalAppliedStereotypeProperty.g:5905:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0(),
+ current);
+
+ }
+
+ }
+
+ otherlv_7 = (Token) match(input, 27, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_7, grammarAccess.getPrimaryExpressionAccess().getFullStopKeyword_1_1_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:5917:1: ( (lv_nameBinding_8_0= ruleNameBinding ) )
+ // InternalAppliedStereotypeProperty.g:5918:1: (lv_nameBinding_8_0= ruleNameBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:5918:1: (lv_nameBinding_8_0= ruleNameBinding )
+ // InternalAppliedStereotypeProperty.g:5919: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:5935:2: ()
+ // InternalAppliedStereotypeProperty.g:5936:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getPropertyAccessExpressionFeatureReferenceAction_1_1_3(),
+ current);
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 3:
+ // InternalAppliedStereotypeProperty.g:5945: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= ')' ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:5945: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= ')' ) ) )
+ // InternalAppliedStereotypeProperty.g:5945: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= ')' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:5945:7: ()
+ // InternalAppliedStereotypeProperty.g:5946: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());
+
+ }
+ // InternalAppliedStereotypeProperty.g:5958: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 alt124 = 3;
+ switch (input.LA(1)) {
+ case RULE_ID: {
+ int LA124_1 = input.LA(2);
+
+ if ((LA124_1 == 17 || (LA124_1 >= 26 && LA124_1 <= 27) || LA124_1 == 37)) {
+ alt124 = 1;
+ } else if (((LA124_1 >= RULE_ID && LA124_1 <= RULE_UNRESTRICTED_NAME))) {
+ alt124 = 3;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 124, 1, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_UNRESTRICTED_NAME: {
+ alt124 = 1;
+ }
+ break;
+ case 61: {
+ alt124 = 2;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 124, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt124) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:5958:2: ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:5958:2: ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) )
+ // InternalAppliedStereotypeProperty.g:5958:3: () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) )
+ {
+ // InternalAppliedStereotypeProperty.g:5958:3: ()
+ // InternalAppliedStereotypeProperty.g:5959:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getSequenceOperationExpressionPrimaryAction_1_2_2_0_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:5967:2: ( (lv_operation_13_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:5968:1: (lv_operation_13_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:5968:1: (lv_operation_13_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:5969:3: lv_operation_13_0= ruleQualifiedName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getOperationQualifiedNameParserRuleCall_1_2_2_0_1_0());
+
+ }
+ pushFollow(FOLLOW_44);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:5985:2: ( (lv_tuple_14_0= ruleTuple ) )
+ // InternalAppliedStereotypeProperty.g:5986:1: (lv_tuple_14_0= ruleTuple )
+ {
+ // InternalAppliedStereotypeProperty.g:5986:1: (lv_tuple_14_0= ruleTuple )
+ // InternalAppliedStereotypeProperty.g:5987: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:
+ // InternalAppliedStereotypeProperty.g:6004:6: ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:6004:6: ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) )
+ // InternalAppliedStereotypeProperty.g:6004:7: () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) )
+ {
+ // InternalAppliedStereotypeProperty.g:6004:7: ()
+ // InternalAppliedStereotypeProperty.g:6005: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());
+
+ }
+ // InternalAppliedStereotypeProperty.g:6017:1: ( (lv_isOrdered_17_0= 'ordered' ) )?
+ int alt123 = 2;
+ int LA123_0 = input.LA(1);
+
+ if ((LA123_0 == 55)) {
+ alt123 = 1;
+ }
+ switch (alt123) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:6018:1: (lv_isOrdered_17_0= 'ordered' )
+ {
+ // InternalAppliedStereotypeProperty.g:6018:1: (lv_isOrdered_17_0= 'ordered' )
+ // InternalAppliedStereotypeProperty.g:6019: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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:6032:3: ( (lv_behaviorName_18_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:6033:1: (lv_behaviorName_18_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:6033:1: (lv_behaviorName_18_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:6034: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:
+ // InternalAppliedStereotypeProperty.g:6051:6: ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' )
+ {
+ // InternalAppliedStereotypeProperty.g:6051:6: ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' )
+ // InternalAppliedStereotypeProperty.g:6051:7: () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')'
+ {
+ // InternalAppliedStereotypeProperty.g:6051:7: ()
+ // InternalAppliedStereotypeProperty.g:6052:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getSequenceExpansionExpressionPrimaryAction_1_2_2_2_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:6060:2: ( (lv_operation_20_0= RULE_ID ) )
+ // InternalAppliedStereotypeProperty.g:6061:1: (lv_operation_20_0= RULE_ID )
+ {
+ // InternalAppliedStereotypeProperty.g:6061:1: (lv_operation_20_0= RULE_ID )
+ // InternalAppliedStereotypeProperty.g:6062:3: lv_operation_20_0= RULE_ID
+ {
+ lv_operation_20_0 = (Token) match(input, RULE_ID, FOLLOW_14);
+ 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");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:6078:2: ( (lv_variable_21_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:6079:1: (lv_variable_21_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:6079:1: (lv_variable_21_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:6080:3: lv_variable_21_0= ruleName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getVariableNameParserRuleCall_1_2_2_2_2_0());
+
+ }
+ pushFollow(FOLLOW_44);
+ 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, 17, FOLLOW_69);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_22, grammarAccess.getPrimaryExpressionAccess().getLeftParenthesisKeyword_1_2_2_2_3());
+
+ }
+ // InternalAppliedStereotypeProperty.g:6100:1: ( (lv_argument_23_0= ruleExpression ) )
+ // InternalAppliedStereotypeProperty.g:6101:1: (lv_argument_23_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:6101:1: (lv_argument_23_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:6102: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, 18, 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:
+ // InternalAppliedStereotypeProperty.g:6123:6: ( () ( (lv_index_26_0= ruleIndex ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:6123:6: ( () ( (lv_index_26_0= ruleIndex ) ) )
+ // InternalAppliedStereotypeProperty.g:6123:7: () ( (lv_index_26_0= ruleIndex ) )
+ {
+ // InternalAppliedStereotypeProperty.g:6123:7: ()
+ // InternalAppliedStereotypeProperty.g:6124:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:6132:2: ( (lv_index_26_0= ruleIndex ) )
+ // InternalAppliedStereotypeProperty.g:6133:1: (lv_index_26_0= ruleIndex )
+ {
+ // InternalAppliedStereotypeProperty.g:6133:1: (lv_index_26_0= ruleIndex )
+ // InternalAppliedStereotypeProperty.g:6134: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 loop125;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePrimaryExpression"
+
+
+ // $ANTLR start "entryRuleBaseExpression"
+ // InternalAppliedStereotypeProperty.g:6158:1: entryRuleBaseExpression returns [EObject current=null] : iv_ruleBaseExpression= ruleBaseExpression EOF ;
+ public final EObject entryRuleBaseExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBaseExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:6159:2: (iv_ruleBaseExpression= ruleBaseExpression EOF )
+ // InternalAppliedStereotypeProperty.g:6160: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"
+ // InternalAppliedStereotypeProperty.g:6167: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 {
+ // InternalAppliedStereotypeProperty.g:6170: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 ) )
+ // InternalAppliedStereotypeProperty.g:6171: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 )
+ {
+ // InternalAppliedStereotypeProperty.g:6171: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 alt126 = 11;
+ alt126 = dfa126.predict(input);
+ switch (alt126) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:6172: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:
+ // InternalAppliedStereotypeProperty.g:6185: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:
+ // InternalAppliedStereotypeProperty.g:6198: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:
+ // InternalAppliedStereotypeProperty.g:6211: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:
+ // InternalAppliedStereotypeProperty.g:6224: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:
+ // InternalAppliedStereotypeProperty.g:6237: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:
+ // InternalAppliedStereotypeProperty.g:6250: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:
+ // InternalAppliedStereotypeProperty.g:6263: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:
+ // InternalAppliedStereotypeProperty.g:6276: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:
+ // InternalAppliedStereotypeProperty.g:6289: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:
+ // InternalAppliedStereotypeProperty.g:6302: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"
+ // InternalAppliedStereotypeProperty.g:6321:1: entryRuleLiteralExpression returns [EObject current=null] : iv_ruleLiteralExpression= ruleLiteralExpression EOF ;
+ public final EObject entryRuleLiteralExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleLiteralExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:6322:2: (iv_ruleLiteralExpression= ruleLiteralExpression EOF )
+ // InternalAppliedStereotypeProperty.g:6323: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"
+ // InternalAppliedStereotypeProperty.g:6330: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 {
+ // InternalAppliedStereotypeProperty.g:6333:28: ( (this_BooleanLiteralExpression_0= ruleBooleanLiteralExpression | this_NaturalLiteralExpression_1= ruleNaturalLiteralExpression | this_UnboundedLiteralExpression_2= ruleUnboundedLiteralExpression |
+ // this_StringLiteralExpression_3= ruleStringLiteralExpression ) )
+ // InternalAppliedStereotypeProperty.g:6334:1: (this_BooleanLiteralExpression_0= ruleBooleanLiteralExpression | this_NaturalLiteralExpression_1= ruleNaturalLiteralExpression | this_UnboundedLiteralExpression_2= ruleUnboundedLiteralExpression |
+ // this_StringLiteralExpression_3= ruleStringLiteralExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:6334:1: (this_BooleanLiteralExpression_0= ruleBooleanLiteralExpression | this_NaturalLiteralExpression_1= ruleNaturalLiteralExpression | this_UnboundedLiteralExpression_2= ruleUnboundedLiteralExpression |
+ // this_StringLiteralExpression_3= ruleStringLiteralExpression )
+ int alt127 = 4;
+ switch (input.LA(1)) {
+ case RULE_BOOLEAN_VALUE: {
+ alt127 = 1;
+ }
+ break;
+ case RULE_NATURAL_VALUE: {
+ alt127 = 2;
+ }
+ break;
+ case 21: {
+ alt127 = 3;
+ }
+ break;
+ case RULE_STRING: {
+ alt127 = 4;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 127, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt127) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:6335: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:
+ // InternalAppliedStereotypeProperty.g:6348: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:
+ // InternalAppliedStereotypeProperty.g:6361: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:
+ // InternalAppliedStereotypeProperty.g:6374: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"
+ // InternalAppliedStereotypeProperty.g:6393:1: entryRuleBooleanLiteralExpression returns [EObject current=null] : iv_ruleBooleanLiteralExpression= ruleBooleanLiteralExpression EOF ;
+ public final EObject entryRuleBooleanLiteralExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBooleanLiteralExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:6394:2: (iv_ruleBooleanLiteralExpression= ruleBooleanLiteralExpression EOF )
+ // InternalAppliedStereotypeProperty.g:6395: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"
+ // InternalAppliedStereotypeProperty.g:6402: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 {
+ // InternalAppliedStereotypeProperty.g:6405:28: ( ( (lv_image_0_0= RULE_BOOLEAN_VALUE ) ) )
+ // InternalAppliedStereotypeProperty.g:6406:1: ( (lv_image_0_0= RULE_BOOLEAN_VALUE ) )
+ {
+ // InternalAppliedStereotypeProperty.g:6406:1: ( (lv_image_0_0= RULE_BOOLEAN_VALUE ) )
+ // InternalAppliedStereotypeProperty.g:6407:1: (lv_image_0_0= RULE_BOOLEAN_VALUE )
+ {
+ // InternalAppliedStereotypeProperty.g:6407:1: (lv_image_0_0= RULE_BOOLEAN_VALUE )
+ // InternalAppliedStereotypeProperty.g:6408: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"
+ // InternalAppliedStereotypeProperty.g:6432:1: entryRuleNaturalLiteralExpression returns [EObject current=null] : iv_ruleNaturalLiteralExpression= ruleNaturalLiteralExpression EOF ;
+ public final EObject entryRuleNaturalLiteralExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNaturalLiteralExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:6433:2: (iv_ruleNaturalLiteralExpression= ruleNaturalLiteralExpression EOF )
+ // InternalAppliedStereotypeProperty.g:6434: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"
+ // InternalAppliedStereotypeProperty.g:6441: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 {
+ // InternalAppliedStereotypeProperty.g:6444:28: ( ( (lv_image_0_0= RULE_NATURAL_VALUE ) ) )
+ // InternalAppliedStereotypeProperty.g:6445:1: ( (lv_image_0_0= RULE_NATURAL_VALUE ) )
+ {
+ // InternalAppliedStereotypeProperty.g:6445:1: ( (lv_image_0_0= RULE_NATURAL_VALUE ) )
+ // InternalAppliedStereotypeProperty.g:6446:1: (lv_image_0_0= RULE_NATURAL_VALUE )
+ {
+ // InternalAppliedStereotypeProperty.g:6446:1: (lv_image_0_0= RULE_NATURAL_VALUE )
+ // InternalAppliedStereotypeProperty.g:6447: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"
+ // InternalAppliedStereotypeProperty.g:6471:1: entryRuleUnboundedLiteralExpression returns [EObject current=null] : iv_ruleUnboundedLiteralExpression= ruleUnboundedLiteralExpression EOF ;
+ public final EObject entryRuleUnboundedLiteralExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleUnboundedLiteralExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:6472:2: (iv_ruleUnboundedLiteralExpression= ruleUnboundedLiteralExpression EOF )
+ // InternalAppliedStereotypeProperty.g:6473: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"
+ // InternalAppliedStereotypeProperty.g:6480:1: ruleUnboundedLiteralExpression returns [EObject current=null] : ( () otherlv_1= '*' ) ;
+ public final EObject ruleUnboundedLiteralExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1 = null;
+
+ enterRule();
+
+ try {
+ // InternalAppliedStereotypeProperty.g:6483:28: ( ( () otherlv_1= '*' ) )
+ // InternalAppliedStereotypeProperty.g:6484:1: ( () otherlv_1= '*' )
+ {
+ // InternalAppliedStereotypeProperty.g:6484:1: ( () otherlv_1= '*' )
+ // InternalAppliedStereotypeProperty.g:6484:2: () otherlv_1= '*'
+ {
+ // InternalAppliedStereotypeProperty.g:6484:2: ()
+ // InternalAppliedStereotypeProperty.g:6485:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElement(
+ grammarAccess.getUnboundedLiteralExpressionAccess().getUnboundedLiteralExpressionAction_0(),
+ current);
+
+ }
+
+ }
+
+ otherlv_1 = (Token) match(input, 21, 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"
+ // InternalAppliedStereotypeProperty.g:6505:1: entryRuleStringLiteralExpression returns [EObject current=null] : iv_ruleStringLiteralExpression= ruleStringLiteralExpression EOF ;
+ public final EObject entryRuleStringLiteralExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleStringLiteralExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:6506:2: (iv_ruleStringLiteralExpression= ruleStringLiteralExpression EOF )
+ // InternalAppliedStereotypeProperty.g:6507: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"
+ // InternalAppliedStereotypeProperty.g:6514: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 {
+ // InternalAppliedStereotypeProperty.g:6517:28: ( ( (lv_image_0_0= RULE_STRING ) ) )
+ // InternalAppliedStereotypeProperty.g:6518:1: ( (lv_image_0_0= RULE_STRING ) )
+ {
+ // InternalAppliedStereotypeProperty.g:6518:1: ( (lv_image_0_0= RULE_STRING ) )
+ // InternalAppliedStereotypeProperty.g:6519:1: (lv_image_0_0= RULE_STRING )
+ {
+ // InternalAppliedStereotypeProperty.g:6519:1: (lv_image_0_0= RULE_STRING )
+ // InternalAppliedStereotypeProperty.g:6520: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"
+ // InternalAppliedStereotypeProperty.g:6544:1: entryRuleNameExpression returns [EObject current=null] : iv_ruleNameExpression= ruleNameExpression EOF ;
+ public final EObject entryRuleNameExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNameExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:6545:2: (iv_ruleNameExpression= ruleNameExpression EOF )
+ // InternalAppliedStereotypeProperty.g:6546: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"
+ // InternalAppliedStereotypeProperty.g:6553: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 {
+ // InternalAppliedStereotypeProperty.g:6556:28: ( ( (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName ) ) )
+ // InternalAppliedStereotypeProperty.g:6557:1: ( (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName ) )
+ {
+ // InternalAppliedStereotypeProperty.g:6557:1: ( (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:6558:1: (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:6558:1: (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName )
+ // InternalAppliedStereotypeProperty.g:6559: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"
+ // InternalAppliedStereotypeProperty.g:6583:1: entryRuleThisExpression returns [EObject current=null] : iv_ruleThisExpression= ruleThisExpression EOF ;
+ public final EObject entryRuleThisExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleThisExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:6584:2: (iv_ruleThisExpression= ruleThisExpression EOF )
+ // InternalAppliedStereotypeProperty.g:6585: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"
+ // InternalAppliedStereotypeProperty.g:6592: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 {
+ // InternalAppliedStereotypeProperty.g:6595:28: ( ( ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) ) | ( () otherlv_4= 'this' ) ) )
+ // InternalAppliedStereotypeProperty.g:6596:1: ( ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) ) | ( () otherlv_4= 'this' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:6596:1: ( ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) ) | ( () otherlv_4= 'this' ) )
+ int alt128 = 2;
+ int LA128_0 = input.LA(1);
+
+ if ((LA128_0 == 62)) {
+ int LA128_1 = input.LA(2);
+
+ if ((LA128_1 == 17)) {
+ alt128 = 1;
+ } else if ((LA128_1 == EOF || LA128_1 == 15 || (LA128_1 >= 18 && LA128_1 <= 19) || LA128_1 == 21 || LA128_1 == 23 || LA128_1 == 27 || LA128_1 == 33 || (LA128_1 >= 37 && LA128_1 <= 38) || LA128_1 == 46 || (LA128_1 >= 52 && LA128_1 <= 54)
+ || LA128_1 == 60 || (LA128_1 >= 70 && LA128_1 <= 71) || (LA128_1 >= 74 && LA128_1 <= 75) || (LA128_1 >= 77 && LA128_1 <= 104) || (LA128_1 >= 118 && LA128_1 <= 119))) {
+ alt128 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 128, 1, input);
+
+ throw nvae;
+ }
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 128, 0, input);
+
+ throw nvae;
+ }
+ switch (alt128) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:6596:2: ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:6596:2: ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) )
+ // InternalAppliedStereotypeProperty.g:6596:3: () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) )
+ {
+ // InternalAppliedStereotypeProperty.g:6596:3: ()
+ // InternalAppliedStereotypeProperty.g:6597:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElement(
+ grammarAccess.getThisExpressionAccess().getFeatureInvocationExpressionAction_0_0(),
+ current);
+
+ }
+
+ }
+
+ otherlv_1 = (Token) match(input, 62, FOLLOW_44);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getThisExpressionAccess().getThisKeyword_0_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:6609:1: ( (lv_tuple_2_0= ruleTuple ) )
+ // InternalAppliedStereotypeProperty.g:6610:1: (lv_tuple_2_0= ruleTuple )
+ {
+ // InternalAppliedStereotypeProperty.g:6610:1: (lv_tuple_2_0= ruleTuple )
+ // InternalAppliedStereotypeProperty.g:6611: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:
+ // InternalAppliedStereotypeProperty.g:6628:6: ( () otherlv_4= 'this' )
+ {
+ // InternalAppliedStereotypeProperty.g:6628:6: ( () otherlv_4= 'this' )
+ // InternalAppliedStereotypeProperty.g:6628:7: () otherlv_4= 'this'
+ {
+ // InternalAppliedStereotypeProperty.g:6628:7: ()
+ // InternalAppliedStereotypeProperty.g:6629: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"
+ // InternalAppliedStereotypeProperty.g:6649:1: entryRuleParenthesizedExpression returns [EObject current=null] : iv_ruleParenthesizedExpression= ruleParenthesizedExpression EOF ;
+ public final EObject entryRuleParenthesizedExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleParenthesizedExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:6650:2: (iv_ruleParenthesizedExpression= ruleParenthesizedExpression EOF )
+ // InternalAppliedStereotypeProperty.g:6651: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"
+ // InternalAppliedStereotypeProperty.g:6658: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 {
+ // InternalAppliedStereotypeProperty.g:6661:28: ( (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' ) )
+ // InternalAppliedStereotypeProperty.g:6662:1: (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' )
+ {
+ // InternalAppliedStereotypeProperty.g:6662:1: (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' )
+ // InternalAppliedStereotypeProperty.g:6662:3: otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')'
+ {
+ otherlv_0 = (Token) match(input, 17, 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, 18, 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"
+ // InternalAppliedStereotypeProperty.g:6690:1: entryRuleBehaviorInvocationExpression returns [EObject current=null] : iv_ruleBehaviorInvocationExpression= ruleBehaviorInvocationExpression EOF ;
+ public final EObject entryRuleBehaviorInvocationExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBehaviorInvocationExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:6691:2: (iv_ruleBehaviorInvocationExpression= ruleBehaviorInvocationExpression EOF )
+ // InternalAppliedStereotypeProperty.g:6692: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"
+ // InternalAppliedStereotypeProperty.g:6699: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 {
+ // InternalAppliedStereotypeProperty.g:6702:28: ( ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_tuple_1_0= ruleTuple ) ) ) )
+ // InternalAppliedStereotypeProperty.g:6703:1: ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_tuple_1_0= ruleTuple ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:6703:1: ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_tuple_1_0= ruleTuple ) ) )
+ // InternalAppliedStereotypeProperty.g:6703:2: ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_tuple_1_0= ruleTuple ) )
+ {
+ // InternalAppliedStereotypeProperty.g:6703:2: ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:6704:1: (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:6704:1: (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName )
+ // InternalAppliedStereotypeProperty.g:6705:3: lv_target_0_0= rulePotentiallyAmbiguousQualifiedName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getBehaviorInvocationExpressionAccess().getTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_44);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:6721:2: ( (lv_tuple_1_0= ruleTuple ) )
+ // InternalAppliedStereotypeProperty.g:6722:1: (lv_tuple_1_0= ruleTuple )
+ {
+ // InternalAppliedStereotypeProperty.g:6722:1: (lv_tuple_1_0= ruleTuple )
+ // InternalAppliedStereotypeProperty.g:6723: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"
+ // InternalAppliedStereotypeProperty.g:6747:1: entryRuleTuple returns [EObject current=null] : iv_ruleTuple= ruleTuple EOF ;
+ public final EObject entryRuleTuple() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleTuple = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:6748:2: (iv_ruleTuple= ruleTuple EOF )
+ // InternalAppliedStereotypeProperty.g:6749: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"
+ // InternalAppliedStereotypeProperty.g:6756: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 {
+ // InternalAppliedStereotypeProperty.g:6759:28: ( (otherlv_0= '(' (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' ) )
+ // InternalAppliedStereotypeProperty.g:6760:1: (otherlv_0= '(' (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' )
+ {
+ // InternalAppliedStereotypeProperty.g:6760:1: (otherlv_0= '(' (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' )
+ // InternalAppliedStereotypeProperty.g:6760:3: otherlv_0= '(' (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')'
+ {
+ otherlv_0 = (Token) match(input, 17, FOLLOW_70);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getTupleAccess().getLeftParenthesisKeyword_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:6764:1: (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList )
+ int alt129 = 2;
+ switch (input.LA(1)) {
+ case RULE_ID: {
+ int LA129_1 = input.LA(2);
+
+ if ((LA129_1 == 15 || (LA129_1 >= 17 && LA129_1 <= 19) || LA129_1 == 21 || (LA129_1 >= 26 && LA129_1 <= 27) || LA129_1 == 32 || (LA129_1 >= 37 && LA129_1 <= 38) || LA129_1 == 52 || LA129_1 == 60 || (LA129_1 >= 70 && LA129_1 <= 71)
+ || (LA129_1 >= 74 && LA129_1 <= 75) || (LA129_1 >= 77 && LA129_1 <= 104))) {
+ alt129 = 2;
+ } else if ((LA129_1 == 20)) {
+ alt129 = 1;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 129, 1, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_UNRESTRICTED_NAME: {
+ int LA129_2 = input.LA(2);
+
+ if ((LA129_2 == 15 || (LA129_2 >= 17 && LA129_2 <= 19) || LA129_2 == 21 || (LA129_2 >= 26 && LA129_2 <= 27) || LA129_2 == 32 || (LA129_2 >= 37 && LA129_2 <= 38) || LA129_2 == 52 || LA129_2 == 60 || (LA129_2 >= 70 && LA129_2 <= 71)
+ || (LA129_2 >= 74 && LA129_2 <= 75) || (LA129_2 >= 77 && LA129_2 <= 104))) {
+ alt129 = 2;
+ } else if ((LA129_2 == 20)) {
+ alt129 = 1;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 129, 2, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_BOOLEAN_VALUE:
+ case RULE_NATURAL_VALUE:
+ case RULE_STRING:
+ case 17:
+ case 18:
+ case 21:
+ case 51:
+ case 62:
+ case 63:
+ case 64:
+ case 69:
+ case 70:
+ case 71:
+ case 72:
+ case 73:
+ case 74:
+ case 75:
+ case 76: {
+ alt129 = 2;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 129, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt129) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:6765: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:
+ // InternalAppliedStereotypeProperty.g:6778: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, 18, 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"
+ // InternalAppliedStereotypeProperty.g:6801:1: entryRulePositionalTupleExpressionList returns [EObject current=null] : iv_rulePositionalTupleExpressionList= rulePositionalTupleExpressionList EOF ;
+ public final EObject entryRulePositionalTupleExpressionList() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePositionalTupleExpressionList = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:6802:2: (iv_rulePositionalTupleExpressionList= rulePositionalTupleExpressionList EOF )
+ // InternalAppliedStereotypeProperty.g:6803: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"
+ // InternalAppliedStereotypeProperty.g:6810: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 {
+ // InternalAppliedStereotypeProperty.g:6813:28: ( ( () ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )? ) )
+ // InternalAppliedStereotypeProperty.g:6814:1: ( () ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )? )
+ {
+ // InternalAppliedStereotypeProperty.g:6814:1: ( () ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )? )
+ // InternalAppliedStereotypeProperty.g:6814:2: () ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )?
+ {
+ // InternalAppliedStereotypeProperty.g:6814:2: ()
+ // InternalAppliedStereotypeProperty.g:6815:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElement(
+ grammarAccess.getPositionalTupleExpressionListAccess().getPositionalTupleAction_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:6823:2: ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )?
+ int alt131 = 2;
+ int LA131_0 = input.LA(1);
+
+ if (((LA131_0 >= RULE_BOOLEAN_VALUE && LA131_0 <= RULE_STRING) || (LA131_0 >= RULE_ID && LA131_0 <= RULE_UNRESTRICTED_NAME) || LA131_0 == 17 || LA131_0 == 21 || LA131_0 == 51 || (LA131_0 >= 62 && LA131_0 <= 64)
+ || (LA131_0 >= 69 && LA131_0 <= 76))) {
+ alt131 = 1;
+ }
+ switch (alt131) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:6823:3: ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )*
+ {
+ // InternalAppliedStereotypeProperty.g:6823:3: ( (lv_expression_1_0= ruleExpression ) )
+ // InternalAppliedStereotypeProperty.g:6824:1: (lv_expression_1_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:6824:1: (lv_expression_1_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:6825: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:6841:2: (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )*
+ loop130: do {
+ int alt130 = 2;
+ int LA130_0 = input.LA(1);
+
+ if ((LA130_0 == 19)) {
+ alt130 = 1;
+ }
+
+
+ switch (alt130) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:6841:4: otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) )
+ {
+ otherlv_2 = (Token) match(input, 19, FOLLOW_69);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getPositionalTupleExpressionListAccess().getCommaKeyword_1_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:6845:1: ( (lv_expression_3_0= ruleExpression ) )
+ // InternalAppliedStereotypeProperty.g:6846:1: (lv_expression_3_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:6846:1: (lv_expression_3_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:6847: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 loop130;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePositionalTupleExpressionList"
+
+
+ // $ANTLR start "entryRuleNamedTupleExpressionList"
+ // InternalAppliedStereotypeProperty.g:6871:1: entryRuleNamedTupleExpressionList returns [EObject current=null] : iv_ruleNamedTupleExpressionList= ruleNamedTupleExpressionList EOF ;
+ public final EObject entryRuleNamedTupleExpressionList() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNamedTupleExpressionList = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:6872:2: (iv_ruleNamedTupleExpressionList= ruleNamedTupleExpressionList EOF )
+ // InternalAppliedStereotypeProperty.g:6873: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"
+ // InternalAppliedStereotypeProperty.g:6880: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 {
+ // InternalAppliedStereotypeProperty.g:6883:28: ( ( ( (lv_namedExpression_0_0= ruleNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )* ) )
+ // InternalAppliedStereotypeProperty.g:6884:1: ( ( (lv_namedExpression_0_0= ruleNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:6884:1: ( ( (lv_namedExpression_0_0= ruleNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )* )
+ // InternalAppliedStereotypeProperty.g:6884:2: ( (lv_namedExpression_0_0= ruleNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )*
+ {
+ // InternalAppliedStereotypeProperty.g:6884:2: ( (lv_namedExpression_0_0= ruleNamedExpression ) )
+ // InternalAppliedStereotypeProperty.g:6885:1: (lv_namedExpression_0_0= ruleNamedExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:6885:1: (lv_namedExpression_0_0= ruleNamedExpression )
+ // InternalAppliedStereotypeProperty.g:6886: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:6902:2: (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )*
+ loop132: do {
+ int alt132 = 2;
+ int LA132_0 = input.LA(1);
+
+ if ((LA132_0 == 19)) {
+ alt132 = 1;
+ }
+
+
+ switch (alt132) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:6902:4: otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) )
+ {
+ otherlv_1 = (Token) match(input, 19, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getNamedTupleExpressionListAccess().getCommaKeyword_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:6906:1: ( (lv_namedExpression_2_0= ruleNamedExpression ) )
+ // InternalAppliedStereotypeProperty.g:6907:1: (lv_namedExpression_2_0= ruleNamedExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:6907:1: (lv_namedExpression_2_0= ruleNamedExpression )
+ // InternalAppliedStereotypeProperty.g:6908: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 loop132;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNamedTupleExpressionList"
+
+
+ // $ANTLR start "entryRuleNamedExpression"
+ // InternalAppliedStereotypeProperty.g:6932:1: entryRuleNamedExpression returns [EObject current=null] : iv_ruleNamedExpression= ruleNamedExpression EOF ;
+ public final EObject entryRuleNamedExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNamedExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:6933:2: (iv_ruleNamedExpression= ruleNamedExpression EOF )
+ // InternalAppliedStereotypeProperty.g:6934: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"
+ // InternalAppliedStereotypeProperty.g:6941: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 {
+ // InternalAppliedStereotypeProperty.g:6944:28: ( ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_expression_2_0= ruleExpression ) ) ) )
+ // InternalAppliedStereotypeProperty.g:6945:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_expression_2_0= ruleExpression ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:6945:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_expression_2_0= ruleExpression ) ) )
+ // InternalAppliedStereotypeProperty.g:6945:2: ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_expression_2_0= ruleExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:6945:2: ( (lv_name_0_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:6946:1: (lv_name_0_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:6946:1: (lv_name_0_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:6947: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, 20, FOLLOW_69);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getNamedExpressionAccess().getEqualsSignGreaterThanSignKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:6967:1: ( (lv_expression_2_0= ruleExpression ) )
+ // InternalAppliedStereotypeProperty.g:6968:1: (lv_expression_2_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:6968:1: (lv_expression_2_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:6969: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"
+ // InternalAppliedStereotypeProperty.g:6993:1: entryRuleSuperInvocationExpression returns [EObject current=null] : iv_ruleSuperInvocationExpression= ruleSuperInvocationExpression EOF ;
+ public final EObject entryRuleSuperInvocationExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSuperInvocationExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:6994:2: (iv_ruleSuperInvocationExpression= ruleSuperInvocationExpression EOF )
+ // InternalAppliedStereotypeProperty.g:6995: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"
+ // InternalAppliedStereotypeProperty.g:7002: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 {
+ // InternalAppliedStereotypeProperty.g:7005:28: ( (otherlv_0= 'super' (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )? ( (lv_tuple_3_0= ruleTuple ) ) ) )
+ // InternalAppliedStereotypeProperty.g:7006:1: (otherlv_0= 'super' (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )? ( (lv_tuple_3_0= ruleTuple ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:7006:1: (otherlv_0= 'super' (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )? ( (lv_tuple_3_0= ruleTuple ) ) )
+ // InternalAppliedStereotypeProperty.g:7006: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());
+
+ }
+ // InternalAppliedStereotypeProperty.g:7010:1: (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )?
+ int alt133 = 2;
+ int LA133_0 = input.LA(1);
+
+ if ((LA133_0 == 27)) {
+ alt133 = 1;
+ }
+ switch (alt133) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:7010:3: otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) )
+ {
+ otherlv_1 = (Token) match(input, 27, FOLLOW_4);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getSuperInvocationExpressionAccess().getFullStopKeyword_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:7014:1: ( (lv_target_2_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:7015:1: (lv_target_2_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:7015:1: (lv_target_2_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:7016:3: lv_target_2_0= ruleQualifiedName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getSuperInvocationExpressionAccess().getTargetQualifiedNameParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_44);
+ 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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:7032:4: ( (lv_tuple_3_0= ruleTuple ) )
+ // InternalAppliedStereotypeProperty.g:7033:1: (lv_tuple_3_0= ruleTuple )
+ {
+ // InternalAppliedStereotypeProperty.g:7033:1: (lv_tuple_3_0= ruleTuple )
+ // InternalAppliedStereotypeProperty.g:7034: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"
+ // InternalAppliedStereotypeProperty.g:7058:1: entryRuleInstanceCreationOrSequenceConstructionExpression returns [EObject current=null] : iv_ruleInstanceCreationOrSequenceConstructionExpression= ruleInstanceCreationOrSequenceConstructionExpression EOF ;
+ public final EObject entryRuleInstanceCreationOrSequenceConstructionExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleInstanceCreationOrSequenceConstructionExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:7059:2: (iv_ruleInstanceCreationOrSequenceConstructionExpression= ruleInstanceCreationOrSequenceConstructionExpression EOF )
+ // InternalAppliedStereotypeProperty.g:7060: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"
+ // InternalAppliedStereotypeProperty.g:7067: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 {
+ // InternalAppliedStereotypeProperty.g:7070: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 ) ) ) ) ) )
+ // InternalAppliedStereotypeProperty.g:7071: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 ) ) ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:7071: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 ) ) ) ) )
+ // InternalAppliedStereotypeProperty.g:7071: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());
+
+ }
+ // InternalAppliedStereotypeProperty.g:7075: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 alt136 = 2;
+ int LA136_0 = input.LA(1);
+
+ if ((LA136_0 == RULE_ID)) {
+ int LA136_1 = input.LA(2);
+
+ if ((synpred168_InternalAppliedStereotypeProperty())) {
+ alt136 = 1;
+ } else if ((true)) {
+ alt136 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 136, 1, input);
+
+ throw nvae;
+ }
+ } else if ((LA136_0 == RULE_UNRESTRICTED_NAME)) {
+ int LA136_2 = input.LA(2);
+
+ if ((synpred168_InternalAppliedStereotypeProperty())) {
+ alt136 = 1;
+ } else if ((true)) {
+ alt136 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 136, 2, input);
+
+ throw nvae;
+ }
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 136, 0, input);
+
+ throw nvae;
+ }
+ switch (alt136) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:7075:2: ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' )
+ {
+ // InternalAppliedStereotypeProperty.g:7075:2: ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' )
+ // InternalAppliedStereotypeProperty.g:7075:3: () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}'
+ {
+ // InternalAppliedStereotypeProperty.g:7075:3: ()
+ // InternalAppliedStereotypeProperty.g:7076:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElement(
+ grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getSequenceConstructionExpressionAction_1_0_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:7084:2: ( (lv_typeName_2_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:7085:1: (lv_typeName_2_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:7085:1: (lv_typeName_2_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:7086: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:7102:2: ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )?
+ int alt134 = 2;
+ int LA134_0 = input.LA(1);
+
+ if ((LA134_0 == 52)) {
+ alt134 = 1;
+ }
+ switch (alt134) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:7103:1: (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator )
+ {
+ // InternalAppliedStereotypeProperty.g:7103:1: (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator )
+ // InternalAppliedStereotypeProperty.g:7104:3: lv_hasMultiplicity_3_0= ruleMultiplicityIndicator
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_1_0_2_0());
+
+ }
+ pushFollow(FOLLOW_19);
+ 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, 32, FOLLOW_73);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_4, grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getLeftCurlyBracketKeyword_1_0_3());
+
+ }
+ // InternalAppliedStereotypeProperty.g:7124:1: ( (lv_elements_5_0= ruleSequenceElements ) )?
+ int alt135 = 2;
+ int LA135_0 = input.LA(1);
+
+ if (((LA135_0 >= RULE_BOOLEAN_VALUE && LA135_0 <= RULE_STRING) || (LA135_0 >= RULE_ID && LA135_0 <= RULE_UNRESTRICTED_NAME) || LA135_0 == 17 || LA135_0 == 21 || LA135_0 == 32 || LA135_0 == 51 || (LA135_0 >= 62 && LA135_0 <= 64)
+ || (LA135_0 >= 69 && LA135_0 <= 76))) {
+ alt135 = 1;
+ }
+ switch (alt135) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:7125:1: (lv_elements_5_0= ruleSequenceElements )
+ {
+ // InternalAppliedStereotypeProperty.g:7125:1: (lv_elements_5_0= ruleSequenceElements )
+ // InternalAppliedStereotypeProperty.g:7126: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, 33, FOLLOW_2);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_6, grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getRightCurlyBracketKeyword_1_0_5());
+
+ }
+
+ }
+
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:7147:6: ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:7147:6: ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) )
+ // InternalAppliedStereotypeProperty.g:7147:7: () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) )
+ {
+ // InternalAppliedStereotypeProperty.g:7147:7: ()
+ // InternalAppliedStereotypeProperty.g:7148:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElement(
+ grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getInstanceCreationExpressionAction_1_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:7156:2: ( (lv_constructor_8_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:7157:1: (lv_constructor_8_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:7157:1: (lv_constructor_8_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:7158:3: lv_constructor_8_0= ruleQualifiedName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getConstructorQualifiedNameParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_44);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:7174:2: ( (lv_tuple_9_0= ruleTuple ) )
+ // InternalAppliedStereotypeProperty.g:7175:1: (lv_tuple_9_0= ruleTuple )
+ {
+ // InternalAppliedStereotypeProperty.g:7175:1: (lv_tuple_9_0= ruleTuple )
+ // InternalAppliedStereotypeProperty.g:7176: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"
+ // InternalAppliedStereotypeProperty.g:7200:1: entryRuleLinkOperationExpression returns [EObject current=null] : iv_ruleLinkOperationExpression= ruleLinkOperationExpression EOF ;
+ public final EObject entryRuleLinkOperationExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleLinkOperationExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:7201:2: (iv_ruleLinkOperationExpression= ruleLinkOperationExpression EOF )
+ // InternalAppliedStereotypeProperty.g:7202: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"
+ // InternalAppliedStereotypeProperty.g:7209: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 {
+ // InternalAppliedStereotypeProperty.g:7212:28: ( ( ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' ( (lv_operation_2_0= ruleLinkOperation ) ) ( (lv_tuple_3_0= ruleLinkOperationTuple ) ) ) )
+ // InternalAppliedStereotypeProperty.g:7213:1: ( ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' ( (lv_operation_2_0= ruleLinkOperation ) ) ( (lv_tuple_3_0= ruleLinkOperationTuple ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:7213:1: ( ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' ( (lv_operation_2_0= ruleLinkOperation ) ) ( (lv_tuple_3_0= ruleLinkOperationTuple ) ) )
+ // InternalAppliedStereotypeProperty.g:7213:2: ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' ( (lv_operation_2_0= ruleLinkOperation ) ) ( (lv_tuple_3_0= ruleLinkOperationTuple ) )
+ {
+ // InternalAppliedStereotypeProperty.g:7213:2: ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:7214:1: (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:7214:1: (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName )
+ // InternalAppliedStereotypeProperty.g:7215:3: lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getLinkOperationExpressionAccess().getAssociationNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_18);
+ 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, 27, FOLLOW_75);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getLinkOperationExpressionAccess().getFullStopKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:7235:1: ( (lv_operation_2_0= ruleLinkOperation ) )
+ // InternalAppliedStereotypeProperty.g:7236:1: (lv_operation_2_0= ruleLinkOperation )
+ {
+ // InternalAppliedStereotypeProperty.g:7236:1: (lv_operation_2_0= ruleLinkOperation )
+ // InternalAppliedStereotypeProperty.g:7237:3: lv_operation_2_0= ruleLinkOperation
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getLinkOperationExpressionAccess().getOperationLinkOperationParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_44);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:7253:2: ( (lv_tuple_3_0= ruleLinkOperationTuple ) )
+ // InternalAppliedStereotypeProperty.g:7254:1: (lv_tuple_3_0= ruleLinkOperationTuple )
+ {
+ // InternalAppliedStereotypeProperty.g:7254:1: (lv_tuple_3_0= ruleLinkOperationTuple )
+ // InternalAppliedStereotypeProperty.g:7255: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"
+ // InternalAppliedStereotypeProperty.g:7279:1: entryRuleLinkOperation returns [String current=null] : iv_ruleLinkOperation= ruleLinkOperation EOF ;
+ public final String entryRuleLinkOperation() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleLinkOperation = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:7280:2: (iv_ruleLinkOperation= ruleLinkOperation EOF )
+ // InternalAppliedStereotypeProperty.g:7281: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"
+ // InternalAppliedStereotypeProperty.g:7288: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 {
+ // InternalAppliedStereotypeProperty.g:7291:28: ( (kw= 'createLink' | kw= 'destroyLink' | kw= 'clearAssoc' ) )
+ // InternalAppliedStereotypeProperty.g:7292:1: (kw= 'createLink' | kw= 'destroyLink' | kw= 'clearAssoc' )
+ {
+ // InternalAppliedStereotypeProperty.g:7292:1: (kw= 'createLink' | kw= 'destroyLink' | kw= 'clearAssoc' )
+ int alt137 = 3;
+ switch (input.LA(1)) {
+ case 65: {
+ alt137 = 1;
+ }
+ break;
+ case 66: {
+ alt137 = 2;
+ }
+ break;
+ case 67: {
+ alt137 = 3;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 137, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt137) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:7293: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:
+ // InternalAppliedStereotypeProperty.g:7300: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:
+ // InternalAppliedStereotypeProperty.g:7307: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"
+ // InternalAppliedStereotypeProperty.g:7320:1: entryRuleLinkOperationTuple returns [EObject current=null] : iv_ruleLinkOperationTuple= ruleLinkOperationTuple EOF ;
+ public final EObject entryRuleLinkOperationTuple() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleLinkOperationTuple = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:7321:2: (iv_ruleLinkOperationTuple= ruleLinkOperationTuple EOF )
+ // InternalAppliedStereotypeProperty.g:7322: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"
+ // InternalAppliedStereotypeProperty.g:7329: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 {
+ // InternalAppliedStereotypeProperty.g:7332:28: ( (otherlv_0= '(' (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' ) )
+ // InternalAppliedStereotypeProperty.g:7333:1: (otherlv_0= '(' (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' )
+ {
+ // InternalAppliedStereotypeProperty.g:7333:1: (otherlv_0= '(' (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' )
+ // InternalAppliedStereotypeProperty.g:7333:3: otherlv_0= '(' (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')'
+ {
+ otherlv_0 = (Token) match(input, 17, FOLLOW_70);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getLinkOperationTupleAccess().getLeftParenthesisKeyword_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:7337:1: (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList )
+ int alt138 = 2;
+ alt138 = dfa138.predict(input);
+ switch (alt138) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:7338: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:
+ // InternalAppliedStereotypeProperty.g:7351: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, 18, 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"
+ // InternalAppliedStereotypeProperty.g:7374:1: entryRuleIndexedNamedTupleExpressionList returns [EObject current=null] : iv_ruleIndexedNamedTupleExpressionList= ruleIndexedNamedTupleExpressionList EOF ;
+ public final EObject entryRuleIndexedNamedTupleExpressionList() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleIndexedNamedTupleExpressionList = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:7375:2: (iv_ruleIndexedNamedTupleExpressionList= ruleIndexedNamedTupleExpressionList EOF )
+ // InternalAppliedStereotypeProperty.g:7376: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"
+ // InternalAppliedStereotypeProperty.g:7383: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 {
+ // InternalAppliedStereotypeProperty.g:7386:28: ( ( ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )* ) )
+ // InternalAppliedStereotypeProperty.g:7387:1: ( ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:7387:1: ( ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )* )
+ // InternalAppliedStereotypeProperty.g:7387:2: ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )*
+ {
+ // InternalAppliedStereotypeProperty.g:7387:2: ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) )
+ // InternalAppliedStereotypeProperty.g:7388:1: (lv_namedExpression_0_0= ruleIndexedNamedExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:7388:1: (lv_namedExpression_0_0= ruleIndexedNamedExpression )
+ // InternalAppliedStereotypeProperty.g:7389: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:7405:2: (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )*
+ loop139: do {
+ int alt139 = 2;
+ int LA139_0 = input.LA(1);
+
+ if ((LA139_0 == 19)) {
+ alt139 = 1;
+ }
+
+
+ switch (alt139) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:7405:4: otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) )
+ {
+ otherlv_1 = (Token) match(input, 19, FOLLOW_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getIndexedNamedTupleExpressionListAccess().getCommaKeyword_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:7409:1: ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) )
+ // InternalAppliedStereotypeProperty.g:7410:1: (lv_namedExpression_2_0= ruleIndexedNamedExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:7410:1: (lv_namedExpression_2_0= ruleIndexedNamedExpression )
+ // InternalAppliedStereotypeProperty.g:7411: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 loop139;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleIndexedNamedTupleExpressionList"
+
+
+ // $ANTLR start "entryRuleIndexedNamedExpression"
+ // InternalAppliedStereotypeProperty.g:7435:1: entryRuleIndexedNamedExpression returns [EObject current=null] : iv_ruleIndexedNamedExpression= ruleIndexedNamedExpression EOF ;
+ public final EObject entryRuleIndexedNamedExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleIndexedNamedExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:7436:2: (iv_ruleIndexedNamedExpression= ruleIndexedNamedExpression EOF )
+ // InternalAppliedStereotypeProperty.g:7437: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"
+ // InternalAppliedStereotypeProperty.g:7444: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 {
+ // InternalAppliedStereotypeProperty.g:7447:28: ( ( ( (lv_name_0_0= ruleName ) ) ( (lv_index_1_0= ruleIndex ) )? otherlv_2= '=>' ( (lv_expression_3_0= ruleExpression ) ) ) )
+ // InternalAppliedStereotypeProperty.g:7448:1: ( ( (lv_name_0_0= ruleName ) ) ( (lv_index_1_0= ruleIndex ) )? otherlv_2= '=>' ( (lv_expression_3_0= ruleExpression ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:7448:1: ( ( (lv_name_0_0= ruleName ) ) ( (lv_index_1_0= ruleIndex ) )? otherlv_2= '=>' ( (lv_expression_3_0= ruleExpression ) ) )
+ // InternalAppliedStereotypeProperty.g:7448:2: ( (lv_name_0_0= ruleName ) ) ( (lv_index_1_0= ruleIndex ) )? otherlv_2= '=>' ( (lv_expression_3_0= ruleExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:7448:2: ( (lv_name_0_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:7449:1: (lv_name_0_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:7449:1: (lv_name_0_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:7450: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:7466:2: ( (lv_index_1_0= ruleIndex ) )?
+ int alt140 = 2;
+ int LA140_0 = input.LA(1);
+
+ if ((LA140_0 == 52)) {
+ alt140 = 1;
+ }
+ switch (alt140) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:7467:1: (lv_index_1_0= ruleIndex )
+ {
+ // InternalAppliedStereotypeProperty.g:7467:1: (lv_index_1_0= ruleIndex )
+ // InternalAppliedStereotypeProperty.g:7468: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, 20, FOLLOW_69);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getIndexedNamedExpressionAccess().getEqualsSignGreaterThanSignKeyword_2());
+
+ }
+ // InternalAppliedStereotypeProperty.g:7488:1: ( (lv_expression_3_0= ruleExpression ) )
+ // InternalAppliedStereotypeProperty.g:7489:1: (lv_expression_3_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:7489:1: (lv_expression_3_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:7490: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"
+ // InternalAppliedStereotypeProperty.g:7514:1: entryRuleClassExtentExpression returns [EObject current=null] : iv_ruleClassExtentExpression= ruleClassExtentExpression EOF ;
+ public final EObject entryRuleClassExtentExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassExtentExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:7515:2: (iv_ruleClassExtentExpression= ruleClassExtentExpression EOF )
+ // InternalAppliedStereotypeProperty.g:7516: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"
+ // InternalAppliedStereotypeProperty.g:7523: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 {
+ // InternalAppliedStereotypeProperty.g:7526:28: ( ( ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' otherlv_2= 'allInstances' otherlv_3= '(' otherlv_4= ')' ) )
+ // InternalAppliedStereotypeProperty.g:7527:1: ( ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' otherlv_2= 'allInstances' otherlv_3= '(' otherlv_4= ')' )
+ {
+ // InternalAppliedStereotypeProperty.g:7527:1: ( ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' otherlv_2= 'allInstances' otherlv_3= '(' otherlv_4= ')' )
+ // InternalAppliedStereotypeProperty.g:7527:2: ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' otherlv_2= 'allInstances' otherlv_3= '(' otherlv_4= ')'
+ {
+ // InternalAppliedStereotypeProperty.g:7527:2: ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:7528:1: (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:7528:1: (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName )
+ // InternalAppliedStereotypeProperty.g:7529:3: lv_className_0_0= rulePotentiallyAmbiguousQualifiedName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getClassExtentExpressionAccess().getClassNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_18);
+ 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, 27, 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_44);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getClassExtentExpressionAccess().getAllInstancesKeyword_2());
+
+ }
+ otherlv_3 = (Token) match(input, 17, FOLLOW_6);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_3, grammarAccess.getClassExtentExpressionAccess().getLeftParenthesisKeyword_3());
+
+ }
+ otherlv_4 = (Token) match(input, 18, 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"
+ // InternalAppliedStereotypeProperty.g:7569:1: entryRuleSequenceConstructionExpression returns [EObject current=null] : iv_ruleSequenceConstructionExpression= ruleSequenceConstructionExpression EOF ;
+ public final EObject entryRuleSequenceConstructionExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSequenceConstructionExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:7570:2: (iv_ruleSequenceConstructionExpression= ruleSequenceConstructionExpression EOF )
+ // InternalAppliedStereotypeProperty.g:7571: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"
+ // InternalAppliedStereotypeProperty.g:7578: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 {
+ // InternalAppliedStereotypeProperty.g:7581: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' ) ) ) )
+ // InternalAppliedStereotypeProperty.g:7582: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' ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:7582: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 alt144 = 2;
+ int LA144_0 = input.LA(1);
+
+ if (((LA144_0 >= RULE_ID && LA144_0 <= RULE_UNRESTRICTED_NAME) || LA144_0 == 51)) {
+ alt144 = 1;
+ } else if ((LA144_0 == 69)) {
+ alt144 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 144, 0, input);
+
+ throw nvae;
+ }
+ switch (alt144) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:7582: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= '}' )
+ {
+ // InternalAppliedStereotypeProperty.g:7582: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= '}' )
+ // InternalAppliedStereotypeProperty.g:7582: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= '}'
+ {
+ // InternalAppliedStereotypeProperty.g:7582:3: ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) )
+ int alt141 = 2;
+ int LA141_0 = input.LA(1);
+
+ if ((LA141_0 == 51)) {
+ alt141 = 1;
+ } else if (((LA141_0 >= RULE_ID && LA141_0 <= RULE_UNRESTRICTED_NAME))) {
+ alt141 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 141, 0, input);
+
+ throw nvae;
+ }
+ switch (alt141) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:7582:4: ( (lv_isAny_0_0= 'any' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:7582:4: ( (lv_isAny_0_0= 'any' ) )
+ // InternalAppliedStereotypeProperty.g:7583:1: (lv_isAny_0_0= 'any' )
+ {
+ // InternalAppliedStereotypeProperty.g:7583:1: (lv_isAny_0_0= 'any' )
+ // InternalAppliedStereotypeProperty.g:7584: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:
+ // InternalAppliedStereotypeProperty.g:7598:6: ( (lv_typeName_1_0= ruleQualifiedName ) )
+ {
+ // InternalAppliedStereotypeProperty.g:7598:6: ( (lv_typeName_1_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:7599:1: (lv_typeName_1_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:7599:1: (lv_typeName_1_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:7600: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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:7616:3: ( (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator ) )?
+ int alt142 = 2;
+ int LA142_0 = input.LA(1);
+
+ if ((LA142_0 == 52)) {
+ alt142 = 1;
+ }
+ switch (alt142) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:7617:1: (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator )
+ {
+ // InternalAppliedStereotypeProperty.g:7617:1: (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator )
+ // InternalAppliedStereotypeProperty.g:7618:3: lv_hasMultiplicity_2_0= ruleMultiplicityIndicator
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getSequenceConstructionExpressionAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_0());
+
+ }
+ pushFollow(FOLLOW_19);
+ 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, 32, FOLLOW_73);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_3, grammarAccess.getSequenceConstructionExpressionAccess().getLeftCurlyBracketKeyword_0_2());
+
+ }
+ // InternalAppliedStereotypeProperty.g:7638:1: ( (lv_elements_4_0= ruleSequenceElements ) )?
+ int alt143 = 2;
+ int LA143_0 = input.LA(1);
+
+ if (((LA143_0 >= RULE_BOOLEAN_VALUE && LA143_0 <= RULE_STRING) || (LA143_0 >= RULE_ID && LA143_0 <= RULE_UNRESTRICTED_NAME) || LA143_0 == 17 || LA143_0 == 21 || LA143_0 == 32 || LA143_0 == 51 || (LA143_0 >= 62 && LA143_0 <= 64)
+ || (LA143_0 >= 69 && LA143_0 <= 76))) {
+ alt143 = 1;
+ }
+ switch (alt143) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:7639:1: (lv_elements_4_0= ruleSequenceElements )
+ {
+ // InternalAppliedStereotypeProperty.g:7639:1: (lv_elements_4_0= ruleSequenceElements )
+ // InternalAppliedStereotypeProperty.g:7640: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, 33, FOLLOW_2);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_5, grammarAccess.getSequenceConstructionExpressionAccess().getRightCurlyBracketKeyword_0_4());
+
+ }
+
+ }
+
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:7661:6: ( (lv_hasMultiplicity_6_0= 'null' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:7661:6: ( (lv_hasMultiplicity_6_0= 'null' ) )
+ // InternalAppliedStereotypeProperty.g:7662:1: (lv_hasMultiplicity_6_0= 'null' )
+ {
+ // InternalAppliedStereotypeProperty.g:7662:1: (lv_hasMultiplicity_6_0= 'null' )
+ // InternalAppliedStereotypeProperty.g:7663: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"
+ // InternalAppliedStereotypeProperty.g:7684:1: entryRuleMultiplicityIndicator returns [String current=null] : iv_ruleMultiplicityIndicator= ruleMultiplicityIndicator EOF ;
+ public final String entryRuleMultiplicityIndicator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleMultiplicityIndicator = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:7685:2: (iv_ruleMultiplicityIndicator= ruleMultiplicityIndicator EOF )
+ // InternalAppliedStereotypeProperty.g:7686: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"
+ // InternalAppliedStereotypeProperty.g:7693:1: ruleMultiplicityIndicator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '[' kw= ']' ) ;
+ public final AntlrDatatypeRuleToken ruleMultiplicityIndicator() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw = null;
+
+ enterRule();
+
+ try {
+ // InternalAppliedStereotypeProperty.g:7696:28: ( (kw= '[' kw= ']' ) )
+ // InternalAppliedStereotypeProperty.g:7697:1: (kw= '[' kw= ']' )
+ {
+ // InternalAppliedStereotypeProperty.g:7697:1: (kw= '[' kw= ']' )
+ // InternalAppliedStereotypeProperty.g:7698: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"
+ // InternalAppliedStereotypeProperty.g:7717:1: entryRuleSequenceElements returns [EObject current=null] : iv_ruleSequenceElements= ruleSequenceElements EOF ;
+ public final EObject entryRuleSequenceElements() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSequenceElements = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:7718:2: (iv_ruleSequenceElements= ruleSequenceElements EOF )
+ // InternalAppliedStereotypeProperty.g:7719: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"
+ // InternalAppliedStereotypeProperty.g:7726: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 {
+ // InternalAppliedStereotypeProperty.g:7729:28: ( (this_SequenceRange_0= ruleSequenceRange | this_SequenceExpressionList_1= ruleSequenceExpressionList ) )
+ // InternalAppliedStereotypeProperty.g:7730:1: (this_SequenceRange_0= ruleSequenceRange | this_SequenceExpressionList_1= ruleSequenceExpressionList )
+ {
+ // InternalAppliedStereotypeProperty.g:7730:1: (this_SequenceRange_0= ruleSequenceRange | this_SequenceExpressionList_1= ruleSequenceExpressionList )
+ int alt145 = 2;
+ alt145 = dfa145.predict(input);
+ switch (alt145) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:7731: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:
+ // InternalAppliedStereotypeProperty.g:7744: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"
+ // InternalAppliedStereotypeProperty.g:7763:1: entryRuleSequenceRange returns [EObject current=null] : iv_ruleSequenceRange= ruleSequenceRange EOF ;
+ public final EObject entryRuleSequenceRange() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSequenceRange = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:7764:2: (iv_ruleSequenceRange= ruleSequenceRange EOF )
+ // InternalAppliedStereotypeProperty.g:7765: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"
+ // InternalAppliedStereotypeProperty.g:7772: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 {
+ // InternalAppliedStereotypeProperty.g:7775:28: ( ( ( (lv_rangeLower_0_0= ruleExpression ) ) otherlv_1= '..' ( (lv_rangeUpper_2_0= ruleExpression ) ) ) )
+ // InternalAppliedStereotypeProperty.g:7776:1: ( ( (lv_rangeLower_0_0= ruleExpression ) ) otherlv_1= '..' ( (lv_rangeUpper_2_0= ruleExpression ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:7776:1: ( ( (lv_rangeLower_0_0= ruleExpression ) ) otherlv_1= '..' ( (lv_rangeUpper_2_0= ruleExpression ) ) )
+ // InternalAppliedStereotypeProperty.g:7776:2: ( (lv_rangeLower_0_0= ruleExpression ) ) otherlv_1= '..' ( (lv_rangeUpper_2_0= ruleExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:7776:2: ( (lv_rangeLower_0_0= ruleExpression ) )
+ // InternalAppliedStereotypeProperty.g:7777:1: (lv_rangeLower_0_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:7777:1: (lv_rangeLower_0_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:7778: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());
+
+ }
+ // InternalAppliedStereotypeProperty.g:7798:1: ( (lv_rangeUpper_2_0= ruleExpression ) )
+ // InternalAppliedStereotypeProperty.g:7799:1: (lv_rangeUpper_2_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:7799:1: (lv_rangeUpper_2_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:7800: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"
+ // InternalAppliedStereotypeProperty.g:7824:1: entryRuleSequenceExpressionList returns [EObject current=null] : iv_ruleSequenceExpressionList= ruleSequenceExpressionList EOF ;
+ public final EObject entryRuleSequenceExpressionList() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSequenceExpressionList = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:7825:2: (iv_ruleSequenceExpressionList= ruleSequenceExpressionList EOF )
+ // InternalAppliedStereotypeProperty.g:7826: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"
+ // InternalAppliedStereotypeProperty.g:7833: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 {
+ // InternalAppliedStereotypeProperty.g:7836:28: ( ( ( (lv_element_0_0= ruleSequenceElement ) ) (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )* (otherlv_3= ',' )? ) )
+ // InternalAppliedStereotypeProperty.g:7837:1: ( ( (lv_element_0_0= ruleSequenceElement ) ) (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )* (otherlv_3= ',' )? )
+ {
+ // InternalAppliedStereotypeProperty.g:7837:1: ( ( (lv_element_0_0= ruleSequenceElement ) ) (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )* (otherlv_3= ',' )? )
+ // InternalAppliedStereotypeProperty.g:7837:2: ( (lv_element_0_0= ruleSequenceElement ) ) (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )* (otherlv_3= ',' )?
+ {
+ // InternalAppliedStereotypeProperty.g:7837:2: ( (lv_element_0_0= ruleSequenceElement ) )
+ // InternalAppliedStereotypeProperty.g:7838:1: (lv_element_0_0= ruleSequenceElement )
+ {
+ // InternalAppliedStereotypeProperty.g:7838:1: (lv_element_0_0= ruleSequenceElement )
+ // InternalAppliedStereotypeProperty.g:7839: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:7855:2: (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )*
+ loop146: do {
+ int alt146 = 2;
+ int LA146_0 = input.LA(1);
+
+ if ((LA146_0 == 19)) {
+ int LA146_1 = input.LA(2);
+
+ if (((LA146_1 >= RULE_BOOLEAN_VALUE && LA146_1 <= RULE_STRING) || (LA146_1 >= RULE_ID && LA146_1 <= RULE_UNRESTRICTED_NAME) || LA146_1 == 17 || LA146_1 == 21 || LA146_1 == 32 || LA146_1 == 51 || (LA146_1 >= 62 && LA146_1 <= 64)
+ || (LA146_1 >= 69 && LA146_1 <= 76))) {
+ alt146 = 1;
+ }
+
+
+ }
+
+
+ switch (alt146) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:7855:4: otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) )
+ {
+ otherlv_1 = (Token) match(input, 19, FOLLOW_3);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getSequenceExpressionListAccess().getCommaKeyword_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:7859:1: ( (lv_element_2_0= ruleSequenceElement ) )
+ // InternalAppliedStereotypeProperty.g:7860:1: (lv_element_2_0= ruleSequenceElement )
+ {
+ // InternalAppliedStereotypeProperty.g:7860:1: (lv_element_2_0= ruleSequenceElement )
+ // InternalAppliedStereotypeProperty.g:7861: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 loop146;
+ }
+ } while (true);
+
+ // InternalAppliedStereotypeProperty.g:7877:4: (otherlv_3= ',' )?
+ int alt147 = 2;
+ int LA147_0 = input.LA(1);
+
+ if ((LA147_0 == 19)) {
+ alt147 = 1;
+ }
+ switch (alt147) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:7877:6: otherlv_3= ','
+ {
+ otherlv_3 = (Token) match(input, 19, 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"
+ // InternalAppliedStereotypeProperty.g:7889:1: entryRuleSequenceElement returns [EObject current=null] : iv_ruleSequenceElement= ruleSequenceElement EOF ;
+ public final EObject entryRuleSequenceElement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSequenceElement = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:7890:2: (iv_ruleSequenceElement= ruleSequenceElement EOF )
+ // InternalAppliedStereotypeProperty.g:7891: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"
+ // InternalAppliedStereotypeProperty.g:7898: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 {
+ // InternalAppliedStereotypeProperty.g:7901:28: ( (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression ) )
+ // InternalAppliedStereotypeProperty.g:7902:1: (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:7902:1: (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression )
+ int alt148 = 2;
+ switch (input.LA(1)) {
+ case RULE_BOOLEAN_VALUE:
+ case RULE_NATURAL_VALUE:
+ case RULE_STRING:
+ case RULE_ID:
+ case RULE_UNRESTRICTED_NAME:
+ case 17:
+ case 21:
+ case 51:
+ case 62:
+ case 63:
+ case 69:
+ case 70:
+ case 71:
+ case 72:
+ case 73:
+ case 74:
+ case 75:
+ case 76: {
+ alt148 = 1;
+ }
+ break;
+ case 64: {
+ int LA148_2 = input.LA(2);
+
+ if (((LA148_2 >= RULE_ID && LA148_2 <= RULE_UNRESTRICTED_NAME))) {
+ alt148 = 1;
+ } else if ((LA148_2 == 32)) {
+ alt148 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 148, 2, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case 32: {
+ alt148 = 2;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 148, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt148) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:7903: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:
+ // InternalAppliedStereotypeProperty.g:7916: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"
+ // InternalAppliedStereotypeProperty.g:7935:1: entryRuleSequenceInitializationExpression returns [EObject current=null] : iv_ruleSequenceInitializationExpression= ruleSequenceInitializationExpression EOF ;
+ public final EObject entryRuleSequenceInitializationExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSequenceInitializationExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:7936:2: (iv_ruleSequenceInitializationExpression= ruleSequenceInitializationExpression EOF )
+ // InternalAppliedStereotypeProperty.g:7937: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"
+ // InternalAppliedStereotypeProperty.g:7944: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 {
+ // InternalAppliedStereotypeProperty.g:7947:28: ( ( (otherlv_0= 'new' )? otherlv_1= '{' ( (lv_elements_2_0= ruleSequenceElements ) ) otherlv_3= '}' ) )
+ // InternalAppliedStereotypeProperty.g:7948:1: ( (otherlv_0= 'new' )? otherlv_1= '{' ( (lv_elements_2_0= ruleSequenceElements ) ) otherlv_3= '}' )
+ {
+ // InternalAppliedStereotypeProperty.g:7948:1: ( (otherlv_0= 'new' )? otherlv_1= '{' ( (lv_elements_2_0= ruleSequenceElements ) ) otherlv_3= '}' )
+ // InternalAppliedStereotypeProperty.g:7948:2: (otherlv_0= 'new' )? otherlv_1= '{' ( (lv_elements_2_0= ruleSequenceElements ) ) otherlv_3= '}'
+ {
+ // InternalAppliedStereotypeProperty.g:7948:2: (otherlv_0= 'new' )?
+ int alt149 = 2;
+ int LA149_0 = input.LA(1);
+
+ if ((LA149_0 == 64)) {
+ alt149 = 1;
+ }
+ switch (alt149) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:7948:4: otherlv_0= 'new'
+ {
+ otherlv_0 = (Token) match(input, 64, FOLLOW_19);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getSequenceInitializationExpressionAccess().getNewKeyword_0());
+
+ }
+
+ }
+ break;
+
+ }
+
+ otherlv_1 = (Token) match(input, 32, FOLLOW_3);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getSequenceInitializationExpressionAccess().getLeftCurlyBracketKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:7956:1: ( (lv_elements_2_0= ruleSequenceElements ) )
+ // InternalAppliedStereotypeProperty.g:7957:1: (lv_elements_2_0= ruleSequenceElements )
+ {
+ // InternalAppliedStereotypeProperty.g:7957:1: (lv_elements_2_0= ruleSequenceElements )
+ // InternalAppliedStereotypeProperty.g:7958: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, 33, 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"
+ // InternalAppliedStereotypeProperty.g:7986:1: entryRuleIndex returns [EObject current=null] : iv_ruleIndex= ruleIndex EOF ;
+ public final EObject entryRuleIndex() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleIndex = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:7987:2: (iv_ruleIndex= ruleIndex EOF )
+ // InternalAppliedStereotypeProperty.g:7988: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"
+ // InternalAppliedStereotypeProperty.g:7995: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 {
+ // InternalAppliedStereotypeProperty.g:7998:28: ( (otherlv_0= '[' this_Expression_1= ruleExpression otherlv_2= ']' ) )
+ // InternalAppliedStereotypeProperty.g:7999:1: (otherlv_0= '[' this_Expression_1= ruleExpression otherlv_2= ']' )
+ {
+ // InternalAppliedStereotypeProperty.g:7999:1: (otherlv_0= '[' this_Expression_1= ruleExpression otherlv_2= ']' )
+ // InternalAppliedStereotypeProperty.g:7999: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"
+ // InternalAppliedStereotypeProperty.g:8027:1: entryRuleSequenceOperationOrReductionOrExpansionExpression returns [EObject current=null] : iv_ruleSequenceOperationOrReductionOrExpansionExpression= ruleSequenceOperationOrReductionOrExpansionExpression EOF ;
+ public final EObject entryRuleSequenceOperationOrReductionOrExpansionExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSequenceOperationOrReductionOrExpansionExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:8028:2: (iv_ruleSequenceOperationOrReductionOrExpansionExpression= ruleSequenceOperationOrReductionOrExpansionExpression EOF )
+ // InternalAppliedStereotypeProperty.g:8029: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"
+ // InternalAppliedStereotypeProperty.g:8036: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 {
+ // InternalAppliedStereotypeProperty.g:8039: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= ')' ) ) ) )
+ // InternalAppliedStereotypeProperty.g:8040: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= ')' ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8040: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= ')' ) ) )
+ // InternalAppliedStereotypeProperty.g:8040: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= ')' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8040:2: ()
+ // InternalAppliedStereotypeProperty.g:8041:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElement(
+ grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getExtentOrExpressionAction_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:8049:2: ( (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:8050:1: (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:8050:1: (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName )
+ // InternalAppliedStereotypeProperty.g:8051: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());
+
+ }
+ // InternalAppliedStereotypeProperty.g:8071: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 alt151 = 3;
+ switch (input.LA(1)) {
+ case RULE_ID: {
+ int LA151_1 = input.LA(2);
+
+ if ((LA151_1 == 17 || (LA151_1 >= 26 && LA151_1 <= 27) || LA151_1 == 37)) {
+ alt151 = 1;
+ } else if (((LA151_1 >= RULE_ID && LA151_1 <= RULE_UNRESTRICTED_NAME))) {
+ alt151 = 3;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 151, 1, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_UNRESTRICTED_NAME: {
+ alt151 = 1;
+ }
+ break;
+ case 61: {
+ alt151 = 2;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 151, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt151) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:8071:2: ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8071:2: ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) )
+ // InternalAppliedStereotypeProperty.g:8071:3: () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8071:3: ()
+ // InternalAppliedStereotypeProperty.g:8072:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceOperationExpressionPrimaryAction_3_0_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:8080:2: ( (lv_operation_4_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:8081:1: (lv_operation_4_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:8081:1: (lv_operation_4_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:8082:3: lv_operation_4_0= ruleQualifiedName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getOperationQualifiedNameParserRuleCall_3_0_1_0());
+
+ }
+ pushFollow(FOLLOW_44);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:8098:2: ( (lv_tuple_5_0= ruleTuple ) )
+ // InternalAppliedStereotypeProperty.g:8099:1: (lv_tuple_5_0= ruleTuple )
+ {
+ // InternalAppliedStereotypeProperty.g:8099:1: (lv_tuple_5_0= ruleTuple )
+ // InternalAppliedStereotypeProperty.g:8100: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:
+ // InternalAppliedStereotypeProperty.g:8117:6: ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8117:6: ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) )
+ // InternalAppliedStereotypeProperty.g:8117:7: () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8117:7: ()
+ // InternalAppliedStereotypeProperty.g:8118: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());
+
+ }
+ // InternalAppliedStereotypeProperty.g:8130:1: ( (lv_isOrdered_8_0= 'ordered' ) )?
+ int alt150 = 2;
+ int LA150_0 = input.LA(1);
+
+ if ((LA150_0 == 55)) {
+ alt150 = 1;
+ }
+ switch (alt150) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:8131:1: (lv_isOrdered_8_0= 'ordered' )
+ {
+ // InternalAppliedStereotypeProperty.g:8131:1: (lv_isOrdered_8_0= 'ordered' )
+ // InternalAppliedStereotypeProperty.g:8132: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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:8145:3: ( (lv_behaviorName_9_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:8146:1: (lv_behaviorName_9_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:8146:1: (lv_behaviorName_9_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:8147: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:
+ // InternalAppliedStereotypeProperty.g:8164:6: ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' )
+ {
+ // InternalAppliedStereotypeProperty.g:8164:6: ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' )
+ // InternalAppliedStereotypeProperty.g:8164:7: () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')'
+ {
+ // InternalAppliedStereotypeProperty.g:8164:7: ()
+ // InternalAppliedStereotypeProperty.g:8165:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceExpansionExpressionPrimaryAction_3_2_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:8173:2: ( (lv_operation_11_0= RULE_ID ) )
+ // InternalAppliedStereotypeProperty.g:8174:1: (lv_operation_11_0= RULE_ID )
+ {
+ // InternalAppliedStereotypeProperty.g:8174:1: (lv_operation_11_0= RULE_ID )
+ // InternalAppliedStereotypeProperty.g:8175:3: lv_operation_11_0= RULE_ID
+ {
+ lv_operation_11_0 = (Token) match(input, RULE_ID, FOLLOW_14);
+ 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");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:8191:2: ( (lv_variable_12_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:8192:1: (lv_variable_12_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:8192:1: (lv_variable_12_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:8193:3: lv_variable_12_0= ruleName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getVariableNameParserRuleCall_3_2_2_0());
+
+ }
+ pushFollow(FOLLOW_44);
+ 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, 17, FOLLOW_69);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_13, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getLeftParenthesisKeyword_3_2_3());
+
+ }
+ // InternalAppliedStereotypeProperty.g:8213:1: ( (lv_argument_14_0= ruleExpression ) )
+ // InternalAppliedStereotypeProperty.g:8214:1: (lv_argument_14_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:8214:1: (lv_argument_14_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:8215: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, 18, 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"
+ // InternalAppliedStereotypeProperty.g:8243:1: entryRulePrefixExpression returns [EObject current=null] : iv_rulePrefixExpression= rulePrefixExpression EOF ;
+ public final EObject entryRulePrefixExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePrefixExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:8244:2: (iv_rulePrefixExpression= rulePrefixExpression EOF )
+ // InternalAppliedStereotypeProperty.g:8245: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"
+ // InternalAppliedStereotypeProperty.g:8252: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 {
+ // InternalAppliedStereotypeProperty.g:8255:28: ( ( ( (lv_operator_0_0= ruleAffixOperator ) ) ( (lv_operand_1_0= ruleLeftHandSide ) ) ) )
+ // InternalAppliedStereotypeProperty.g:8256:1: ( ( (lv_operator_0_0= ruleAffixOperator ) ) ( (lv_operand_1_0= ruleLeftHandSide ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8256:1: ( ( (lv_operator_0_0= ruleAffixOperator ) ) ( (lv_operand_1_0= ruleLeftHandSide ) ) )
+ // InternalAppliedStereotypeProperty.g:8256:2: ( (lv_operator_0_0= ruleAffixOperator ) ) ( (lv_operand_1_0= ruleLeftHandSide ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8256:2: ( (lv_operator_0_0= ruleAffixOperator ) )
+ // InternalAppliedStereotypeProperty.g:8257:1: (lv_operator_0_0= ruleAffixOperator )
+ {
+ // InternalAppliedStereotypeProperty.g:8257:1: (lv_operator_0_0= ruleAffixOperator )
+ // InternalAppliedStereotypeProperty.g:8258: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:8274:2: ( (lv_operand_1_0= ruleLeftHandSide ) )
+ // InternalAppliedStereotypeProperty.g:8275:1: (lv_operand_1_0= ruleLeftHandSide )
+ {
+ // InternalAppliedStereotypeProperty.g:8275:1: (lv_operand_1_0= ruleLeftHandSide )
+ // InternalAppliedStereotypeProperty.g:8276: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"
+ // InternalAppliedStereotypeProperty.g:8300:1: entryRuleAffixOperator returns [String current=null] : iv_ruleAffixOperator= ruleAffixOperator EOF ;
+ public final String entryRuleAffixOperator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleAffixOperator = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:8301:2: (iv_ruleAffixOperator= ruleAffixOperator EOF )
+ // InternalAppliedStereotypeProperty.g:8302: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"
+ // InternalAppliedStereotypeProperty.g:8309:1: ruleAffixOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '++' | kw= '--' ) ;
+ public final AntlrDatatypeRuleToken ruleAffixOperator() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw = null;
+
+ enterRule();
+
+ try {
+ // InternalAppliedStereotypeProperty.g:8312:28: ( (kw= '++' | kw= '--' ) )
+ // InternalAppliedStereotypeProperty.g:8313:1: (kw= '++' | kw= '--' )
+ {
+ // InternalAppliedStereotypeProperty.g:8313:1: (kw= '++' | kw= '--' )
+ int alt152 = 2;
+ int LA152_0 = input.LA(1);
+
+ if ((LA152_0 == 70)) {
+ alt152 = 1;
+ } else if ((LA152_0 == 71)) {
+ alt152 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 152, 0, input);
+
+ throw nvae;
+ }
+ switch (alt152) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:8314: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:
+ // InternalAppliedStereotypeProperty.g:8321: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"
+ // InternalAppliedStereotypeProperty.g:8334:1: entryRuleUnaryExpression returns [EObject current=null] : iv_ruleUnaryExpression= ruleUnaryExpression EOF ;
+ public final EObject entryRuleUnaryExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleUnaryExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:8335:2: (iv_ruleUnaryExpression= ruleUnaryExpression EOF )
+ // InternalAppliedStereotypeProperty.g:8336: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"
+ // InternalAppliedStereotypeProperty.g:8343: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 {
+ // InternalAppliedStereotypeProperty.g:8346:28: ( (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_NonPostfixNonCastUnaryExpression_1= ruleNonPostfixNonCastUnaryExpression ) )
+ // InternalAppliedStereotypeProperty.g:8347:1: (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_NonPostfixNonCastUnaryExpression_1= ruleNonPostfixNonCastUnaryExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:8347:1: (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_NonPostfixNonCastUnaryExpression_1= ruleNonPostfixNonCastUnaryExpression )
+ int alt153 = 2;
+ int LA153_0 = input.LA(1);
+
+ if (((LA153_0 >= RULE_BOOLEAN_VALUE && LA153_0 <= RULE_STRING) || (LA153_0 >= RULE_ID && LA153_0 <= RULE_UNRESTRICTED_NAME) || LA153_0 == 17 || LA153_0 == 21 || LA153_0 == 51 || (LA153_0 >= 62 && LA153_0 <= 64) || LA153_0 == 69)) {
+ alt153 = 1;
+ } else if (((LA153_0 >= 70 && LA153_0 <= 76))) {
+ alt153 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 153, 0, input);
+
+ throw nvae;
+ }
+ switch (alt153) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:8348: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:
+ // InternalAppliedStereotypeProperty.g:8361: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"
+ // InternalAppliedStereotypeProperty.g:8380:1: entryRulePostfixOrCastExpression returns [EObject current=null] : iv_rulePostfixOrCastExpression= rulePostfixOrCastExpression EOF ;
+ public final EObject entryRulePostfixOrCastExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePostfixOrCastExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:8381:2: (iv_rulePostfixOrCastExpression= rulePostfixOrCastExpression EOF )
+ // InternalAppliedStereotypeProperty.g:8382: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"
+ // InternalAppliedStereotypeProperty.g:8389: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 {
+ // InternalAppliedStereotypeProperty.g:8392:28: ( (this_PostfixExpression_0= rulePostfixExpression | this_CastExpression_1= ruleCastExpression | this_PrimaryExpression_2= rulePrimaryExpression ) )
+ // InternalAppliedStereotypeProperty.g:8393:1: (this_PostfixExpression_0= rulePostfixExpression | this_CastExpression_1= ruleCastExpression | this_PrimaryExpression_2= rulePrimaryExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:8393:1: (this_PostfixExpression_0= rulePostfixExpression | this_CastExpression_1= ruleCastExpression | this_PrimaryExpression_2= rulePrimaryExpression )
+ int alt154 = 3;
+ alt154 = dfa154.predict(input);
+ switch (alt154) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:8394: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:
+ // InternalAppliedStereotypeProperty.g:8407: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:
+ // InternalAppliedStereotypeProperty.g:8420: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"
+ // InternalAppliedStereotypeProperty.g:8439:1: entryRulePostfixExpression returns [EObject current=null] : iv_rulePostfixExpression= rulePostfixExpression EOF ;
+ public final EObject entryRulePostfixExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePostfixExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:8440:2: (iv_rulePostfixExpression= rulePostfixExpression EOF )
+ // InternalAppliedStereotypeProperty.g:8441: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"
+ // InternalAppliedStereotypeProperty.g:8448: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 {
+ // InternalAppliedStereotypeProperty.g:8451:28: ( ( ( (lv_operand_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAffixOperator ) ) ) )
+ // InternalAppliedStereotypeProperty.g:8452:1: ( ( (lv_operand_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAffixOperator ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8452:1: ( ( (lv_operand_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAffixOperator ) ) )
+ // InternalAppliedStereotypeProperty.g:8452:2: ( (lv_operand_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAffixOperator ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8452:2: ( (lv_operand_0_0= ruleLeftHandSide ) )
+ // InternalAppliedStereotypeProperty.g:8453:1: (lv_operand_0_0= ruleLeftHandSide )
+ {
+ // InternalAppliedStereotypeProperty.g:8453:1: (lv_operand_0_0= ruleLeftHandSide )
+ // InternalAppliedStereotypeProperty.g:8454: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:8470:2: ( (lv_operator_1_0= ruleAffixOperator ) )
+ // InternalAppliedStereotypeProperty.g:8471:1: (lv_operator_1_0= ruleAffixOperator )
+ {
+ // InternalAppliedStereotypeProperty.g:8471:1: (lv_operator_1_0= ruleAffixOperator )
+ // InternalAppliedStereotypeProperty.g:8472: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"
+ // InternalAppliedStereotypeProperty.g:8496:1: entryRuleNonPostfixNonCastUnaryExpression returns [EObject current=null] : iv_ruleNonPostfixNonCastUnaryExpression= ruleNonPostfixNonCastUnaryExpression EOF ;
+ public final EObject entryRuleNonPostfixNonCastUnaryExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNonPostfixNonCastUnaryExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:8497:2: (iv_ruleNonPostfixNonCastUnaryExpression= ruleNonPostfixNonCastUnaryExpression EOF )
+ // InternalAppliedStereotypeProperty.g:8498: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"
+ // InternalAppliedStereotypeProperty.g:8505: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 {
+ // InternalAppliedStereotypeProperty.g:8508:28: ( (this_PrefixExpression_0= rulePrefixExpression | this_NumericUnaryExpression_1= ruleNumericUnaryExpression | this_BooleanUnaryExpression_2= ruleBooleanUnaryExpression |
+ // this_BitStringUnaryExpression_3= ruleBitStringUnaryExpression | this_IsolationExpression_4= ruleIsolationExpression ) )
+ // InternalAppliedStereotypeProperty.g:8509:1: (this_PrefixExpression_0= rulePrefixExpression | this_NumericUnaryExpression_1= ruleNumericUnaryExpression | this_BooleanUnaryExpression_2= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_3=
+ // ruleBitStringUnaryExpression | this_IsolationExpression_4= ruleIsolationExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:8509:1: (this_PrefixExpression_0= rulePrefixExpression | this_NumericUnaryExpression_1= ruleNumericUnaryExpression | this_BooleanUnaryExpression_2= ruleBooleanUnaryExpression |
+ // this_BitStringUnaryExpression_3= ruleBitStringUnaryExpression | this_IsolationExpression_4= ruleIsolationExpression )
+ int alt155 = 5;
+ switch (input.LA(1)) {
+ case 70:
+ case 71: {
+ alt155 = 1;
+ }
+ break;
+ case 74:
+ case 75: {
+ alt155 = 2;
+ }
+ break;
+ case 72: {
+ alt155 = 3;
+ }
+ break;
+ case 73: {
+ alt155 = 4;
+ }
+ break;
+ case 76: {
+ alt155 = 5;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 155, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt155) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:8510: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:
+ // InternalAppliedStereotypeProperty.g:8523: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:
+ // InternalAppliedStereotypeProperty.g:8536: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:
+ // InternalAppliedStereotypeProperty.g:8549: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:
+ // InternalAppliedStereotypeProperty.g:8562: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"
+ // InternalAppliedStereotypeProperty.g:8581:1: entryRuleBooleanUnaryExpression returns [EObject current=null] : iv_ruleBooleanUnaryExpression= ruleBooleanUnaryExpression EOF ;
+ public final EObject entryRuleBooleanUnaryExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBooleanUnaryExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:8582:2: (iv_ruleBooleanUnaryExpression= ruleBooleanUnaryExpression EOF )
+ // InternalAppliedStereotypeProperty.g:8583: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"
+ // InternalAppliedStereotypeProperty.g:8590: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 {
+ // InternalAppliedStereotypeProperty.g:8593:28: ( ( ( (lv_operator_0_0= '!' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) )
+ // InternalAppliedStereotypeProperty.g:8594:1: ( ( (lv_operator_0_0= '!' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8594:1: ( ( (lv_operator_0_0= '!' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
+ // InternalAppliedStereotypeProperty.g:8594:2: ( (lv_operator_0_0= '!' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8594:2: ( (lv_operator_0_0= '!' ) )
+ // InternalAppliedStereotypeProperty.g:8595:1: (lv_operator_0_0= '!' )
+ {
+ // InternalAppliedStereotypeProperty.g:8595:1: (lv_operator_0_0= '!' )
+ // InternalAppliedStereotypeProperty.g:8596: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, "!");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:8609:2: ( (lv_operand_1_0= ruleUnaryExpression ) )
+ // InternalAppliedStereotypeProperty.g:8610:1: (lv_operand_1_0= ruleUnaryExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:8610:1: (lv_operand_1_0= ruleUnaryExpression )
+ // InternalAppliedStereotypeProperty.g:8611: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"
+ // InternalAppliedStereotypeProperty.g:8635:1: entryRuleBitStringUnaryExpression returns [EObject current=null] : iv_ruleBitStringUnaryExpression= ruleBitStringUnaryExpression EOF ;
+ public final EObject entryRuleBitStringUnaryExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBitStringUnaryExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:8636:2: (iv_ruleBitStringUnaryExpression= ruleBitStringUnaryExpression EOF )
+ // InternalAppliedStereotypeProperty.g:8637: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"
+ // InternalAppliedStereotypeProperty.g:8644: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 {
+ // InternalAppliedStereotypeProperty.g:8647:28: ( ( ( (lv_operator_0_0= '~' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) )
+ // InternalAppliedStereotypeProperty.g:8648:1: ( ( (lv_operator_0_0= '~' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8648:1: ( ( (lv_operator_0_0= '~' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
+ // InternalAppliedStereotypeProperty.g:8648:2: ( (lv_operator_0_0= '~' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8648:2: ( (lv_operator_0_0= '~' ) )
+ // InternalAppliedStereotypeProperty.g:8649:1: (lv_operator_0_0= '~' )
+ {
+ // InternalAppliedStereotypeProperty.g:8649:1: (lv_operator_0_0= '~' )
+ // InternalAppliedStereotypeProperty.g:8650: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, "~");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:8663:2: ( (lv_operand_1_0= ruleUnaryExpression ) )
+ // InternalAppliedStereotypeProperty.g:8664:1: (lv_operand_1_0= ruleUnaryExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:8664:1: (lv_operand_1_0= ruleUnaryExpression )
+ // InternalAppliedStereotypeProperty.g:8665: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"
+ // InternalAppliedStereotypeProperty.g:8689:1: entryRuleNumericUnaryExpression returns [EObject current=null] : iv_ruleNumericUnaryExpression= ruleNumericUnaryExpression EOF ;
+ public final EObject entryRuleNumericUnaryExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNumericUnaryExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:8690:2: (iv_ruleNumericUnaryExpression= ruleNumericUnaryExpression EOF )
+ // InternalAppliedStereotypeProperty.g:8691: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"
+ // InternalAppliedStereotypeProperty.g:8698: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 {
+ // InternalAppliedStereotypeProperty.g:8701:28: ( ( ( (lv_operator_0_0= ruleNumericUnaryOperator ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) )
+ // InternalAppliedStereotypeProperty.g:8702:1: ( ( (lv_operator_0_0= ruleNumericUnaryOperator ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8702:1: ( ( (lv_operator_0_0= ruleNumericUnaryOperator ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
+ // InternalAppliedStereotypeProperty.g:8702:2: ( (lv_operator_0_0= ruleNumericUnaryOperator ) ) ( (lv_operand_1_0= ruleUnaryExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8702:2: ( (lv_operator_0_0= ruleNumericUnaryOperator ) )
+ // InternalAppliedStereotypeProperty.g:8703:1: (lv_operator_0_0= ruleNumericUnaryOperator )
+ {
+ // InternalAppliedStereotypeProperty.g:8703:1: (lv_operator_0_0= ruleNumericUnaryOperator )
+ // InternalAppliedStereotypeProperty.g:8704: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:8720:2: ( (lv_operand_1_0= ruleUnaryExpression ) )
+ // InternalAppliedStereotypeProperty.g:8721:1: (lv_operand_1_0= ruleUnaryExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:8721:1: (lv_operand_1_0= ruleUnaryExpression )
+ // InternalAppliedStereotypeProperty.g:8722: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"
+ // InternalAppliedStereotypeProperty.g:8746:1: entryRuleNumericUnaryOperator returns [String current=null] : iv_ruleNumericUnaryOperator= ruleNumericUnaryOperator EOF ;
+ public final String entryRuleNumericUnaryOperator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleNumericUnaryOperator = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:8747:2: (iv_ruleNumericUnaryOperator= ruleNumericUnaryOperator EOF )
+ // InternalAppliedStereotypeProperty.g:8748: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"
+ // InternalAppliedStereotypeProperty.g:8755:1: ruleNumericUnaryOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+' | kw= '-' ) ;
+ public final AntlrDatatypeRuleToken ruleNumericUnaryOperator() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw = null;
+
+ enterRule();
+
+ try {
+ // InternalAppliedStereotypeProperty.g:8758:28: ( (kw= '+' | kw= '-' ) )
+ // InternalAppliedStereotypeProperty.g:8759:1: (kw= '+' | kw= '-' )
+ {
+ // InternalAppliedStereotypeProperty.g:8759:1: (kw= '+' | kw= '-' )
+ int alt156 = 2;
+ int LA156_0 = input.LA(1);
+
+ if ((LA156_0 == 74)) {
+ alt156 = 1;
+ } else if ((LA156_0 == 75)) {
+ 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:
+ // InternalAppliedStereotypeProperty.g:8760: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:
+ // InternalAppliedStereotypeProperty.g:8767: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"
+ // InternalAppliedStereotypeProperty.g:8780:1: entryRuleIsolationExpression returns [EObject current=null] : iv_ruleIsolationExpression= ruleIsolationExpression EOF ;
+ public final EObject entryRuleIsolationExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleIsolationExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:8781:2: (iv_ruleIsolationExpression= ruleIsolationExpression EOF )
+ // InternalAppliedStereotypeProperty.g:8782: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"
+ // InternalAppliedStereotypeProperty.g:8789: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 {
+ // InternalAppliedStereotypeProperty.g:8792:28: ( ( ( (lv_operator_0_0= '$' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) )
+ // InternalAppliedStereotypeProperty.g:8793:1: ( ( (lv_operator_0_0= '$' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8793:1: ( ( (lv_operator_0_0= '$' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
+ // InternalAppliedStereotypeProperty.g:8793:2: ( (lv_operator_0_0= '$' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8793:2: ( (lv_operator_0_0= '$' ) )
+ // InternalAppliedStereotypeProperty.g:8794:1: (lv_operator_0_0= '$' )
+ {
+ // InternalAppliedStereotypeProperty.g:8794:1: (lv_operator_0_0= '$' )
+ // InternalAppliedStereotypeProperty.g:8795: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, "$");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:8808:2: ( (lv_operand_1_0= ruleUnaryExpression ) )
+ // InternalAppliedStereotypeProperty.g:8809:1: (lv_operand_1_0= ruleUnaryExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:8809:1: (lv_operand_1_0= ruleUnaryExpression )
+ // InternalAppliedStereotypeProperty.g:8810: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"
+ // InternalAppliedStereotypeProperty.g:8834:1: entryRuleCastExpression returns [EObject current=null] : iv_ruleCastExpression= ruleCastExpression EOF ;
+ public final EObject entryRuleCastExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleCastExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:8835:2: (iv_ruleCastExpression= ruleCastExpression EOF )
+ // InternalAppliedStereotypeProperty.g:8836: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"
+ // InternalAppliedStereotypeProperty.g:8843: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 {
+ // InternalAppliedStereotypeProperty.g:8846:28: ( (otherlv_0= '(' ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) ) otherlv_3= ')' ( (lv_operand_4_0= ruleCastCompletion ) ) ) )
+ // InternalAppliedStereotypeProperty.g:8847:1: (otherlv_0= '(' ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) ) otherlv_3= ')' ( (lv_operand_4_0= ruleCastCompletion ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8847:1: (otherlv_0= '(' ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) ) otherlv_3= ')' ( (lv_operand_4_0= ruleCastCompletion ) ) )
+ // InternalAppliedStereotypeProperty.g:8847: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, 17, FOLLOW_4);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getCastExpressionAccess().getLeftParenthesisKeyword_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:8851:1: ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) )
+ int alt157 = 2;
+ int LA157_0 = input.LA(1);
+
+ if ((LA157_0 == 51)) {
+ alt157 = 1;
+ } else if (((LA157_0 >= RULE_ID && LA157_0 <= RULE_UNRESTRICTED_NAME))) {
+ 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:
+ // InternalAppliedStereotypeProperty.g:8851:2: ( (lv_isAny_1_0= 'any' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8851:2: ( (lv_isAny_1_0= 'any' ) )
+ // InternalAppliedStereotypeProperty.g:8852:1: (lv_isAny_1_0= 'any' )
+ {
+ // InternalAppliedStereotypeProperty.g:8852:1: (lv_isAny_1_0= 'any' )
+ // InternalAppliedStereotypeProperty.g:8853: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:
+ // InternalAppliedStereotypeProperty.g:8867:6: ( (lv_typeName_2_0= ruleQualifiedName ) )
+ {
+ // InternalAppliedStereotypeProperty.g:8867:6: ( (lv_typeName_2_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:8868:1: (lv_typeName_2_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:8868:1: (lv_typeName_2_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:8869: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, 18, FOLLOW_69);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_3, grammarAccess.getCastExpressionAccess().getRightParenthesisKeyword_2());
+
+ }
+ // InternalAppliedStereotypeProperty.g:8889:1: ( (lv_operand_4_0= ruleCastCompletion ) )
+ // InternalAppliedStereotypeProperty.g:8890:1: (lv_operand_4_0= ruleCastCompletion )
+ {
+ // InternalAppliedStereotypeProperty.g:8890:1: (lv_operand_4_0= ruleCastCompletion )
+ // InternalAppliedStereotypeProperty.g:8891: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"
+ // InternalAppliedStereotypeProperty.g:8915:1: entryRuleCastCompletion returns [EObject current=null] : iv_ruleCastCompletion= ruleCastCompletion EOF ;
+ public final EObject entryRuleCastCompletion() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleCastCompletion = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:8916:2: (iv_ruleCastCompletion= ruleCastCompletion EOF )
+ // InternalAppliedStereotypeProperty.g:8917: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"
+ // InternalAppliedStereotypeProperty.g:8924: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 {
+ // InternalAppliedStereotypeProperty.g:8927:28: ( (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_BooleanUnaryExpression_1= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_2= ruleBitStringUnaryExpression |
+ // this_IsolationExpression_3= ruleIsolationExpression ) )
+ // InternalAppliedStereotypeProperty.g:8928:1: (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_BooleanUnaryExpression_1= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_2= ruleBitStringUnaryExpression |
+ // this_IsolationExpression_3= ruleIsolationExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:8928:1: (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_BooleanUnaryExpression_1= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_2= ruleBitStringUnaryExpression |
+ // this_IsolationExpression_3= ruleIsolationExpression )
+ int alt158 = 4;
+ switch (input.LA(1)) {
+ case RULE_BOOLEAN_VALUE:
+ case RULE_NATURAL_VALUE:
+ case RULE_STRING:
+ case RULE_ID:
+ case RULE_UNRESTRICTED_NAME:
+ case 17:
+ case 21:
+ case 51:
+ case 62:
+ case 63:
+ case 64:
+ case 69: {
+ alt158 = 1;
+ }
+ break;
+ case 72: {
+ alt158 = 2;
+ }
+ break;
+ case 73: {
+ alt158 = 3;
+ }
+ break;
+ case 76: {
+ alt158 = 4;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 158, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt158) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:8929: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:
+ // InternalAppliedStereotypeProperty.g:8942: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:
+ // InternalAppliedStereotypeProperty.g:8955: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:
+ // InternalAppliedStereotypeProperty.g:8968: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"
+ // InternalAppliedStereotypeProperty.g:8987:1: entryRuleMultiplicativeExpression returns [EObject current=null] : iv_ruleMultiplicativeExpression= ruleMultiplicativeExpression EOF ;
+ public final EObject entryRuleMultiplicativeExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleMultiplicativeExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:8988:2: (iv_ruleMultiplicativeExpression= ruleMultiplicativeExpression EOF )
+ // InternalAppliedStereotypeProperty.g:8989: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"
+ // InternalAppliedStereotypeProperty.g:8996: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 {
+ // InternalAppliedStereotypeProperty.g:8999:28: ( (this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )* ) )
+ // InternalAppliedStereotypeProperty.g:9000:1: (this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:9000:1: (this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )* )
+ // InternalAppliedStereotypeProperty.g:9001: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();
+
+ }
+ // InternalAppliedStereotypeProperty.g:9012:1: ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )*
+ loop159: do {
+ int alt159 = 2;
+ int LA159_0 = input.LA(1);
+
+ if ((LA159_0 == 21 || (LA159_0 >= 77 && LA159_0 <= 78))) {
+ alt159 = 1;
+ }
+
+
+ switch (alt159) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:9012:2: () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:9012:2: ()
+ // InternalAppliedStereotypeProperty.g:9013:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9021:2: ( (lv_operator_2_0= ruleMultiplicativeOperator ) )
+ // InternalAppliedStereotypeProperty.g:9022:1: (lv_operator_2_0= ruleMultiplicativeOperator )
+ {
+ // InternalAppliedStereotypeProperty.g:9022:1: (lv_operator_2_0= ruleMultiplicativeOperator )
+ // InternalAppliedStereotypeProperty.g:9023: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9039:2: ( (lv_operand2_3_0= ruleUnaryExpression ) )
+ // InternalAppliedStereotypeProperty.g:9040:1: (lv_operand2_3_0= ruleUnaryExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:9040:1: (lv_operand2_3_0= ruleUnaryExpression )
+ // InternalAppliedStereotypeProperty.g:9041: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 loop159;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleMultiplicativeExpression"
+
+
+ // $ANTLR start "entryRuleMultiplicativeOperator"
+ // InternalAppliedStereotypeProperty.g:9065:1: entryRuleMultiplicativeOperator returns [String current=null] : iv_ruleMultiplicativeOperator= ruleMultiplicativeOperator EOF ;
+ public final String entryRuleMultiplicativeOperator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleMultiplicativeOperator = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:9066:2: (iv_ruleMultiplicativeOperator= ruleMultiplicativeOperator EOF )
+ // InternalAppliedStereotypeProperty.g:9067: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"
+ // InternalAppliedStereotypeProperty.g:9074: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 {
+ // InternalAppliedStereotypeProperty.g:9077:28: ( (kw= '*' | kw= '/' | kw= '%' ) )
+ // InternalAppliedStereotypeProperty.g:9078:1: (kw= '*' | kw= '/' | kw= '%' )
+ {
+ // InternalAppliedStereotypeProperty.g:9078:1: (kw= '*' | kw= '/' | kw= '%' )
+ int alt160 = 3;
+ switch (input.LA(1)) {
+ case 21: {
+ alt160 = 1;
+ }
+ break;
+ case 77: {
+ alt160 = 2;
+ }
+ break;
+ case 78: {
+ alt160 = 3;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 160, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt160) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:9079:2: kw= '*'
+ {
+ kw = (Token) match(input, 21, FOLLOW_2);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getMultiplicativeOperatorAccess().getAsteriskKeyword_0());
+
+ }
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:9086: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:
+ // InternalAppliedStereotypeProperty.g:9093: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"
+ // InternalAppliedStereotypeProperty.g:9106:1: entryRuleAdditiveExpression returns [EObject current=null] : iv_ruleAdditiveExpression= ruleAdditiveExpression EOF ;
+ public final EObject entryRuleAdditiveExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAdditiveExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:9107:2: (iv_ruleAdditiveExpression= ruleAdditiveExpression EOF )
+ // InternalAppliedStereotypeProperty.g:9108: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"
+ // InternalAppliedStereotypeProperty.g:9115: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 {
+ // InternalAppliedStereotypeProperty.g:9118:28: ( (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )* ) )
+ // InternalAppliedStereotypeProperty.g:9119:1: (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:9119:1: (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )* )
+ // InternalAppliedStereotypeProperty.g:9120: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();
+
+ }
+ // InternalAppliedStereotypeProperty.g:9131:1: ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )*
+ loop161: do {
+ int alt161 = 2;
+ int LA161_0 = input.LA(1);
+
+ if (((LA161_0 >= 74 && LA161_0 <= 75))) {
+ alt161 = 1;
+ }
+
+
+ switch (alt161) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:9131:2: () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:9131:2: ()
+ // InternalAppliedStereotypeProperty.g:9132:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9140:2: ( (lv_operator_2_0= ruleAdditiveOperator ) )
+ // InternalAppliedStereotypeProperty.g:9141:1: (lv_operator_2_0= ruleAdditiveOperator )
+ {
+ // InternalAppliedStereotypeProperty.g:9141:1: (lv_operator_2_0= ruleAdditiveOperator )
+ // InternalAppliedStereotypeProperty.g:9142: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9158:2: ( (lv_operand2_3_0= ruleMultiplicativeExpression ) )
+ // InternalAppliedStereotypeProperty.g:9159:1: (lv_operand2_3_0= ruleMultiplicativeExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:9159:1: (lv_operand2_3_0= ruleMultiplicativeExpression )
+ // InternalAppliedStereotypeProperty.g:9160: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 loop161;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAdditiveExpression"
+
+
+ // $ANTLR start "entryRuleAdditiveOperator"
+ // InternalAppliedStereotypeProperty.g:9184:1: entryRuleAdditiveOperator returns [String current=null] : iv_ruleAdditiveOperator= ruleAdditiveOperator EOF ;
+ public final String entryRuleAdditiveOperator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleAdditiveOperator = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:9185:2: (iv_ruleAdditiveOperator= ruleAdditiveOperator EOF )
+ // InternalAppliedStereotypeProperty.g:9186: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"
+ // InternalAppliedStereotypeProperty.g:9193:1: ruleAdditiveOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+' | kw= '-' ) ;
+ public final AntlrDatatypeRuleToken ruleAdditiveOperator() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw = null;
+
+ enterRule();
+
+ try {
+ // InternalAppliedStereotypeProperty.g:9196:28: ( (kw= '+' | kw= '-' ) )
+ // InternalAppliedStereotypeProperty.g:9197:1: (kw= '+' | kw= '-' )
+ {
+ // InternalAppliedStereotypeProperty.g:9197:1: (kw= '+' | kw= '-' )
+ int alt162 = 2;
+ int LA162_0 = input.LA(1);
+
+ if ((LA162_0 == 74)) {
+ alt162 = 1;
+ } else if ((LA162_0 == 75)) {
+ alt162 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 162, 0, input);
+
+ throw nvae;
+ }
+ switch (alt162) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:9198: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:
+ // InternalAppliedStereotypeProperty.g:9205: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"
+ // InternalAppliedStereotypeProperty.g:9218:1: entryRuleShiftExpression returns [EObject current=null] : iv_ruleShiftExpression= ruleShiftExpression EOF ;
+ public final EObject entryRuleShiftExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleShiftExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:9219:2: (iv_ruleShiftExpression= ruleShiftExpression EOF )
+ // InternalAppliedStereotypeProperty.g:9220: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"
+ // InternalAppliedStereotypeProperty.g:9227: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 {
+ // InternalAppliedStereotypeProperty.g:9230:28: ( (this_AdditiveExpression_0= ruleAdditiveExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )* ) )
+ // InternalAppliedStereotypeProperty.g:9231:1: (this_AdditiveExpression_0= ruleAdditiveExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:9231:1: (this_AdditiveExpression_0= ruleAdditiveExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )* )
+ // InternalAppliedStereotypeProperty.g:9232: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();
+
+ }
+ // InternalAppliedStereotypeProperty.g:9243:1: ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )*
+ loop163: do {
+ int alt163 = 2;
+ int LA163_0 = input.LA(1);
+
+ if (((LA163_0 >= 79 && LA163_0 <= 81))) {
+ alt163 = 1;
+ }
+
+
+ switch (alt163) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:9243:2: () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:9243:2: ()
+ // InternalAppliedStereotypeProperty.g:9244:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9252:2: ( (lv_operator_2_0= ruleShiftOperator ) )
+ // InternalAppliedStereotypeProperty.g:9253:1: (lv_operator_2_0= ruleShiftOperator )
+ {
+ // InternalAppliedStereotypeProperty.g:9253:1: (lv_operator_2_0= ruleShiftOperator )
+ // InternalAppliedStereotypeProperty.g:9254: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9270:2: ( (lv_operand2_3_0= ruleAdditiveExpression ) )
+ // InternalAppliedStereotypeProperty.g:9271:1: (lv_operand2_3_0= ruleAdditiveExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:9271:1: (lv_operand2_3_0= ruleAdditiveExpression )
+ // InternalAppliedStereotypeProperty.g:9272: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 loop163;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleShiftExpression"
+
+
+ // $ANTLR start "entryRuleShiftOperator"
+ // InternalAppliedStereotypeProperty.g:9296:1: entryRuleShiftOperator returns [String current=null] : iv_ruleShiftOperator= ruleShiftOperator EOF ;
+ public final String entryRuleShiftOperator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleShiftOperator = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:9297:2: (iv_ruleShiftOperator= ruleShiftOperator EOF )
+ // InternalAppliedStereotypeProperty.g:9298: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"
+ // InternalAppliedStereotypeProperty.g:9305: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 {
+ // InternalAppliedStereotypeProperty.g:9308:28: ( (kw= '<<' | kw= '>>' | kw= '>>>' ) )
+ // InternalAppliedStereotypeProperty.g:9309:1: (kw= '<<' | kw= '>>' | kw= '>>>' )
+ {
+ // InternalAppliedStereotypeProperty.g:9309:1: (kw= '<<' | kw= '>>' | kw= '>>>' )
+ int alt164 = 3;
+ switch (input.LA(1)) {
+ case 79: {
+ alt164 = 1;
+ }
+ break;
+ case 80: {
+ alt164 = 2;
+ }
+ break;
+ case 81: {
+ 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:
+ // InternalAppliedStereotypeProperty.g:9310: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:
+ // InternalAppliedStereotypeProperty.g:9317: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:
+ // InternalAppliedStereotypeProperty.g:9324: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"
+ // InternalAppliedStereotypeProperty.g:9337:1: entryRuleRelationalExpression returns [EObject current=null] : iv_ruleRelationalExpression= ruleRelationalExpression EOF ;
+ public final EObject entryRuleRelationalExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleRelationalExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:9338:2: (iv_ruleRelationalExpression= ruleRelationalExpression EOF )
+ // InternalAppliedStereotypeProperty.g:9339: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"
+ // InternalAppliedStereotypeProperty.g:9346: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 {
+ // InternalAppliedStereotypeProperty.g:9349:28: ( (this_ShiftExpression_0= ruleShiftExpression ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )? ) )
+ // InternalAppliedStereotypeProperty.g:9350:1: (this_ShiftExpression_0= ruleShiftExpression ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:9350:1: (this_ShiftExpression_0= ruleShiftExpression ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )? )
+ // InternalAppliedStereotypeProperty.g:9351: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();
+
+ }
+ // InternalAppliedStereotypeProperty.g:9362:1: ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )?
+ int alt165 = 2;
+ int LA165_0 = input.LA(1);
+
+ if (((LA165_0 >= 37 && LA165_0 <= 38) || (LA165_0 >= 82 && LA165_0 <= 83))) {
+ alt165 = 1;
+ }
+ switch (alt165) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:9362:2: () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:9362:2: ()
+ // InternalAppliedStereotypeProperty.g:9363:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9371:2: ( (lv_operator_2_0= ruleRelationalOperator ) )
+ // InternalAppliedStereotypeProperty.g:9372:1: (lv_operator_2_0= ruleRelationalOperator )
+ {
+ // InternalAppliedStereotypeProperty.g:9372:1: (lv_operator_2_0= ruleRelationalOperator )
+ // InternalAppliedStereotypeProperty.g:9373: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9389:2: ( (lv_operand2_3_0= ruleShiftExpression ) )
+ // InternalAppliedStereotypeProperty.g:9390:1: (lv_operand2_3_0= ruleShiftExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:9390:1: (lv_operand2_3_0= ruleShiftExpression )
+ // InternalAppliedStereotypeProperty.g:9391: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"
+ // InternalAppliedStereotypeProperty.g:9415:1: entryRuleRelationalOperator returns [String current=null] : iv_ruleRelationalOperator= ruleRelationalOperator EOF ;
+ public final String entryRuleRelationalOperator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleRelationalOperator = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:9416:2: (iv_ruleRelationalOperator= ruleRelationalOperator EOF )
+ // InternalAppliedStereotypeProperty.g:9417: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"
+ // InternalAppliedStereotypeProperty.g:9424: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 {
+ // InternalAppliedStereotypeProperty.g:9427:28: ( (kw= '<' | kw= '>' | kw= '<=' | kw= '>=' ) )
+ // InternalAppliedStereotypeProperty.g:9428:1: (kw= '<' | kw= '>' | kw= '<=' | kw= '>=' )
+ {
+ // InternalAppliedStereotypeProperty.g:9428:1: (kw= '<' | kw= '>' | kw= '<=' | kw= '>=' )
+ int alt166 = 4;
+ switch (input.LA(1)) {
+ case 37: {
+ alt166 = 1;
+ }
+ break;
+ case 38: {
+ alt166 = 2;
+ }
+ break;
+ case 82: {
+ alt166 = 3;
+ }
+ break;
+ case 83: {
+ alt166 = 4;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 166, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt166) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:9429: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().getLessThanSignKeyword_0());
+
+ }
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:9436:2: kw= '>'
+ {
+ kw = (Token) match(input, 38, FOLLOW_2);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getRelationalOperatorAccess().getGreaterThanSignKeyword_1());
+
+ }
+
+ }
+ break;
+ case 3:
+ // InternalAppliedStereotypeProperty.g:9443: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:
+ // InternalAppliedStereotypeProperty.g:9450: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"
+ // InternalAppliedStereotypeProperty.g:9463:1: entryRuleClassificationExpression returns [EObject current=null] : iv_ruleClassificationExpression= ruleClassificationExpression EOF ;
+ public final EObject entryRuleClassificationExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassificationExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:9464:2: (iv_ruleClassificationExpression= ruleClassificationExpression EOF )
+ // InternalAppliedStereotypeProperty.g:9465: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"
+ // InternalAppliedStereotypeProperty.g:9472: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 {
+ // InternalAppliedStereotypeProperty.g:9475:28: ( (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )? ) )
+ // InternalAppliedStereotypeProperty.g:9476:1: (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:9476:1: (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )? )
+ // InternalAppliedStereotypeProperty.g:9477: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();
+
+ }
+ // InternalAppliedStereotypeProperty.g:9488:1: ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )?
+ int alt167 = 2;
+ int LA167_0 = input.LA(1);
+
+ if (((LA167_0 >= 84 && LA167_0 <= 85))) {
+ alt167 = 1;
+ }
+ switch (alt167) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:9488:2: () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) )
+ {
+ // InternalAppliedStereotypeProperty.g:9488:2: ()
+ // InternalAppliedStereotypeProperty.g:9489:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9497:2: ( (lv_operator_2_0= ruleClassificationOperator ) )
+ // InternalAppliedStereotypeProperty.g:9498:1: (lv_operator_2_0= ruleClassificationOperator )
+ {
+ // InternalAppliedStereotypeProperty.g:9498:1: (lv_operator_2_0= ruleClassificationOperator )
+ // InternalAppliedStereotypeProperty.g:9499: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9515:2: ( (lv_typeName_3_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:9516:1: (lv_typeName_3_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:9516:1: (lv_typeName_3_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:9517: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"
+ // InternalAppliedStereotypeProperty.g:9541:1: entryRuleClassificationOperator returns [String current=null] : iv_ruleClassificationOperator= ruleClassificationOperator EOF ;
+ public final String entryRuleClassificationOperator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleClassificationOperator = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:9542:2: (iv_ruleClassificationOperator= ruleClassificationOperator EOF )
+ // InternalAppliedStereotypeProperty.g:9543: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"
+ // InternalAppliedStereotypeProperty.g:9550: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 {
+ // InternalAppliedStereotypeProperty.g:9553:28: ( (kw= 'instanceof' | kw= 'hastype' ) )
+ // InternalAppliedStereotypeProperty.g:9554:1: (kw= 'instanceof' | kw= 'hastype' )
+ {
+ // InternalAppliedStereotypeProperty.g:9554:1: (kw= 'instanceof' | kw= 'hastype' )
+ int alt168 = 2;
+ int LA168_0 = input.LA(1);
+
+ if ((LA168_0 == 84)) {
+ alt168 = 1;
+ } else if ((LA168_0 == 85)) {
+ alt168 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 168, 0, input);
+
+ throw nvae;
+ }
+ switch (alt168) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:9555: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:
+ // InternalAppliedStereotypeProperty.g:9562: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"
+ // InternalAppliedStereotypeProperty.g:9575:1: entryRuleEqualityExpression returns [EObject current=null] : iv_ruleEqualityExpression= ruleEqualityExpression EOF ;
+ public final EObject entryRuleEqualityExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleEqualityExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:9576:2: (iv_ruleEqualityExpression= ruleEqualityExpression EOF )
+ // InternalAppliedStereotypeProperty.g:9577: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"
+ // InternalAppliedStereotypeProperty.g:9584: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 {
+ // InternalAppliedStereotypeProperty.g:9587:28: ( (this_ClassificationExpression_0= ruleClassificationExpression ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )* ) )
+ // InternalAppliedStereotypeProperty.g:9588:1: (this_ClassificationExpression_0= ruleClassificationExpression ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:9588:1: (this_ClassificationExpression_0= ruleClassificationExpression ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )* )
+ // InternalAppliedStereotypeProperty.g:9589: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();
+
+ }
+ // InternalAppliedStereotypeProperty.g:9600:1: ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )*
+ loop169: do {
+ int alt169 = 2;
+ int LA169_0 = input.LA(1);
+
+ if (((LA169_0 >= 86 && LA169_0 <= 87))) {
+ alt169 = 1;
+ }
+
+
+ switch (alt169) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:9600:2: () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:9600:2: ()
+ // InternalAppliedStereotypeProperty.g:9601:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9609:2: ( (lv_operator_2_0= ruleEqualityOperator ) )
+ // InternalAppliedStereotypeProperty.g:9610:1: (lv_operator_2_0= ruleEqualityOperator )
+ {
+ // InternalAppliedStereotypeProperty.g:9610:1: (lv_operator_2_0= ruleEqualityOperator )
+ // InternalAppliedStereotypeProperty.g:9611: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9627:2: ( (lv_operand2_3_0= ruleClassificationExpression ) )
+ // InternalAppliedStereotypeProperty.g:9628:1: (lv_operand2_3_0= ruleClassificationExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:9628:1: (lv_operand2_3_0= ruleClassificationExpression )
+ // InternalAppliedStereotypeProperty.g:9629: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 loop169;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleEqualityExpression"
+
+
+ // $ANTLR start "entryRuleEqualityOperator"
+ // InternalAppliedStereotypeProperty.g:9653:1: entryRuleEqualityOperator returns [String current=null] : iv_ruleEqualityOperator= ruleEqualityOperator EOF ;
+ public final String entryRuleEqualityOperator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleEqualityOperator = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:9654:2: (iv_ruleEqualityOperator= ruleEqualityOperator EOF )
+ // InternalAppliedStereotypeProperty.g:9655: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"
+ // InternalAppliedStereotypeProperty.g:9662:1: ruleEqualityOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '==' | kw= '!=' ) ;
+ public final AntlrDatatypeRuleToken ruleEqualityOperator() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw = null;
+
+ enterRule();
+
+ try {
+ // InternalAppliedStereotypeProperty.g:9665:28: ( (kw= '==' | kw= '!=' ) )
+ // InternalAppliedStereotypeProperty.g:9666:1: (kw= '==' | kw= '!=' )
+ {
+ // InternalAppliedStereotypeProperty.g:9666:1: (kw= '==' | kw= '!=' )
+ int alt170 = 2;
+ int LA170_0 = input.LA(1);
+
+ if ((LA170_0 == 86)) {
+ alt170 = 1;
+ } else if ((LA170_0 == 87)) {
+ alt170 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 170, 0, input);
+
+ throw nvae;
+ }
+ switch (alt170) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:9667: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:
+ // InternalAppliedStereotypeProperty.g:9674: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"
+ // InternalAppliedStereotypeProperty.g:9687:1: entryRuleAndExpression returns [EObject current=null] : iv_ruleAndExpression= ruleAndExpression EOF ;
+ public final EObject entryRuleAndExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAndExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:9688:2: (iv_ruleAndExpression= ruleAndExpression EOF )
+ // InternalAppliedStereotypeProperty.g:9689: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"
+ // InternalAppliedStereotypeProperty.g:9696: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 {
+ // InternalAppliedStereotypeProperty.g:9699:28: ( (this_EqualityExpression_0= ruleEqualityExpression ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )* ) )
+ // InternalAppliedStereotypeProperty.g:9700:1: (this_EqualityExpression_0= ruleEqualityExpression ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:9700:1: (this_EqualityExpression_0= ruleEqualityExpression ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )* )
+ // InternalAppliedStereotypeProperty.g:9701: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();
+
+ }
+ // InternalAppliedStereotypeProperty.g:9712:1: ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )*
+ loop171: do {
+ int alt171 = 2;
+ int LA171_0 = input.LA(1);
+
+ if ((LA171_0 == 88)) {
+ alt171 = 1;
+ }
+
+
+ switch (alt171) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:9712:2: () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:9712:2: ()
+ // InternalAppliedStereotypeProperty.g:9713:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9721:2: ( (lv_operator_2_0= '&' ) )
+ // InternalAppliedStereotypeProperty.g:9722:1: (lv_operator_2_0= '&' )
+ {
+ // InternalAppliedStereotypeProperty.g:9722:1: (lv_operator_2_0= '&' )
+ // InternalAppliedStereotypeProperty.g:9723: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, "&");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9736:2: ( (lv_operand2_3_0= ruleEqualityExpression ) )
+ // InternalAppliedStereotypeProperty.g:9737:1: (lv_operand2_3_0= ruleEqualityExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:9737:1: (lv_operand2_3_0= ruleEqualityExpression )
+ // InternalAppliedStereotypeProperty.g:9738: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 loop171;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAndExpression"
+
+
+ // $ANTLR start "entryRuleExclusiveOrExpression"
+ // InternalAppliedStereotypeProperty.g:9762:1: entryRuleExclusiveOrExpression returns [EObject current=null] : iv_ruleExclusiveOrExpression= ruleExclusiveOrExpression EOF ;
+ public final EObject entryRuleExclusiveOrExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleExclusiveOrExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:9763:2: (iv_ruleExclusiveOrExpression= ruleExclusiveOrExpression EOF )
+ // InternalAppliedStereotypeProperty.g:9764: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"
+ // InternalAppliedStereotypeProperty.g:9771: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 {
+ // InternalAppliedStereotypeProperty.g:9774:28: ( (this_AndExpression_0= ruleAndExpression ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )* ) )
+ // InternalAppliedStereotypeProperty.g:9775:1: (this_AndExpression_0= ruleAndExpression ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:9775:1: (this_AndExpression_0= ruleAndExpression ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )* )
+ // InternalAppliedStereotypeProperty.g:9776: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();
+
+ }
+ // InternalAppliedStereotypeProperty.g:9787:1: ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )*
+ loop172: do {
+ int alt172 = 2;
+ int LA172_0 = input.LA(1);
+
+ if ((LA172_0 == 89)) {
+ alt172 = 1;
+ }
+
+
+ switch (alt172) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:9787:2: () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:9787:2: ()
+ // InternalAppliedStereotypeProperty.g:9788:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9796:2: ( (lv_operator_2_0= '^' ) )
+ // InternalAppliedStereotypeProperty.g:9797:1: (lv_operator_2_0= '^' )
+ {
+ // InternalAppliedStereotypeProperty.g:9797:1: (lv_operator_2_0= '^' )
+ // InternalAppliedStereotypeProperty.g:9798: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, "^");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9811:2: ( (lv_operand2_3_0= ruleAndExpression ) )
+ // InternalAppliedStereotypeProperty.g:9812:1: (lv_operand2_3_0= ruleAndExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:9812:1: (lv_operand2_3_0= ruleAndExpression )
+ // InternalAppliedStereotypeProperty.g:9813: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 loop172;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleExclusiveOrExpression"
+
+
+ // $ANTLR start "entryRuleInclusiveOrExpression"
+ // InternalAppliedStereotypeProperty.g:9837:1: entryRuleInclusiveOrExpression returns [EObject current=null] : iv_ruleInclusiveOrExpression= ruleInclusiveOrExpression EOF ;
+ public final EObject entryRuleInclusiveOrExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleInclusiveOrExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:9838:2: (iv_ruleInclusiveOrExpression= ruleInclusiveOrExpression EOF )
+ // InternalAppliedStereotypeProperty.g:9839: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"
+ // InternalAppliedStereotypeProperty.g:9846: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 {
+ // InternalAppliedStereotypeProperty.g:9849:28: ( (this_ExclusiveOrExpression_0= ruleExclusiveOrExpression ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )* ) )
+ // InternalAppliedStereotypeProperty.g:9850:1: (this_ExclusiveOrExpression_0= ruleExclusiveOrExpression ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:9850:1: (this_ExclusiveOrExpression_0= ruleExclusiveOrExpression ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )* )
+ // InternalAppliedStereotypeProperty.g:9851: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();
+
+ }
+ // InternalAppliedStereotypeProperty.g:9862:1: ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )*
+ loop173: do {
+ int alt173 = 2;
+ int LA173_0 = input.LA(1);
+
+ if ((LA173_0 == 90)) {
+ alt173 = 1;
+ }
+
+
+ switch (alt173) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:9862:2: () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:9862:2: ()
+ // InternalAppliedStereotypeProperty.g:9863:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9871:2: ( (lv_operator_2_0= '|' ) )
+ // InternalAppliedStereotypeProperty.g:9872:1: (lv_operator_2_0= '|' )
+ {
+ // InternalAppliedStereotypeProperty.g:9872:1: (lv_operator_2_0= '|' )
+ // InternalAppliedStereotypeProperty.g:9873: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, "|");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9886:2: ( (lv_operand2_3_0= ruleExclusiveOrExpression ) )
+ // InternalAppliedStereotypeProperty.g:9887:1: (lv_operand2_3_0= ruleExclusiveOrExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:9887:1: (lv_operand2_3_0= ruleExclusiveOrExpression )
+ // InternalAppliedStereotypeProperty.g:9888: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 loop173;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleInclusiveOrExpression"
+
+
+ // $ANTLR start "entryRuleConditionalAndExpression"
+ // InternalAppliedStereotypeProperty.g:9912:1: entryRuleConditionalAndExpression returns [EObject current=null] : iv_ruleConditionalAndExpression= ruleConditionalAndExpression EOF ;
+ public final EObject entryRuleConditionalAndExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleConditionalAndExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:9913:2: (iv_ruleConditionalAndExpression= ruleConditionalAndExpression EOF )
+ // InternalAppliedStereotypeProperty.g:9914: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"
+ // InternalAppliedStereotypeProperty.g:9921: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 {
+ // InternalAppliedStereotypeProperty.g:9924:28: ( (this_InclusiveOrExpression_0= ruleInclusiveOrExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )* ) )
+ // InternalAppliedStereotypeProperty.g:9925:1: (this_InclusiveOrExpression_0= ruleInclusiveOrExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:9925:1: (this_InclusiveOrExpression_0= ruleInclusiveOrExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )* )
+ // InternalAppliedStereotypeProperty.g:9926: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();
+
+ }
+ // InternalAppliedStereotypeProperty.g:9937:1: ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )*
+ loop174: do {
+ int alt174 = 2;
+ int LA174_0 = input.LA(1);
+
+ if ((LA174_0 == 91)) {
+ alt174 = 1;
+ }
+
+
+ switch (alt174) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:9937:2: () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:9937:2: ()
+ // InternalAppliedStereotypeProperty.g:9938:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9946:2: ( (lv_operator_2_0= '&&' ) )
+ // InternalAppliedStereotypeProperty.g:9947:1: (lv_operator_2_0= '&&' )
+ {
+ // InternalAppliedStereotypeProperty.g:9947:1: (lv_operator_2_0= '&&' )
+ // InternalAppliedStereotypeProperty.g:9948: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, "&&");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:9961:2: ( (lv_operand2_3_0= ruleInclusiveOrExpression ) )
+ // InternalAppliedStereotypeProperty.g:9962:1: (lv_operand2_3_0= ruleInclusiveOrExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:9962:1: (lv_operand2_3_0= ruleInclusiveOrExpression )
+ // InternalAppliedStereotypeProperty.g:9963: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 loop174;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleConditionalAndExpression"
+
+
+ // $ANTLR start "entryRuleConditionalOrExpression"
+ // InternalAppliedStereotypeProperty.g:9987:1: entryRuleConditionalOrExpression returns [EObject current=null] : iv_ruleConditionalOrExpression= ruleConditionalOrExpression EOF ;
+ public final EObject entryRuleConditionalOrExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleConditionalOrExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:9988:2: (iv_ruleConditionalOrExpression= ruleConditionalOrExpression EOF )
+ // InternalAppliedStereotypeProperty.g:9989: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"
+ // InternalAppliedStereotypeProperty.g:9996: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 {
+ // InternalAppliedStereotypeProperty.g:9999:28: ( (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )* ) )
+ // InternalAppliedStereotypeProperty.g:10000:1: (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:10000:1: (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )* )
+ // InternalAppliedStereotypeProperty.g:10001: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();
+
+ }
+ // InternalAppliedStereotypeProperty.g:10012:1: ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )*
+ loop175: do {
+ int alt175 = 2;
+ int LA175_0 = input.LA(1);
+
+ if ((LA175_0 == 92)) {
+ alt175 = 1;
+ }
+
+
+ switch (alt175) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:10012:2: () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:10012:2: ()
+ // InternalAppliedStereotypeProperty.g:10013:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:10021:2: ( (lv_operator_2_0= '||' ) )
+ // InternalAppliedStereotypeProperty.g:10022:1: (lv_operator_2_0= '||' )
+ {
+ // InternalAppliedStereotypeProperty.g:10022:1: (lv_operator_2_0= '||' )
+ // InternalAppliedStereotypeProperty.g:10023: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, "||");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:10036:2: ( (lv_operand2_3_0= ruleConditionalAndExpression ) )
+ // InternalAppliedStereotypeProperty.g:10037:1: (lv_operand2_3_0= ruleConditionalAndExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:10037:1: (lv_operand2_3_0= ruleConditionalAndExpression )
+ // InternalAppliedStereotypeProperty.g:10038: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 loop175;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleConditionalOrExpression"
+
+
+ // $ANTLR start "entryRuleConditionalExpression"
+ // InternalAppliedStereotypeProperty.g:10062:1: entryRuleConditionalExpression returns [EObject current=null] : iv_ruleConditionalExpression= ruleConditionalExpression EOF ;
+ public final EObject entryRuleConditionalExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleConditionalExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:10063:2: (iv_ruleConditionalExpression= ruleConditionalExpression EOF )
+ // InternalAppliedStereotypeProperty.g:10064: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"
+ // InternalAppliedStereotypeProperty.g:10071: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 {
+ // InternalAppliedStereotypeProperty.g:10074:28: ( (this_ConditionalOrExpression_0= ruleConditionalOrExpression ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )? ) )
+ // InternalAppliedStereotypeProperty.g:10075:1: (this_ConditionalOrExpression_0= ruleConditionalOrExpression ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:10075:1: (this_ConditionalOrExpression_0= ruleConditionalOrExpression ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )? )
+ // InternalAppliedStereotypeProperty.g:10076: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();
+
+ }
+ // InternalAppliedStereotypeProperty.g:10087:1: ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )?
+ int alt176 = 2;
+ int LA176_0 = input.LA(1);
+
+ if ((LA176_0 == 93)) {
+ alt176 = 1;
+ }
+ switch (alt176) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:10087:2: () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:10087:2: ()
+ // InternalAppliedStereotypeProperty.g:10088: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());
+
+ }
+ // InternalAppliedStereotypeProperty.g:10100:1: ( (lv_operand2_3_0= ruleExpression ) )
+ // InternalAppliedStereotypeProperty.g:10101:1: (lv_operand2_3_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:10101:1: (lv_operand2_3_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:10102:3: lv_operand2_3_0= ruleExpression
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getConditionalExpressionAccess().getOperand2ExpressionParserRuleCall_1_2_0());
+
+ }
+ pushFollow(FOLLOW_49);
+ 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, 46, FOLLOW_69);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_4, grammarAccess.getConditionalExpressionAccess().getColonKeyword_1_3());
+
+ }
+ // InternalAppliedStereotypeProperty.g:10122:1: ( (lv_operand3_5_0= ruleConditionalExpression ) )
+ // InternalAppliedStereotypeProperty.g:10123:1: (lv_operand3_5_0= ruleConditionalExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:10123:1: (lv_operand3_5_0= ruleConditionalExpression )
+ // InternalAppliedStereotypeProperty.g:10124: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"
+ // InternalAppliedStereotypeProperty.g:10148:1: entryRuleAssignmentExpression returns [EObject current=null] : iv_ruleAssignmentExpression= ruleAssignmentExpression EOF ;
+ public final EObject entryRuleAssignmentExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAssignmentExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:10149:2: (iv_ruleAssignmentExpression= ruleAssignmentExpression EOF )
+ // InternalAppliedStereotypeProperty.g:10150: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"
+ // InternalAppliedStereotypeProperty.g:10157: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 {
+ // InternalAppliedStereotypeProperty.g:10160:28: ( ( ( (lv_leftHandSide_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_rightHandSide_2_0= ruleExpression ) ) ) )
+ // InternalAppliedStereotypeProperty.g:10161:1: ( ( (lv_leftHandSide_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_rightHandSide_2_0= ruleExpression ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:10161:1: ( ( (lv_leftHandSide_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_rightHandSide_2_0= ruleExpression ) ) )
+ // InternalAppliedStereotypeProperty.g:10161:2: ( (lv_leftHandSide_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_rightHandSide_2_0= ruleExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:10161:2: ( (lv_leftHandSide_0_0= ruleLeftHandSide ) )
+ // InternalAppliedStereotypeProperty.g:10162:1: (lv_leftHandSide_0_0= ruleLeftHandSide )
+ {
+ // InternalAppliedStereotypeProperty.g:10162:1: (lv_leftHandSide_0_0= ruleLeftHandSide )
+ // InternalAppliedStereotypeProperty.g:10163: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:10179:2: ( (lv_operator_1_0= ruleAssignmentOperator ) )
+ // InternalAppliedStereotypeProperty.g:10180:1: (lv_operator_1_0= ruleAssignmentOperator )
+ {
+ // InternalAppliedStereotypeProperty.g:10180:1: (lv_operator_1_0= ruleAssignmentOperator )
+ // InternalAppliedStereotypeProperty.g:10181: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:10197:2: ( (lv_rightHandSide_2_0= ruleExpression ) )
+ // InternalAppliedStereotypeProperty.g:10198:1: (lv_rightHandSide_2_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:10198:1: (lv_rightHandSide_2_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:10199: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"
+ // InternalAppliedStereotypeProperty.g:10223:1: entryRuleLeftHandSide returns [EObject current=null] : iv_ruleLeftHandSide= ruleLeftHandSide EOF ;
+ public final EObject entryRuleLeftHandSide() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleLeftHandSide = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:10224:2: (iv_ruleLeftHandSide= ruleLeftHandSide EOF )
+ // InternalAppliedStereotypeProperty.g:10225: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"
+ // InternalAppliedStereotypeProperty.g:10232: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 {
+ // InternalAppliedStereotypeProperty.g:10235:28: ( (this_NameLeftHandSide_0= ruleNameLeftHandSide | this_FeatureLeftHandSide_1= ruleFeatureLeftHandSide ) )
+ // InternalAppliedStereotypeProperty.g:10236:1: (this_NameLeftHandSide_0= ruleNameLeftHandSide | this_FeatureLeftHandSide_1= ruleFeatureLeftHandSide )
+ {
+ // InternalAppliedStereotypeProperty.g:10236:1: (this_NameLeftHandSide_0= ruleNameLeftHandSide | this_FeatureLeftHandSide_1= ruleFeatureLeftHandSide )
+ int alt177 = 2;
+ switch (input.LA(1)) {
+ case RULE_ID: {
+ int LA177_1 = input.LA(2);
+
+ if ((synpred221_InternalAppliedStereotypeProperty())) {
+ alt177 = 1;
+ } else if ((true)) {
+ alt177 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 177, 1, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_UNRESTRICTED_NAME: {
+ int LA177_2 = input.LA(2);
+
+ if ((synpred221_InternalAppliedStereotypeProperty())) {
+ alt177 = 1;
+ } else if ((true)) {
+ alt177 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 177, 2, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_BOOLEAN_VALUE:
+ case RULE_NATURAL_VALUE:
+ case RULE_STRING:
+ case 17:
+ case 21:
+ case 51:
+ case 62:
+ case 63:
+ case 64:
+ case 69: {
+ alt177 = 2;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 177, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt177) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:10237: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:
+ // InternalAppliedStereotypeProperty.g:10250: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"
+ // InternalAppliedStereotypeProperty.g:10269:1: entryRuleNameLeftHandSide returns [EObject current=null] : iv_ruleNameLeftHandSide= ruleNameLeftHandSide EOF ;
+ public final EObject entryRuleNameLeftHandSide() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNameLeftHandSide = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:10270:2: (iv_ruleNameLeftHandSide= ruleNameLeftHandSide EOF )
+ // InternalAppliedStereotypeProperty.g:10271: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"
+ // InternalAppliedStereotypeProperty.g:10278: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 {
+ // InternalAppliedStereotypeProperty.g:10281:28: ( ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_index_1_0= ruleIndex ) )? ) )
+ // InternalAppliedStereotypeProperty.g:10282:1: ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_index_1_0= ruleIndex ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:10282:1: ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_index_1_0= ruleIndex ) )? )
+ // InternalAppliedStereotypeProperty.g:10282:2: ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_index_1_0= ruleIndex ) )?
+ {
+ // InternalAppliedStereotypeProperty.g:10282:2: ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:10283:1: (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:10283:1: (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName )
+ // InternalAppliedStereotypeProperty.g:10284: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:10300:2: ( (lv_index_1_0= ruleIndex ) )?
+ int alt178 = 2;
+ int LA178_0 = input.LA(1);
+
+ if ((LA178_0 == 52)) {
+ alt178 = 1;
+ }
+ switch (alt178) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:10301:1: (lv_index_1_0= ruleIndex )
+ {
+ // InternalAppliedStereotypeProperty.g:10301:1: (lv_index_1_0= ruleIndex )
+ // InternalAppliedStereotypeProperty.g:10302: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"
+ // InternalAppliedStereotypeProperty.g:10326:1: entryRuleFeatureLeftHandSide returns [EObject current=null] : iv_ruleFeatureLeftHandSide= ruleFeatureLeftHandSide EOF ;
+ public final EObject entryRuleFeatureLeftHandSide() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleFeatureLeftHandSide = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:10327:2: (iv_ruleFeatureLeftHandSide= ruleFeatureLeftHandSide EOF )
+ // InternalAppliedStereotypeProperty.g:10328: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"
+ // InternalAppliedStereotypeProperty.g:10335: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 {
+ // InternalAppliedStereotypeProperty.g:10338:28: ( ( (lv_expression_0_0= rulePrimaryExpression ) ) )
+ // InternalAppliedStereotypeProperty.g:10339:1: ( (lv_expression_0_0= rulePrimaryExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:10339:1: ( (lv_expression_0_0= rulePrimaryExpression ) )
+ // InternalAppliedStereotypeProperty.g:10340:1: (lv_expression_0_0= rulePrimaryExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:10340:1: (lv_expression_0_0= rulePrimaryExpression )
+ // InternalAppliedStereotypeProperty.g:10341: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"
+ // InternalAppliedStereotypeProperty.g:10365:1: entryRuleAssignmentOperator returns [String current=null] : iv_ruleAssignmentOperator= ruleAssignmentOperator EOF ;
+ public final String entryRuleAssignmentOperator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleAssignmentOperator = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:10366:2: (iv_ruleAssignmentOperator= ruleAssignmentOperator EOF )
+ // InternalAppliedStereotypeProperty.g:10367: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"
+ // InternalAppliedStereotypeProperty.g:10374: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 {
+ // InternalAppliedStereotypeProperty.g:10377:28: ( (kw= '=' | kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | kw= '&=' | kw= '|=' | kw= '^=' | kw= '<<=' | kw= '>>=' | kw= '>>>=' ) )
+ // InternalAppliedStereotypeProperty.g:10378:1: (kw= '=' | kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | kw= '&=' | kw= '|=' | kw= '^=' | kw= '<<=' | kw= '>>=' | kw= '>>>=' )
+ {
+ // InternalAppliedStereotypeProperty.g:10378:1: (kw= '=' | kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | kw= '&=' | kw= '|=' | kw= '^=' | kw= '<<=' | kw= '>>=' | kw= '>>>=' )
+ int alt179 = 12;
+ switch (input.LA(1)) {
+ case 15: {
+ alt179 = 1;
+ }
+ break;
+ case 94: {
+ alt179 = 2;
+ }
+ break;
+ case 95: {
+ alt179 = 3;
+ }
+ break;
+ case 96: {
+ alt179 = 4;
+ }
+ break;
+ case 97: {
+ alt179 = 5;
+ }
+ break;
+ case 98: {
+ alt179 = 6;
+ }
+ break;
+ case 99: {
+ alt179 = 7;
+ }
+ break;
+ case 100: {
+ alt179 = 8;
+ }
+ break;
+ case 101: {
+ alt179 = 9;
+ }
+ break;
+ case 102: {
+ alt179 = 10;
+ }
+ break;
+ case 103: {
+ alt179 = 11;
+ }
+ break;
+ case 104: {
+ alt179 = 12;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 179, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt179) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:10379:2: kw= '='
+ {
+ kw = (Token) match(input, 15, FOLLOW_2);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getEqualsSignKeyword_0());
+
+ }
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:10386: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:
+ // InternalAppliedStereotypeProperty.g:10393: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:
+ // InternalAppliedStereotypeProperty.g:10400: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:
+ // InternalAppliedStereotypeProperty.g:10407: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:
+ // InternalAppliedStereotypeProperty.g:10414: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:
+ // InternalAppliedStereotypeProperty.g:10421: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:
+ // InternalAppliedStereotypeProperty.g:10428: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:
+ // InternalAppliedStereotypeProperty.g:10435: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:
+ // InternalAppliedStereotypeProperty.g:10442: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:
+ // InternalAppliedStereotypeProperty.g:10449: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:
+ // InternalAppliedStereotypeProperty.g:10456: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"
+ // InternalAppliedStereotypeProperty.g:10471:1: entryRuleDocumentedStatement returns [EObject current=null] : iv_ruleDocumentedStatement= ruleDocumentedStatement EOF ;
+ public final EObject entryRuleDocumentedStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleDocumentedStatement = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:10472:2: (iv_ruleDocumentedStatement= ruleDocumentedStatement EOF )
+ // InternalAppliedStereotypeProperty.g:10473: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"
+ // InternalAppliedStereotypeProperty.g:10480: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 {
+ // InternalAppliedStereotypeProperty.g:10483:28: (this_AnnotatedStatement_0= ruleAnnotatedStatement )
+ // InternalAppliedStereotypeProperty.g:10485: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"
+ // InternalAppliedStereotypeProperty.g:10504:1: entryRuleStatement returns [EObject current=null] : iv_ruleStatement= ruleStatement EOF ;
+ public final EObject entryRuleStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleStatement = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:10505:2: (iv_ruleStatement= ruleStatement EOF )
+ // InternalAppliedStereotypeProperty.g:10506: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"
+ // InternalAppliedStereotypeProperty.g:10513: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 {
+ // InternalAppliedStereotypeProperty.g:10516: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
+ // ) )
+ // InternalAppliedStereotypeProperty.g:10517: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
+ // )
+ {
+ // InternalAppliedStereotypeProperty.g:10517: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 alt180 = 14;
+ alt180 = dfa180.predict(input);
+ switch (alt180) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:10518: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:
+ // InternalAppliedStereotypeProperty.g:10531: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:
+ // InternalAppliedStereotypeProperty.g:10544: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:
+ // InternalAppliedStereotypeProperty.g:10557: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:
+ // InternalAppliedStereotypeProperty.g:10570: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:
+ // InternalAppliedStereotypeProperty.g:10583: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:
+ // InternalAppliedStereotypeProperty.g:10596: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:
+ // InternalAppliedStereotypeProperty.g:10609: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:
+ // InternalAppliedStereotypeProperty.g:10622: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:
+ // InternalAppliedStereotypeProperty.g:10635: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:
+ // InternalAppliedStereotypeProperty.g:10648: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:
+ // InternalAppliedStereotypeProperty.g:10661: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:
+ // InternalAppliedStereotypeProperty.g:10674: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:
+ // InternalAppliedStereotypeProperty.g:10687: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"
+ // InternalAppliedStereotypeProperty.g:10706:1: entryRuleBlock returns [EObject current=null] : iv_ruleBlock= ruleBlock EOF ;
+ public final EObject entryRuleBlock() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBlock = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:10707:2: (iv_ruleBlock= ruleBlock EOF )
+ // InternalAppliedStereotypeProperty.g:10708: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"
+ // InternalAppliedStereotypeProperty.g:10715: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 {
+ // InternalAppliedStereotypeProperty.g:10718:28: ( ( () otherlv_1= '{' ( (lv_statement_2_0= ruleDocumentedStatement ) )* otherlv_3= '}' ) )
+ // InternalAppliedStereotypeProperty.g:10719:1: ( () otherlv_1= '{' ( (lv_statement_2_0= ruleDocumentedStatement ) )* otherlv_3= '}' )
+ {
+ // InternalAppliedStereotypeProperty.g:10719:1: ( () otherlv_1= '{' ( (lv_statement_2_0= ruleDocumentedStatement ) )* otherlv_3= '}' )
+ // InternalAppliedStereotypeProperty.g:10719:2: () otherlv_1= '{' ( (lv_statement_2_0= ruleDocumentedStatement ) )* otherlv_3= '}'
+ {
+ // InternalAppliedStereotypeProperty.g:10719:2: ()
+ // InternalAppliedStereotypeProperty.g:10720:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElement(
+ grammarAccess.getBlockAccess().getBlockAction_0(),
+ current);
+
+ }
+
+ }
+
+ otherlv_1 = (Token) match(input, 32, FOLLOW_94);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getBlockAccess().getLeftCurlyBracketKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:10732:1: ( (lv_statement_2_0= ruleDocumentedStatement ) )*
+ loop181: do {
+ int alt181 = 2;
+ int LA181_0 = input.LA(1);
+
+ if (((LA181_0 >= RULE_BOOLEAN_VALUE && LA181_0 <= RULE_INLINE_STATEMENT) || LA181_0 == 17 || LA181_0 == 21 || LA181_0 == 23 || LA181_0 == 32 || LA181_0 == 40 || LA181_0 == 51 || (LA181_0 >= 62 && LA181_0 <= 64)
+ || (LA181_0 >= 69 && LA181_0 <= 76) || (LA181_0 >= 105 && LA181_0 <= 106) || LA181_0 == 109 || (LA181_0 >= 112 && LA181_0 <= 117))) {
+ alt181 = 1;
+ }
+
+
+ switch (alt181) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:10733:1: (lv_statement_2_0= ruleDocumentedStatement )
+ {
+ // InternalAppliedStereotypeProperty.g:10733:1: (lv_statement_2_0= ruleDocumentedStatement )
+ // InternalAppliedStereotypeProperty.g:10734: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 loop181;
+ }
+ } while (true);
+
+ otherlv_3 = (Token) match(input, 33, 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"
+ // InternalAppliedStereotypeProperty.g:10762:1: entryRuleAnnotatedStatement returns [EObject current=null] : iv_ruleAnnotatedStatement= ruleAnnotatedStatement EOF ;
+ public final EObject entryRuleAnnotatedStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAnnotatedStatement = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:10763:2: (iv_ruleAnnotatedStatement= ruleAnnotatedStatement EOF )
+ // InternalAppliedStereotypeProperty.g:10764: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"
+ // InternalAppliedStereotypeProperty.g:10771: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 {
+ // InternalAppliedStereotypeProperty.g:10774:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )* ( (lv_statement_2_0= ruleStatement ) ) ) )
+ // InternalAppliedStereotypeProperty.g:10775:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )* ( (lv_statement_2_0= ruleStatement ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:10775:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )* ( (lv_statement_2_0= ruleStatement ) ) )
+ // InternalAppliedStereotypeProperty.g:10775:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )* ( (lv_statement_2_0= ruleStatement ) )
+ {
+ // InternalAppliedStereotypeProperty.g:10775:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
+ int alt182 = 2;
+ int LA182_0 = input.LA(1);
+
+ if ((LA182_0 == RULE_DOCUMENTATION_COMMENT)) {
+ alt182 = 1;
+ }
+ switch (alt182) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:10776:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ {
+ // InternalAppliedStereotypeProperty.g:10776:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ // InternalAppliedStereotypeProperty.g:10777: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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:10793:3: ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )*
+ loop183: do {
+ int alt183 = 2;
+ int LA183_0 = input.LA(1);
+
+ if ((LA183_0 == RULE_STATEMENT_ANNOTATION)) {
+ alt183 = 1;
+ }
+
+
+ switch (alt183) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:10794:1: (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION )
+ {
+ // InternalAppliedStereotypeProperty.g:10794:1: (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION )
+ // InternalAppliedStereotypeProperty.g:10795: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 loop183;
+ }
+ } while (true);
+
+ // InternalAppliedStereotypeProperty.g:10811:3: ( (lv_statement_2_0= ruleStatement ) )
+ // InternalAppliedStereotypeProperty.g:10812:1: (lv_statement_2_0= ruleStatement )
+ {
+ // InternalAppliedStereotypeProperty.g:10812:1: (lv_statement_2_0= ruleStatement )
+ // InternalAppliedStereotypeProperty.g:10813: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"
+ // InternalAppliedStereotypeProperty.g:10837:1: entryRuleInLineStatement returns [EObject current=null] : iv_ruleInLineStatement= ruleInLineStatement EOF ;
+ public final EObject entryRuleInLineStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleInLineStatement = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:10838:2: (iv_ruleInLineStatement= ruleInLineStatement EOF )
+ // InternalAppliedStereotypeProperty.g:10839: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"
+ // InternalAppliedStereotypeProperty.g:10846: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 {
+ // InternalAppliedStereotypeProperty.g:10849:28: ( ( (lv_code_0_0= RULE_INLINE_STATEMENT ) ) )
+ // InternalAppliedStereotypeProperty.g:10850:1: ( (lv_code_0_0= RULE_INLINE_STATEMENT ) )
+ {
+ // InternalAppliedStereotypeProperty.g:10850:1: ( (lv_code_0_0= RULE_INLINE_STATEMENT ) )
+ // InternalAppliedStereotypeProperty.g:10851:1: (lv_code_0_0= RULE_INLINE_STATEMENT )
+ {
+ // InternalAppliedStereotypeProperty.g:10851:1: (lv_code_0_0= RULE_INLINE_STATEMENT )
+ // InternalAppliedStereotypeProperty.g:10852: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"
+ // InternalAppliedStereotypeProperty.g:10876:1: entryRuleBlockStatement returns [EObject current=null] : iv_ruleBlockStatement= ruleBlockStatement EOF ;
+ public final EObject entryRuleBlockStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBlockStatement = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:10877:2: (iv_ruleBlockStatement= ruleBlockStatement EOF )
+ // InternalAppliedStereotypeProperty.g:10878: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"
+ // InternalAppliedStereotypeProperty.g:10885: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 {
+ // InternalAppliedStereotypeProperty.g:10888:28: ( ( (lv_block_0_0= ruleBlock ) ) )
+ // InternalAppliedStereotypeProperty.g:10889:1: ( (lv_block_0_0= ruleBlock ) )
+ {
+ // InternalAppliedStereotypeProperty.g:10889:1: ( (lv_block_0_0= ruleBlock ) )
+ // InternalAppliedStereotypeProperty.g:10890:1: (lv_block_0_0= ruleBlock )
+ {
+ // InternalAppliedStereotypeProperty.g:10890:1: (lv_block_0_0= ruleBlock )
+ // InternalAppliedStereotypeProperty.g:10891: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"
+ // InternalAppliedStereotypeProperty.g:10915:1: entryRuleEmptyStatement returns [EObject current=null] : iv_ruleEmptyStatement= ruleEmptyStatement EOF ;
+ public final EObject entryRuleEmptyStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleEmptyStatement = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:10916:2: (iv_ruleEmptyStatement= ruleEmptyStatement EOF )
+ // InternalAppliedStereotypeProperty.g:10917: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"
+ // InternalAppliedStereotypeProperty.g:10924:1: ruleEmptyStatement returns [EObject current=null] : ( () otherlv_1= ';' ) ;
+ public final EObject ruleEmptyStatement() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1 = null;
+
+ enterRule();
+
+ try {
+ // InternalAppliedStereotypeProperty.g:10927:28: ( ( () otherlv_1= ';' ) )
+ // InternalAppliedStereotypeProperty.g:10928:1: ( () otherlv_1= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:10928:1: ( () otherlv_1= ';' )
+ // InternalAppliedStereotypeProperty.g:10928:2: () otherlv_1= ';'
+ {
+ // InternalAppliedStereotypeProperty.g:10928:2: ()
+ // InternalAppliedStereotypeProperty.g:10929:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ if (state.backtracking == 0) {
+
+ current = forceCreateModelElement(
+ grammarAccess.getEmptyStatementAccess().getEmptyStatementAction_0(),
+ current);
+
+ }
+
+ }
+
+ otherlv_1 = (Token) match(input, 23, 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"
+ // InternalAppliedStereotypeProperty.g:10949:1: entryRuleLocalNameDeclarationStatement returns [EObject current=null] : iv_ruleLocalNameDeclarationStatement= ruleLocalNameDeclarationStatement EOF ;
+ public final EObject entryRuleLocalNameDeclarationStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleLocalNameDeclarationStatement = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:10950:2: (iv_ruleLocalNameDeclarationStatement= ruleLocalNameDeclarationStatement EOF )
+ // InternalAppliedStereotypeProperty.g:10951: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"
+ // InternalAppliedStereotypeProperty.g:10958: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 {
+ // InternalAppliedStereotypeProperty.g:10961: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= ';' ) )
+ // InternalAppliedStereotypeProperty.g:10962: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= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:10962: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= ';' )
+ // InternalAppliedStereotypeProperty.g:10962: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= ';'
+ {
+ // InternalAppliedStereotypeProperty.g:10962: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 alt188 = 2;
+ int LA188_0 = input.LA(1);
+
+ if ((LA188_0 == 105)) {
+ alt188 = 1;
+ } else if (((LA188_0 >= RULE_ID && LA188_0 <= RULE_UNRESTRICTED_NAME) || LA188_0 == 51)) {
+ 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:
+ // InternalAppliedStereotypeProperty.g:10962: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 )
+ // )? )
+ {
+ // InternalAppliedStereotypeProperty.g:10962: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 ) )? )
+ // InternalAppliedStereotypeProperty.g:10962: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_14);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getLocalNameDeclarationStatementAccess().getLetKeyword_0_0_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:10966:1: ( (lv_name_1_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:10967:1: (lv_name_1_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:10967:1: (lv_name_1_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:10968:3: lv_name_1_0= ruleName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getNameNameParserRuleCall_0_0_1_0());
+
+ }
+ pushFollow(FOLLOW_49);
+ 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, 46, FOLLOW_4);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getLocalNameDeclarationStatementAccess().getColonKeyword_0_0_2());
+
+ }
+ // InternalAppliedStereotypeProperty.g:10988:1: ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) )
+ int alt184 = 2;
+ int LA184_0 = input.LA(1);
+
+ if ((LA184_0 == 51)) {
+ alt184 = 1;
+ } else if (((LA184_0 >= RULE_ID && LA184_0 <= RULE_UNRESTRICTED_NAME))) {
+ alt184 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 184, 0, input);
+
+ throw nvae;
+ }
+ switch (alt184) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:10988:2: ( (lv_isAny_3_0= 'any' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:10988:2: ( (lv_isAny_3_0= 'any' ) )
+ // InternalAppliedStereotypeProperty.g:10989:1: (lv_isAny_3_0= 'any' )
+ {
+ // InternalAppliedStereotypeProperty.g:10989:1: (lv_isAny_3_0= 'any' )
+ // InternalAppliedStereotypeProperty.g:10990: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:
+ // InternalAppliedStereotypeProperty.g:11004:6: ( (lv_typeName_4_0= ruleQualifiedName ) )
+ {
+ // InternalAppliedStereotypeProperty.g:11004:6: ( (lv_typeName_4_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:11005:1: (lv_typeName_4_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:11005:1: (lv_typeName_4_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:11006: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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:11022:3: ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )?
+ int alt185 = 2;
+ int LA185_0 = input.LA(1);
+
+ if ((LA185_0 == 52)) {
+ alt185 = 1;
+ }
+ switch (alt185) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:11023:1: (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator )
+ {
+ // InternalAppliedStereotypeProperty.g:11023:1: (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator )
+ // InternalAppliedStereotypeProperty.g:11024: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:
+ // InternalAppliedStereotypeProperty.g:11041:6: ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:11041:6: ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) )
+ // InternalAppliedStereotypeProperty.g:11041:7: ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) )
+ {
+ // InternalAppliedStereotypeProperty.g:11041:7: ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) )
+ int alt186 = 2;
+ int LA186_0 = input.LA(1);
+
+ if ((LA186_0 == 51)) {
+ alt186 = 1;
+ } else if (((LA186_0 >= RULE_ID && LA186_0 <= RULE_UNRESTRICTED_NAME))) {
+ alt186 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 186, 0, input);
+
+ throw nvae;
+ }
+ switch (alt186) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:11041:8: ( (lv_isAny_6_0= 'any' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:11041:8: ( (lv_isAny_6_0= 'any' ) )
+ // InternalAppliedStereotypeProperty.g:11042:1: (lv_isAny_6_0= 'any' )
+ {
+ // InternalAppliedStereotypeProperty.g:11042:1: (lv_isAny_6_0= 'any' )
+ // InternalAppliedStereotypeProperty.g:11043: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:
+ // InternalAppliedStereotypeProperty.g:11057:6: ( (lv_typeName_7_0= ruleQualifiedName ) )
+ {
+ // InternalAppliedStereotypeProperty.g:11057:6: ( (lv_typeName_7_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:11058:1: (lv_typeName_7_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:11058:1: (lv_typeName_7_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:11059: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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:11075:3: ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )?
+ int alt187 = 2;
+ int LA187_0 = input.LA(1);
+
+ if ((LA187_0 == 52)) {
+ alt187 = 1;
+ }
+ switch (alt187) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:11076:1: (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator )
+ {
+ // InternalAppliedStereotypeProperty.g:11076:1: (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator )
+ // InternalAppliedStereotypeProperty.g:11077:3: lv_hasMultiplicity_8_0= ruleMultiplicityIndicator
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_1_0());
+
+ }
+ pushFollow(FOLLOW_14);
+ 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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:11093:3: ( (lv_name_9_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:11094:1: (lv_name_9_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:11094:1: (lv_name_9_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:11095: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, 15, FOLLOW_3);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_10, grammarAccess.getLocalNameDeclarationStatementAccess().getEqualsSignKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:11115:1: ( (lv_expression_11_0= ruleInitializationExpression ) )
+ // InternalAppliedStereotypeProperty.g:11116:1: (lv_expression_11_0= ruleInitializationExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:11116:1: (lv_expression_11_0= ruleInitializationExpression )
+ // InternalAppliedStereotypeProperty.g:11117: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, 23, 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"
+ // InternalAppliedStereotypeProperty.g:11145:1: entryRuleInitializationExpression returns [EObject current=null] : iv_ruleInitializationExpression= ruleInitializationExpression EOF ;
+ public final EObject entryRuleInitializationExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleInitializationExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:11146:2: (iv_ruleInitializationExpression= ruleInitializationExpression EOF )
+ // InternalAppliedStereotypeProperty.g:11147: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"
+ // InternalAppliedStereotypeProperty.g:11154: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 {
+ // InternalAppliedStereotypeProperty.g:11157:28: ( (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression | this_InstanceInitializationExpression_2= ruleInstanceInitializationExpression )
+ // )
+ // InternalAppliedStereotypeProperty.g:11158:1: (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression | this_InstanceInitializationExpression_2= ruleInstanceInitializationExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:11158:1: (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression | this_InstanceInitializationExpression_2= ruleInstanceInitializationExpression )
+ int alt189 = 3;
+ switch (input.LA(1)) {
+ case RULE_BOOLEAN_VALUE:
+ case RULE_NATURAL_VALUE:
+ case RULE_STRING:
+ case RULE_ID:
+ case RULE_UNRESTRICTED_NAME:
+ case 17:
+ case 21:
+ case 51:
+ case 62:
+ case 63:
+ case 69:
+ case 70:
+ case 71:
+ case 72:
+ case 73:
+ case 74:
+ case 75:
+ case 76: {
+ alt189 = 1;
+ }
+ break;
+ case 64: {
+ switch (input.LA(2)) {
+ case RULE_ID:
+ case RULE_UNRESTRICTED_NAME: {
+ alt189 = 1;
+ }
+ break;
+ case 17: {
+ alt189 = 3;
+ }
+ break;
+ case 32: {
+ alt189 = 2;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 189, 2, input);
+
+ throw nvae;
+ }
+
+ }
+ break;
+ case 32: {
+ alt189 = 2;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 189, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt189) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:11159: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:
+ // InternalAppliedStereotypeProperty.g:11172: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:
+ // InternalAppliedStereotypeProperty.g:11185: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"
+ // InternalAppliedStereotypeProperty.g:11204:1: entryRuleInstanceInitializationExpression returns [EObject current=null] : iv_ruleInstanceInitializationExpression= ruleInstanceInitializationExpression EOF ;
+ public final EObject entryRuleInstanceInitializationExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleInstanceInitializationExpression = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:11205:2: (iv_ruleInstanceInitializationExpression= ruleInstanceInitializationExpression EOF )
+ // InternalAppliedStereotypeProperty.g:11206: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"
+ // InternalAppliedStereotypeProperty.g:11213: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 {
+ // InternalAppliedStereotypeProperty.g:11216:28: ( (otherlv_0= 'new' ( (lv_tuple_1_0= ruleTuple ) ) ) )
+ // InternalAppliedStereotypeProperty.g:11217:1: (otherlv_0= 'new' ( (lv_tuple_1_0= ruleTuple ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:11217:1: (otherlv_0= 'new' ( (lv_tuple_1_0= ruleTuple ) ) )
+ // InternalAppliedStereotypeProperty.g:11217:3: otherlv_0= 'new' ( (lv_tuple_1_0= ruleTuple ) )
+ {
+ otherlv_0 = (Token) match(input, 64, FOLLOW_44);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getInstanceInitializationExpressionAccess().getNewKeyword_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:11221:1: ( (lv_tuple_1_0= ruleTuple ) )
+ // InternalAppliedStereotypeProperty.g:11222:1: (lv_tuple_1_0= ruleTuple )
+ {
+ // InternalAppliedStereotypeProperty.g:11222:1: (lv_tuple_1_0= ruleTuple )
+ // InternalAppliedStereotypeProperty.g:11223: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"
+ // InternalAppliedStereotypeProperty.g:11247:1: entryRuleExpressionStatement returns [EObject current=null] : iv_ruleExpressionStatement= ruleExpressionStatement EOF ;
+ public final EObject entryRuleExpressionStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleExpressionStatement = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:11248:2: (iv_ruleExpressionStatement= ruleExpressionStatement EOF )
+ // InternalAppliedStereotypeProperty.g:11249: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"
+ // InternalAppliedStereotypeProperty.g:11256: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 {
+ // InternalAppliedStereotypeProperty.g:11259:28: ( ( ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';' ) )
+ // InternalAppliedStereotypeProperty.g:11260:1: ( ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:11260:1: ( ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';' )
+ // InternalAppliedStereotypeProperty.g:11260:2: ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';'
+ {
+ // InternalAppliedStereotypeProperty.g:11260:2: ( (lv_expression_0_0= ruleExpression ) )
+ // InternalAppliedStereotypeProperty.g:11261:1: (lv_expression_0_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:11261:1: (lv_expression_0_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:11262: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, 23, 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"
+ // InternalAppliedStereotypeProperty.g:11290:1: entryRuleIfStatement returns [EObject current=null] : iv_ruleIfStatement= ruleIfStatement EOF ;
+ public final EObject entryRuleIfStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleIfStatement = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:11291:2: (iv_ruleIfStatement= ruleIfStatement EOF )
+ // InternalAppliedStereotypeProperty.g:11292: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"
+ // InternalAppliedStereotypeProperty.g:11299: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 {
+ // InternalAppliedStereotypeProperty.g:11302: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 ) ) )? ) )
+ // InternalAppliedStereotypeProperty.g:11303: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 ) ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:11303: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 ) ) )? )
+ // InternalAppliedStereotypeProperty.g:11303: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_44);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getIfStatementAccess().getIfKeyword_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:11307:1: ( (lv_nonFinalClauses_1_0= ruleConcurrentClauses ) )
+ // InternalAppliedStereotypeProperty.g:11308:1: (lv_nonFinalClauses_1_0= ruleConcurrentClauses )
+ {
+ // InternalAppliedStereotypeProperty.g:11308:1: (lv_nonFinalClauses_1_0= ruleConcurrentClauses )
+ // InternalAppliedStereotypeProperty.g:11309: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:11325:2: (otherlv_2= 'else' otherlv_3= 'if' ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) ) )*
+ loop190: do {
+ int alt190 = 2;
+ int LA190_0 = input.LA(1);
+
+ if ((LA190_0 == 107)) {
+ int LA190_1 = input.LA(2);
+
+ if ((LA190_1 == 106)) {
+ alt190 = 1;
+ }
+
+
+ }
+
+
+ switch (alt190) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:11325: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_44);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_3, grammarAccess.getIfStatementAccess().getIfKeyword_2_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:11333:1: ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) )
+ // InternalAppliedStereotypeProperty.g:11334:1: (lv_nonFinalClauses_4_0= ruleConcurrentClauses )
+ {
+ // InternalAppliedStereotypeProperty.g:11334:1: (lv_nonFinalClauses_4_0= ruleConcurrentClauses )
+ // InternalAppliedStereotypeProperty.g:11335: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 loop190;
+ }
+ } while (true);
+
+ // InternalAppliedStereotypeProperty.g:11351:4: (otherlv_5= 'else' ( (lv_finalClause_6_0= ruleBlock ) ) )?
+ int alt191 = 2;
+ int LA191_0 = input.LA(1);
+
+ if ((LA191_0 == 107)) {
+ alt191 = 1;
+ }
+ switch (alt191) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:11351:6: otherlv_5= 'else' ( (lv_finalClause_6_0= ruleBlock ) )
+ {
+ otherlv_5 = (Token) match(input, 107, FOLLOW_19);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_5, grammarAccess.getIfStatementAccess().getElseKeyword_3_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:11355:1: ( (lv_finalClause_6_0= ruleBlock ) )
+ // InternalAppliedStereotypeProperty.g:11356:1: (lv_finalClause_6_0= ruleBlock )
+ {
+ // InternalAppliedStereotypeProperty.g:11356:1: (lv_finalClause_6_0= ruleBlock )
+ // InternalAppliedStereotypeProperty.g:11357: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"
+ // InternalAppliedStereotypeProperty.g:11381:1: entryRuleConcurrentClauses returns [EObject current=null] : iv_ruleConcurrentClauses= ruleConcurrentClauses EOF ;
+ public final EObject entryRuleConcurrentClauses() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleConcurrentClauses = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:11382:2: (iv_ruleConcurrentClauses= ruleConcurrentClauses EOF )
+ // InternalAppliedStereotypeProperty.g:11383: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"
+ // InternalAppliedStereotypeProperty.g:11390: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 {
+ // InternalAppliedStereotypeProperty.g:11393:28: ( ( ( (lv_clause_0_0= ruleNonFinalClause ) ) (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )* ) )
+ // InternalAppliedStereotypeProperty.g:11394:1: ( ( (lv_clause_0_0= ruleNonFinalClause ) ) (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:11394:1: ( ( (lv_clause_0_0= ruleNonFinalClause ) ) (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )* )
+ // InternalAppliedStereotypeProperty.g:11394:2: ( (lv_clause_0_0= ruleNonFinalClause ) ) (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )*
+ {
+ // InternalAppliedStereotypeProperty.g:11394:2: ( (lv_clause_0_0= ruleNonFinalClause ) )
+ // InternalAppliedStereotypeProperty.g:11395:1: (lv_clause_0_0= ruleNonFinalClause )
+ {
+ // InternalAppliedStereotypeProperty.g:11395:1: (lv_clause_0_0= ruleNonFinalClause )
+ // InternalAppliedStereotypeProperty.g:11396: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:11412:2: (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )*
+ loop192: do {
+ int alt192 = 2;
+ int LA192_0 = input.LA(1);
+
+ if ((LA192_0 == 108)) {
+ alt192 = 1;
+ }
+
+
+ switch (alt192) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:11412: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_44);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getConcurrentClausesAccess().getIfKeyword_1_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:11420:1: ( (lv_clause_3_0= ruleNonFinalClause ) )
+ // InternalAppliedStereotypeProperty.g:11421:1: (lv_clause_3_0= ruleNonFinalClause )
+ {
+ // InternalAppliedStereotypeProperty.g:11421:1: (lv_clause_3_0= ruleNonFinalClause )
+ // InternalAppliedStereotypeProperty.g:11422: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 loop192;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleConcurrentClauses"
+
+
+ // $ANTLR start "entryRuleNonFinalClause"
+ // InternalAppliedStereotypeProperty.g:11446:1: entryRuleNonFinalClause returns [EObject current=null] : iv_ruleNonFinalClause= ruleNonFinalClause EOF ;
+ public final EObject entryRuleNonFinalClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNonFinalClause = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:11447:2: (iv_ruleNonFinalClause= ruleNonFinalClause EOF )
+ // InternalAppliedStereotypeProperty.g:11448: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"
+ // InternalAppliedStereotypeProperty.g:11455: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 {
+ // InternalAppliedStereotypeProperty.g:11458:28: ( (otherlv_0= '(' ( (lv_condition_1_0= ruleExpression ) ) otherlv_2= ')' ( (lv_body_3_0= ruleBlock ) ) ) )
+ // InternalAppliedStereotypeProperty.g:11459:1: (otherlv_0= '(' ( (lv_condition_1_0= ruleExpression ) ) otherlv_2= ')' ( (lv_body_3_0= ruleBlock ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:11459:1: (otherlv_0= '(' ( (lv_condition_1_0= ruleExpression ) ) otherlv_2= ')' ( (lv_body_3_0= ruleBlock ) ) )
+ // InternalAppliedStereotypeProperty.g:11459:3: otherlv_0= '(' ( (lv_condition_1_0= ruleExpression ) ) otherlv_2= ')' ( (lv_body_3_0= ruleBlock ) )
+ {
+ otherlv_0 = (Token) match(input, 17, FOLLOW_69);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getNonFinalClauseAccess().getLeftParenthesisKeyword_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:11463:1: ( (lv_condition_1_0= ruleExpression ) )
+ // InternalAppliedStereotypeProperty.g:11464:1: (lv_condition_1_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:11464:1: (lv_condition_1_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:11465: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, 18, FOLLOW_19);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getNonFinalClauseAccess().getRightParenthesisKeyword_2());
+
+ }
+ // InternalAppliedStereotypeProperty.g:11485:1: ( (lv_body_3_0= ruleBlock ) )
+ // InternalAppliedStereotypeProperty.g:11486:1: (lv_body_3_0= ruleBlock )
+ {
+ // InternalAppliedStereotypeProperty.g:11486:1: (lv_body_3_0= ruleBlock )
+ // InternalAppliedStereotypeProperty.g:11487: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"
+ // InternalAppliedStereotypeProperty.g:11511:1: entryRuleSwitchStatement returns [EObject current=null] : iv_ruleSwitchStatement= ruleSwitchStatement EOF ;
+ public final EObject entryRuleSwitchStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSwitchStatement = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:11512:2: (iv_ruleSwitchStatement= ruleSwitchStatement EOF )
+ // InternalAppliedStereotypeProperty.g:11513: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"
+ // InternalAppliedStereotypeProperty.g:11520: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 {
+ // InternalAppliedStereotypeProperty.g:11523: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= '}' ) )
+ // InternalAppliedStereotypeProperty.g:11524: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= '}' )
+ {
+ // InternalAppliedStereotypeProperty.g:11524: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= '}' )
+ // InternalAppliedStereotypeProperty.g:11524: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_44);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getSwitchStatementAccess().getSwitchKeyword_0());
+
+ }
+ otherlv_1 = (Token) match(input, 17, FOLLOW_69);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getSwitchStatementAccess().getLeftParenthesisKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:11532:1: ( (lv_expression_2_0= ruleExpression ) )
+ // InternalAppliedStereotypeProperty.g:11533:1: (lv_expression_2_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:11533:1: (lv_expression_2_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:11534: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, 18, FOLLOW_19);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_3, grammarAccess.getSwitchStatementAccess().getRightParenthesisKeyword_3());
+
+ }
+ otherlv_4 = (Token) match(input, 32, FOLLOW_102);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_4, grammarAccess.getSwitchStatementAccess().getLeftCurlyBracketKeyword_4());
+
+ }
+ // InternalAppliedStereotypeProperty.g:11558:1: ( (lv_nonDefaultClause_5_0= ruleSwitchClause ) )*
+ loop193: do {
+ int alt193 = 2;
+ int LA193_0 = input.LA(1);
+
+ if ((LA193_0 == 110)) {
+ alt193 = 1;
+ }
+
+
+ switch (alt193) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:11559:1: (lv_nonDefaultClause_5_0= ruleSwitchClause )
+ {
+ // InternalAppliedStereotypeProperty.g:11559:1: (lv_nonDefaultClause_5_0= ruleSwitchClause )
+ // InternalAppliedStereotypeProperty.g:11560: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 loop193;
+ }
+ } while (true);
+
+ // InternalAppliedStereotypeProperty.g:11576:3: ( (lv_defaultClause_6_0= ruleSwitchDefaultClause ) )?
+ int alt194 = 2;
+ int LA194_0 = input.LA(1);
+
+ if ((LA194_0 == 111)) {
+ alt194 = 1;
+ }
+ switch (alt194) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:11577:1: (lv_defaultClause_6_0= ruleSwitchDefaultClause )
+ {
+ // InternalAppliedStereotypeProperty.g:11577:1: (lv_defaultClause_6_0= ruleSwitchDefaultClause )
+ // InternalAppliedStereotypeProperty.g:11578: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, 33, 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"
+ // InternalAppliedStereotypeProperty.g:11606:1: entryRuleSwitchClause returns [EObject current=null] : iv_ruleSwitchClause= ruleSwitchClause EOF ;
+ public final EObject entryRuleSwitchClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSwitchClause = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:11607:2: (iv_ruleSwitchClause= ruleSwitchClause EOF )
+ // InternalAppliedStereotypeProperty.g:11608: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"
+ // InternalAppliedStereotypeProperty.g:11615: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 {
+ // InternalAppliedStereotypeProperty.g:11618:28: ( ( ( (lv_case_0_0= ruleSwitchCase ) ) ( (lv_case_1_0= ruleSwitchCase ) )* ( (lv_block_2_0= ruleNonEmptyStatementSequence ) ) ) )
+ // InternalAppliedStereotypeProperty.g:11619:1: ( ( (lv_case_0_0= ruleSwitchCase ) ) ( (lv_case_1_0= ruleSwitchCase ) )* ( (lv_block_2_0= ruleNonEmptyStatementSequence ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:11619:1: ( ( (lv_case_0_0= ruleSwitchCase ) ) ( (lv_case_1_0= ruleSwitchCase ) )* ( (lv_block_2_0= ruleNonEmptyStatementSequence ) ) )
+ // InternalAppliedStereotypeProperty.g:11619:2: ( (lv_case_0_0= ruleSwitchCase ) ) ( (lv_case_1_0= ruleSwitchCase ) )* ( (lv_block_2_0= ruleNonEmptyStatementSequence ) )
+ {
+ // InternalAppliedStereotypeProperty.g:11619:2: ( (lv_case_0_0= ruleSwitchCase ) )
+ // InternalAppliedStereotypeProperty.g:11620:1: (lv_case_0_0= ruleSwitchCase )
+ {
+ // InternalAppliedStereotypeProperty.g:11620:1: (lv_case_0_0= ruleSwitchCase )
+ // InternalAppliedStereotypeProperty.g:11621: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:11637:2: ( (lv_case_1_0= ruleSwitchCase ) )*
+ loop195: do {
+ int alt195 = 2;
+ int LA195_0 = input.LA(1);
+
+ if ((LA195_0 == 110)) {
+ alt195 = 1;
+ }
+
+
+ switch (alt195) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:11638:1: (lv_case_1_0= ruleSwitchCase )
+ {
+ // InternalAppliedStereotypeProperty.g:11638:1: (lv_case_1_0= ruleSwitchCase )
+ // InternalAppliedStereotypeProperty.g:11639: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 loop195;
+ }
+ } while (true);
+
+ // InternalAppliedStereotypeProperty.g:11655:3: ( (lv_block_2_0= ruleNonEmptyStatementSequence ) )
+ // InternalAppliedStereotypeProperty.g:11656:1: (lv_block_2_0= ruleNonEmptyStatementSequence )
+ {
+ // InternalAppliedStereotypeProperty.g:11656:1: (lv_block_2_0= ruleNonEmptyStatementSequence )
+ // InternalAppliedStereotypeProperty.g:11657: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"
+ // InternalAppliedStereotypeProperty.g:11681:1: entryRuleSwitchCase returns [EObject current=null] : iv_ruleSwitchCase= ruleSwitchCase EOF ;
+ public final EObject entryRuleSwitchCase() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSwitchCase = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:11682:2: (iv_ruleSwitchCase= ruleSwitchCase EOF )
+ // InternalAppliedStereotypeProperty.g:11683: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"
+ // InternalAppliedStereotypeProperty.g:11690: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 {
+ // InternalAppliedStereotypeProperty.g:11693:28: ( (otherlv_0= 'case' this_Expression_1= ruleExpression otherlv_2= ':' ) )
+ // InternalAppliedStereotypeProperty.g:11694:1: (otherlv_0= 'case' this_Expression_1= ruleExpression otherlv_2= ':' )
+ {
+ // InternalAppliedStereotypeProperty.g:11694:1: (otherlv_0= 'case' this_Expression_1= ruleExpression otherlv_2= ':' )
+ // InternalAppliedStereotypeProperty.g:11694: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_49);
+ 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, 46, 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"
+ // InternalAppliedStereotypeProperty.g:11722:1: entryRuleSwitchDefaultClause returns [EObject current=null] : iv_ruleSwitchDefaultClause= ruleSwitchDefaultClause EOF ;
+ public final EObject entryRuleSwitchDefaultClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSwitchDefaultClause = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:11723:2: (iv_ruleSwitchDefaultClause= ruleSwitchDefaultClause EOF )
+ // InternalAppliedStereotypeProperty.g:11724: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"
+ // InternalAppliedStereotypeProperty.g:11731: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 {
+ // InternalAppliedStereotypeProperty.g:11734:28: ( (otherlv_0= 'default' otherlv_1= ':' this_NonEmptyStatementSequence_2= ruleNonEmptyStatementSequence ) )
+ // InternalAppliedStereotypeProperty.g:11735:1: (otherlv_0= 'default' otherlv_1= ':' this_NonEmptyStatementSequence_2= ruleNonEmptyStatementSequence )
+ {
+ // InternalAppliedStereotypeProperty.g:11735:1: (otherlv_0= 'default' otherlv_1= ':' this_NonEmptyStatementSequence_2= ruleNonEmptyStatementSequence )
+ // InternalAppliedStereotypeProperty.g:11735:3: otherlv_0= 'default' otherlv_1= ':' this_NonEmptyStatementSequence_2= ruleNonEmptyStatementSequence
+ {
+ otherlv_0 = (Token) match(input, 111, FOLLOW_49);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getSwitchDefaultClauseAccess().getDefaultKeyword_0());
+
+ }
+ otherlv_1 = (Token) match(input, 46, 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"
+ // InternalAppliedStereotypeProperty.g:11763:1: entryRuleNonEmptyStatementSequence returns [EObject current=null] : iv_ruleNonEmptyStatementSequence= ruleNonEmptyStatementSequence EOF ;
+ public final EObject entryRuleNonEmptyStatementSequence() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNonEmptyStatementSequence = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:11764:2: (iv_ruleNonEmptyStatementSequence= ruleNonEmptyStatementSequence EOF )
+ // InternalAppliedStereotypeProperty.g:11765: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"
+ // InternalAppliedStereotypeProperty.g:11772: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 {
+ // InternalAppliedStereotypeProperty.g:11775:28: ( ( (lv_statement_0_0= ruleDocumentedStatement ) )+ )
+ // InternalAppliedStereotypeProperty.g:11776:1: ( (lv_statement_0_0= ruleDocumentedStatement ) )+
+ {
+ // InternalAppliedStereotypeProperty.g:11776:1: ( (lv_statement_0_0= ruleDocumentedStatement ) )+
+ int cnt196 = 0;
+ loop196: do {
+ int alt196 = 2;
+ int LA196_0 = input.LA(1);
+
+ if (((LA196_0 >= RULE_BOOLEAN_VALUE && LA196_0 <= RULE_INLINE_STATEMENT) || LA196_0 == 17 || LA196_0 == 21 || LA196_0 == 23 || LA196_0 == 32 || LA196_0 == 40 || LA196_0 == 51 || (LA196_0 >= 62 && LA196_0 <= 64)
+ || (LA196_0 >= 69 && LA196_0 <= 76) || (LA196_0 >= 105 && LA196_0 <= 106) || LA196_0 == 109 || (LA196_0 >= 112 && LA196_0 <= 117))) {
+ alt196 = 1;
+ }
+
+
+ switch (alt196) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:11777:1: (lv_statement_0_0= ruleDocumentedStatement )
+ {
+ // InternalAppliedStereotypeProperty.g:11777:1: (lv_statement_0_0= ruleDocumentedStatement )
+ // InternalAppliedStereotypeProperty.g:11778: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 (cnt196 >= 1)
+ break loop196;
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ EarlyExitException eee = new EarlyExitException(196, input);
+ throw eee;
+ }
+ cnt196++;
+ } while (true);
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNonEmptyStatementSequence"
+
+
+ // $ANTLR start "entryRuleWhileStatement"
+ // InternalAppliedStereotypeProperty.g:11802:1: entryRuleWhileStatement returns [EObject current=null] : iv_ruleWhileStatement= ruleWhileStatement EOF ;
+ public final EObject entryRuleWhileStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleWhileStatement = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:11803:2: (iv_ruleWhileStatement= ruleWhileStatement EOF )
+ // InternalAppliedStereotypeProperty.g:11804: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"
+ // InternalAppliedStereotypeProperty.g:11811: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 {
+ // InternalAppliedStereotypeProperty.g:11814:28: ( (otherlv_0= 'while' otherlv_1= '(' ( (lv_condition_2_0= ruleExpression ) ) otherlv_3= ')' ( (lv_body_4_0= ruleBlock ) ) ) )
+ // InternalAppliedStereotypeProperty.g:11815:1: (otherlv_0= 'while' otherlv_1= '(' ( (lv_condition_2_0= ruleExpression ) ) otherlv_3= ')' ( (lv_body_4_0= ruleBlock ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:11815:1: (otherlv_0= 'while' otherlv_1= '(' ( (lv_condition_2_0= ruleExpression ) ) otherlv_3= ')' ( (lv_body_4_0= ruleBlock ) ) )
+ // InternalAppliedStereotypeProperty.g:11815: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_44);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getWhileStatementAccess().getWhileKeyword_0());
+
+ }
+ otherlv_1 = (Token) match(input, 17, FOLLOW_69);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getWhileStatementAccess().getLeftParenthesisKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:11823:1: ( (lv_condition_2_0= ruleExpression ) )
+ // InternalAppliedStereotypeProperty.g:11824:1: (lv_condition_2_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:11824:1: (lv_condition_2_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:11825: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, 18, FOLLOW_19);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_3, grammarAccess.getWhileStatementAccess().getRightParenthesisKeyword_3());
+
+ }
+ // InternalAppliedStereotypeProperty.g:11845:1: ( (lv_body_4_0= ruleBlock ) )
+ // InternalAppliedStereotypeProperty.g:11846:1: (lv_body_4_0= ruleBlock )
+ {
+ // InternalAppliedStereotypeProperty.g:11846:1: (lv_body_4_0= ruleBlock )
+ // InternalAppliedStereotypeProperty.g:11847: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"
+ // InternalAppliedStereotypeProperty.g:11871:1: entryRuleDoStatement returns [EObject current=null] : iv_ruleDoStatement= ruleDoStatement EOF ;
+ public final EObject entryRuleDoStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleDoStatement = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:11872:2: (iv_ruleDoStatement= ruleDoStatement EOF )
+ // InternalAppliedStereotypeProperty.g:11873: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"
+ // InternalAppliedStereotypeProperty.g:11880: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 {
+ // InternalAppliedStereotypeProperty.g:11883:28: ( (otherlv_0= 'do' ( (lv_body_1_0= ruleBlock ) ) otherlv_2= 'while' otherlv_3= '(' ( (lv_condition_4_0= ruleExpression ) ) otherlv_5= ')' otherlv_6= ';' ) )
+ // InternalAppliedStereotypeProperty.g:11884:1: (otherlv_0= 'do' ( (lv_body_1_0= ruleBlock ) ) otherlv_2= 'while' otherlv_3= '(' ( (lv_condition_4_0= ruleExpression ) ) otherlv_5= ')' otherlv_6= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:11884:1: (otherlv_0= 'do' ( (lv_body_1_0= ruleBlock ) ) otherlv_2= 'while' otherlv_3= '(' ( (lv_condition_4_0= ruleExpression ) ) otherlv_5= ')' otherlv_6= ';' )
+ // InternalAppliedStereotypeProperty.g:11884: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, 40, FOLLOW_19);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getDoStatementAccess().getDoKeyword_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:11888:1: ( (lv_body_1_0= ruleBlock ) )
+ // InternalAppliedStereotypeProperty.g:11889:1: (lv_body_1_0= ruleBlock )
+ {
+ // InternalAppliedStereotypeProperty.g:11889:1: (lv_body_1_0= ruleBlock )
+ // InternalAppliedStereotypeProperty.g:11890: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_44);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_2, grammarAccess.getDoStatementAccess().getWhileKeyword_2());
+
+ }
+ otherlv_3 = (Token) match(input, 17, FOLLOW_69);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_3, grammarAccess.getDoStatementAccess().getLeftParenthesisKeyword_3());
+
+ }
+ // InternalAppliedStereotypeProperty.g:11914:1: ( (lv_condition_4_0= ruleExpression ) )
+ // InternalAppliedStereotypeProperty.g:11915:1: (lv_condition_4_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:11915:1: (lv_condition_4_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:11916: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, 18, FOLLOW_11);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_5, grammarAccess.getDoStatementAccess().getRightParenthesisKeyword_5());
+
+ }
+ otherlv_6 = (Token) match(input, 23, 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"
+ // InternalAppliedStereotypeProperty.g:11948:1: entryRuleForStatement returns [EObject current=null] : iv_ruleForStatement= ruleForStatement EOF ;
+ public final EObject entryRuleForStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleForStatement = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:11949:2: (iv_ruleForStatement= ruleForStatement EOF )
+ // InternalAppliedStereotypeProperty.g:11950: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"
+ // InternalAppliedStereotypeProperty.g:11957: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 {
+ // InternalAppliedStereotypeProperty.g:11960: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 ) ) ) )
+ // InternalAppliedStereotypeProperty.g:11961: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 ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:11961: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 ) ) )
+ // InternalAppliedStereotypeProperty.g:11961: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_44);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getForStatementAccess().getForKeyword_0());
+
+ }
+ otherlv_1 = (Token) match(input, 17, FOLLOW_4);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getForStatementAccess().getLeftParenthesisKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:11969:1: ( (lv_variableDefinition_2_0= ruleLoopVariableDefinition ) )
+ // InternalAppliedStereotypeProperty.g:11970:1: (lv_variableDefinition_2_0= ruleLoopVariableDefinition )
+ {
+ // InternalAppliedStereotypeProperty.g:11970:1: (lv_variableDefinition_2_0= ruleLoopVariableDefinition )
+ // InternalAppliedStereotypeProperty.g:11971:3: lv_variableDefinition_2_0= ruleLoopVariableDefinition
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getForStatementAccess().getVariableDefinitionLoopVariableDefinitionParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_46);
+ 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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:11987:2: (otherlv_3= ',' ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) ) )*
+ loop197: do {
+ int alt197 = 2;
+ int LA197_0 = input.LA(1);
+
+ if ((LA197_0 == 19)) {
+ alt197 = 1;
+ }
+
+
+ switch (alt197) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:11987:4: otherlv_3= ',' ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) )
+ {
+ otherlv_3 = (Token) match(input, 19, FOLLOW_4);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_3, grammarAccess.getForStatementAccess().getCommaKeyword_3_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:11991:1: ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) )
+ // InternalAppliedStereotypeProperty.g:11992:1: (lv_variableDefinition_4_0= ruleLoopVariableDefinition )
+ {
+ // InternalAppliedStereotypeProperty.g:11992:1: (lv_variableDefinition_4_0= ruleLoopVariableDefinition )
+ // InternalAppliedStereotypeProperty.g:11993:3: lv_variableDefinition_4_0= ruleLoopVariableDefinition
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getForStatementAccess().getVariableDefinitionLoopVariableDefinitionParserRuleCall_3_1_0());
+
+ }
+ pushFollow(FOLLOW_46);
+ 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 loop197;
+ }
+ } while (true);
+
+ otherlv_5 = (Token) match(input, 18, FOLLOW_19);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_5, grammarAccess.getForStatementAccess().getRightParenthesisKeyword_4());
+
+ }
+ // InternalAppliedStereotypeProperty.g:12013:1: ( (lv_body_6_0= ruleBlock ) )
+ // InternalAppliedStereotypeProperty.g:12014:1: (lv_body_6_0= ruleBlock )
+ {
+ // InternalAppliedStereotypeProperty.g:12014:1: (lv_body_6_0= ruleBlock )
+ // InternalAppliedStereotypeProperty.g:12015: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"
+ // InternalAppliedStereotypeProperty.g:12039:1: entryRuleLoopVariableDefinition returns [EObject current=null] : iv_ruleLoopVariableDefinition= ruleLoopVariableDefinition EOF ;
+ public final EObject entryRuleLoopVariableDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleLoopVariableDefinition = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:12040:2: (iv_ruleLoopVariableDefinition= ruleLoopVariableDefinition EOF )
+ // InternalAppliedStereotypeProperty.g:12041: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"
+ // InternalAppliedStereotypeProperty.g:12048: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 {
+ // InternalAppliedStereotypeProperty.g:12051: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 ) ) ) ) )
+ // InternalAppliedStereotypeProperty.g:12052: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 ) ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:12052: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 alt200 = 2;
+ switch (input.LA(1)) {
+ case RULE_ID: {
+ int LA200_1 = input.LA(2);
+
+ if (((LA200_1 >= RULE_ID && LA200_1 <= RULE_UNRESTRICTED_NAME) || (LA200_1 >= 26 && LA200_1 <= 27) || LA200_1 == 37)) {
+ alt200 = 2;
+ } else if ((LA200_1 == 47)) {
+ alt200 = 1;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 200, 1, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_UNRESTRICTED_NAME: {
+ int LA200_2 = input.LA(2);
+
+ if (((LA200_2 >= RULE_ID && LA200_2 <= RULE_UNRESTRICTED_NAME) || (LA200_2 >= 26 && LA200_2 <= 27) || LA200_2 == 37)) {
+ alt200 = 2;
+ } else if ((LA200_2 == 47)) {
+ alt200 = 1;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 200, 2, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case 51: {
+ alt200 = 2;
+ }
+ break;
+ default:
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 200, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt200) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:12052:2: ( ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:12052:2: ( ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )? )
+ // InternalAppliedStereotypeProperty.g:12052:3: ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )?
+ {
+ // InternalAppliedStereotypeProperty.g:12052:3: ( (lv_variable_0_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:12053:1: (lv_variable_0_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:12053:1: (lv_variable_0_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:12054: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:12070:2: ( (lv_typeIsInferred_1_0= 'in' ) )
+ // InternalAppliedStereotypeProperty.g:12071:1: (lv_typeIsInferred_1_0= 'in' )
+ {
+ // InternalAppliedStereotypeProperty.g:12071:1: (lv_typeIsInferred_1_0= 'in' )
+ // InternalAppliedStereotypeProperty.g:12072:3: lv_typeIsInferred_1_0= 'in'
+ {
+ lv_typeIsInferred_1_0 = (Token) match(input, 47, 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");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:12085:2: ( (lv_expression1_2_0= ruleExpression ) )
+ // InternalAppliedStereotypeProperty.g:12086:1: (lv_expression1_2_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:12086:1: (lv_expression1_2_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:12087: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:12103:2: (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )?
+ int alt198 = 2;
+ int LA198_0 = input.LA(1);
+
+ if ((LA198_0 == 54)) {
+ alt198 = 1;
+ }
+ switch (alt198) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:12103: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());
+
+ }
+ // InternalAppliedStereotypeProperty.g:12107:1: ( (lv_expression2_4_0= ruleExpression ) )
+ // InternalAppliedStereotypeProperty.g:12108:1: (lv_expression2_4_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:12108:1: (lv_expression2_4_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:12109: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:
+ // InternalAppliedStereotypeProperty.g:12126:6: ( ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:12126:6: ( ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) ) )
+ // InternalAppliedStereotypeProperty.g:12126:7: ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) )
+ {
+ // InternalAppliedStereotypeProperty.g:12126:7: ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) )
+ int alt199 = 2;
+ int LA199_0 = input.LA(1);
+
+ if ((LA199_0 == 51)) {
+ alt199 = 1;
+ } else if (((LA199_0 >= RULE_ID && LA199_0 <= RULE_UNRESTRICTED_NAME))) {
+ alt199 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 199, 0, input);
+
+ throw nvae;
+ }
+ switch (alt199) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:12126:8: ( (lv_isAny_5_0= 'any' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:12126:8: ( (lv_isAny_5_0= 'any' ) )
+ // InternalAppliedStereotypeProperty.g:12127:1: (lv_isAny_5_0= 'any' )
+ {
+ // InternalAppliedStereotypeProperty.g:12127:1: (lv_isAny_5_0= 'any' )
+ // InternalAppliedStereotypeProperty.g:12128:3: lv_isAny_5_0= 'any'
+ {
+ lv_isAny_5_0 = (Token) match(input, 51, FOLLOW_14);
+ 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:
+ // InternalAppliedStereotypeProperty.g:12142:6: ( (lv_typeName_6_0= ruleQualifiedName ) )
+ {
+ // InternalAppliedStereotypeProperty.g:12142:6: ( (lv_typeName_6_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:12143:1: (lv_typeName_6_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:12143:1: (lv_typeName_6_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:12144:3: lv_typeName_6_0= ruleQualifiedName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getTypeNameQualifiedNameParserRuleCall_1_0_1_0());
+
+ }
+ pushFollow(FOLLOW_14);
+ 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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:12160:3: ( (lv_variable_7_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:12161:1: (lv_variable_7_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:12161:1: (lv_variable_7_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:12162:3: lv_variable_7_0= ruleName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getVariableNameParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_49);
+ 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, 46, FOLLOW_69);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_8, grammarAccess.getLoopVariableDefinitionAccess().getColonKeyword_1_2());
+
+ }
+ // InternalAppliedStereotypeProperty.g:12182:1: ( (lv_expression1_9_0= ruleExpression ) )
+ // InternalAppliedStereotypeProperty.g:12183:1: (lv_expression1_9_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:12183:1: (lv_expression1_9_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:12184: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"
+ // InternalAppliedStereotypeProperty.g:12208:1: entryRuleBreakStatement returns [EObject current=null] : iv_ruleBreakStatement= ruleBreakStatement EOF ;
+ public final EObject entryRuleBreakStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBreakStatement = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:12209:2: (iv_ruleBreakStatement= ruleBreakStatement EOF )
+ // InternalAppliedStereotypeProperty.g:12210: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"
+ // InternalAppliedStereotypeProperty.g:12217: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 {
+ // InternalAppliedStereotypeProperty.g:12220:28: ( ( () otherlv_1= 'break' otherlv_2= ';' ) )
+ // InternalAppliedStereotypeProperty.g:12221:1: ( () otherlv_1= 'break' otherlv_2= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:12221:1: ( () otherlv_1= 'break' otherlv_2= ';' )
+ // InternalAppliedStereotypeProperty.g:12221:2: () otherlv_1= 'break' otherlv_2= ';'
+ {
+ // InternalAppliedStereotypeProperty.g:12221:2: ()
+ // InternalAppliedStereotypeProperty.g:12222: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, 23, 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"
+ // InternalAppliedStereotypeProperty.g:12246:1: entryRuleReturnStatement returns [EObject current=null] : iv_ruleReturnStatement= ruleReturnStatement EOF ;
+ public final EObject entryRuleReturnStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleReturnStatement = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:12247:2: (iv_ruleReturnStatement= ruleReturnStatement EOF )
+ // InternalAppliedStereotypeProperty.g:12248: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"
+ // InternalAppliedStereotypeProperty.g:12255: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 {
+ // InternalAppliedStereotypeProperty.g:12258:28: ( ( () otherlv_1= 'return' ( (lv_expression_2_0= ruleExpression ) )? otherlv_3= ';' ) )
+ // InternalAppliedStereotypeProperty.g:12259:1: ( () otherlv_1= 'return' ( (lv_expression_2_0= ruleExpression ) )? otherlv_3= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:12259:1: ( () otherlv_1= 'return' ( (lv_expression_2_0= ruleExpression ) )? otherlv_3= ';' )
+ // InternalAppliedStereotypeProperty.g:12259:2: () otherlv_1= 'return' ( (lv_expression_2_0= ruleExpression ) )? otherlv_3= ';'
+ {
+ // InternalAppliedStereotypeProperty.g:12259:2: ()
+ // InternalAppliedStereotypeProperty.g:12260: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());
+
+ }
+ // InternalAppliedStereotypeProperty.g:12272:1: ( (lv_expression_2_0= ruleExpression ) )?
+ int alt201 = 2;
+ int LA201_0 = input.LA(1);
+
+ if (((LA201_0 >= RULE_BOOLEAN_VALUE && LA201_0 <= RULE_STRING) || (LA201_0 >= RULE_ID && LA201_0 <= RULE_UNRESTRICTED_NAME) || LA201_0 == 17 || LA201_0 == 21 || LA201_0 == 51 || (LA201_0 >= 62 && LA201_0 <= 64)
+ || (LA201_0 >= 69 && LA201_0 <= 76))) {
+ alt201 = 1;
+ }
+ switch (alt201) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:12273:1: (lv_expression_2_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:12273:1: (lv_expression_2_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:12274: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, 23, 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"
+ // InternalAppliedStereotypeProperty.g:12302:1: entryRuleAcceptStatement returns [EObject current=null] : iv_ruleAcceptStatement= ruleAcceptStatement EOF ;
+ public final EObject entryRuleAcceptStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAcceptStatement = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:12303:2: (iv_ruleAcceptStatement= ruleAcceptStatement EOF )
+ // InternalAppliedStereotypeProperty.g:12304: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"
+ // InternalAppliedStereotypeProperty.g:12311: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 {
+ // InternalAppliedStereotypeProperty.g:12314:28: ( ( ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' ) | ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* ) ) )
+ // InternalAppliedStereotypeProperty.g:12315:1: ( ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' ) | ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* ) )
+ {
+ // InternalAppliedStereotypeProperty.g:12315:1: ( ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' ) | ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* ) )
+ int alt203 = 2;
+ int LA203_0 = input.LA(1);
+
+ if ((LA203_0 == 116)) {
+ int LA203_1 = input.LA(2);
+
+ if ((synpred269_InternalAppliedStereotypeProperty())) {
+ alt203 = 1;
+ } else if ((true)) {
+ alt203 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 203, 1, input);
+
+ throw nvae;
+ }
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 203, 0, input);
+
+ throw nvae;
+ }
+ switch (alt203) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:12315:2: ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:12315:2: ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' )
+ // InternalAppliedStereotypeProperty.g:12315:3: ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';'
+ {
+ // InternalAppliedStereotypeProperty.g:12315:3: ( (lv_acceptBlock_0_0= ruleAcceptClause ) )
+ // InternalAppliedStereotypeProperty.g:12316:1: (lv_acceptBlock_0_0= ruleAcceptClause )
+ {
+ // InternalAppliedStereotypeProperty.g:12316:1: (lv_acceptBlock_0_0= ruleAcceptClause )
+ // InternalAppliedStereotypeProperty.g:12317: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, 23, FOLLOW_2);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getAcceptStatementAccess().getSemicolonKeyword_0_1());
+
+ }
+
+ }
+
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:12338:6: ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:12338:6: ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* )
+ // InternalAppliedStereotypeProperty.g:12338:7: ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )*
+ {
+ // InternalAppliedStereotypeProperty.g:12338:7: ( (lv_acceptBlock_2_0= ruleAcceptBlock ) )
+ // InternalAppliedStereotypeProperty.g:12339:1: (lv_acceptBlock_2_0= ruleAcceptBlock )
+ {
+ // InternalAppliedStereotypeProperty.g:12339:1: (lv_acceptBlock_2_0= ruleAcceptBlock )
+ // InternalAppliedStereotypeProperty.g:12340: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:12356:2: (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )*
+ loop202: do {
+ int alt202 = 2;
+ int LA202_0 = input.LA(1);
+
+ if ((LA202_0 == 108)) {
+ alt202 = 1;
+ }
+
+
+ switch (alt202) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:12356: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());
+
+ }
+ // InternalAppliedStereotypeProperty.g:12360:1: ( (lv_acceptBlock_4_0= ruleAcceptBlock ) )
+ // InternalAppliedStereotypeProperty.g:12361:1: (lv_acceptBlock_4_0= ruleAcceptBlock )
+ {
+ // InternalAppliedStereotypeProperty.g:12361:1: (lv_acceptBlock_4_0= ruleAcceptBlock )
+ // InternalAppliedStereotypeProperty.g:12362: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 loop202;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAcceptStatement"
+
+
+ // $ANTLR start "entryRuleAcceptBlock"
+ // InternalAppliedStereotypeProperty.g:12386:1: entryRuleAcceptBlock returns [EObject current=null] : iv_ruleAcceptBlock= ruleAcceptBlock EOF ;
+ public final EObject entryRuleAcceptBlock() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAcceptBlock = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:12387:2: (iv_ruleAcceptBlock= ruleAcceptBlock EOF )
+ // InternalAppliedStereotypeProperty.g:12388: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"
+ // InternalAppliedStereotypeProperty.g:12395: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 {
+ // InternalAppliedStereotypeProperty.g:12398:28: ( (this_AcceptClause_0= ruleAcceptClause ( (lv_block_1_0= ruleBlock ) ) ) )
+ // InternalAppliedStereotypeProperty.g:12399:1: (this_AcceptClause_0= ruleAcceptClause ( (lv_block_1_0= ruleBlock ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:12399:1: (this_AcceptClause_0= ruleAcceptClause ( (lv_block_1_0= ruleBlock ) ) )
+ // InternalAppliedStereotypeProperty.g:12400: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_19);
+ this_AcceptClause_0 = ruleAcceptClause();
+
+ state._fsp--;
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ current = this_AcceptClause_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAppliedStereotypeProperty.g:12411:1: ( (lv_block_1_0= ruleBlock ) )
+ // InternalAppliedStereotypeProperty.g:12412:1: (lv_block_1_0= ruleBlock )
+ {
+ // InternalAppliedStereotypeProperty.g:12412:1: (lv_block_1_0= ruleBlock )
+ // InternalAppliedStereotypeProperty.g:12413: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"
+ // InternalAppliedStereotypeProperty.g:12437:1: entryRuleAcceptClause returns [EObject current=null] : iv_ruleAcceptClause= ruleAcceptClause EOF ;
+ public final EObject entryRuleAcceptClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAcceptClause = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:12438:2: (iv_ruleAcceptClause= ruleAcceptClause EOF )
+ // InternalAppliedStereotypeProperty.g:12439: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"
+ // InternalAppliedStereotypeProperty.g:12446: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 {
+ // InternalAppliedStereotypeProperty.g:12449:28: ( (otherlv_0= 'accept' otherlv_1= '(' ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )? ( (lv_signalNames_4_0= ruleQualifiedNameList ) ) otherlv_5= ')' ) )
+ // InternalAppliedStereotypeProperty.g:12450:1: (otherlv_0= 'accept' otherlv_1= '(' ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )? ( (lv_signalNames_4_0= ruleQualifiedNameList ) ) otherlv_5= ')' )
+ {
+ // InternalAppliedStereotypeProperty.g:12450:1: (otherlv_0= 'accept' otherlv_1= '(' ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )? ( (lv_signalNames_4_0= ruleQualifiedNameList ) ) otherlv_5= ')' )
+ // InternalAppliedStereotypeProperty.g:12450: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_44);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_0, grammarAccess.getAcceptClauseAccess().getAcceptKeyword_0());
+
+ }
+ otherlv_1 = (Token) match(input, 17, FOLLOW_4);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getAcceptClauseAccess().getLeftParenthesisKeyword_1());
+
+ }
+ // InternalAppliedStereotypeProperty.g:12458:1: ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )?
+ int alt204 = 2;
+ int LA204_0 = input.LA(1);
+
+ if ((LA204_0 == RULE_ID)) {
+ int LA204_1 = input.LA(2);
+
+ if ((LA204_1 == 46)) {
+ alt204 = 1;
+ }
+ } else if ((LA204_0 == RULE_UNRESTRICTED_NAME)) {
+ int LA204_2 = input.LA(2);
+
+ if ((LA204_2 == 46)) {
+ alt204 = 1;
+ }
+ }
+ switch (alt204) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:12458:2: ( (lv_name_2_0= ruleName ) ) otherlv_3= ':'
+ {
+ // InternalAppliedStereotypeProperty.g:12458:2: ( (lv_name_2_0= ruleName ) )
+ // InternalAppliedStereotypeProperty.g:12459:1: (lv_name_2_0= ruleName )
+ {
+ // InternalAppliedStereotypeProperty.g:12459:1: (lv_name_2_0= ruleName )
+ // InternalAppliedStereotypeProperty.g:12460:3: lv_name_2_0= ruleName
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getAcceptClauseAccess().getNameNameParserRuleCall_2_0_0());
+
+ }
+ pushFollow(FOLLOW_49);
+ 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, 46, FOLLOW_4);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_3, grammarAccess.getAcceptClauseAccess().getColonKeyword_2_1());
+
+ }
+
+ }
+ break;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:12480:3: ( (lv_signalNames_4_0= ruleQualifiedNameList ) )
+ // InternalAppliedStereotypeProperty.g:12481:1: (lv_signalNames_4_0= ruleQualifiedNameList )
+ {
+ // InternalAppliedStereotypeProperty.g:12481:1: (lv_signalNames_4_0= ruleQualifiedNameList )
+ // InternalAppliedStereotypeProperty.g:12482: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, 18, 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"
+ // InternalAppliedStereotypeProperty.g:12510:1: entryRuleClassifyStatement returns [EObject current=null] : iv_ruleClassifyStatement= ruleClassifyStatement EOF ;
+ public final EObject entryRuleClassifyStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassifyStatement = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:12511:2: (iv_ruleClassifyStatement= ruleClassifyStatement EOF )
+ // InternalAppliedStereotypeProperty.g:12512: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"
+ // InternalAppliedStereotypeProperty.g:12519: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 {
+ // InternalAppliedStereotypeProperty.g:12522: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= ';' ) )
+ // InternalAppliedStereotypeProperty.g:12523: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= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:12523: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= ';' )
+ // InternalAppliedStereotypeProperty.g:12523: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());
+
+ }
+ // InternalAppliedStereotypeProperty.g:12527:1: ( (lv_expression_1_0= ruleExpression ) )
+ // InternalAppliedStereotypeProperty.g:12528:1: (lv_expression_1_0= ruleExpression )
+ {
+ // InternalAppliedStereotypeProperty.g:12528:1: (lv_expression_1_0= ruleExpression )
+ // InternalAppliedStereotypeProperty.g:12529: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:12545:2: ( ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? ) | ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0=
+ // ruleClassificationToClause ) ) ) )
+ int alt207 = 2;
+ int LA207_0 = input.LA(1);
+
+ if ((LA207_0 == 118)) {
+ int LA207_1 = input.LA(2);
+
+ if ((LA207_1 == 21)) {
+ alt207 = 2;
+ } else if (((LA207_1 >= RULE_ID && LA207_1 <= RULE_UNRESTRICTED_NAME))) {
+ alt207 = 1;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 207, 1, input);
+
+ throw nvae;
+ }
+ } else if ((LA207_0 == 119)) {
+ alt207 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return current;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 207, 0, input);
+
+ throw nvae;
+ }
+ switch (alt207) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:12545:3: ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:12545:3: ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? )
+ // InternalAppliedStereotypeProperty.g:12545:4: ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )?
+ {
+ // InternalAppliedStereotypeProperty.g:12545:4: ( (lv_fromList_2_0= ruleClassificationFromClause ) )
+ // InternalAppliedStereotypeProperty.g:12546:1: (lv_fromList_2_0= ruleClassificationFromClause )
+ {
+ // InternalAppliedStereotypeProperty.g:12546:1: (lv_fromList_2_0= ruleClassificationFromClause )
+ // InternalAppliedStereotypeProperty.g:12547: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:12563:2: ( (lv_toList_3_0= ruleClassificationToClause ) )?
+ int alt205 = 2;
+ int LA205_0 = input.LA(1);
+
+ if ((LA205_0 == 119)) {
+ alt205 = 1;
+ }
+ switch (alt205) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:12564:1: (lv_toList_3_0= ruleClassificationToClause )
+ {
+ // InternalAppliedStereotypeProperty.g:12564:1: (lv_toList_3_0= ruleClassificationToClause )
+ // InternalAppliedStereotypeProperty.g:12565: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:
+ // InternalAppliedStereotypeProperty.g:12582:6: ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:12582:6: ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) )
+ // InternalAppliedStereotypeProperty.g:12582:7: ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) )
+ {
+ // InternalAppliedStereotypeProperty.g:12582:7: ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )?
+ int alt206 = 2;
+ int LA206_0 = input.LA(1);
+
+ if ((LA206_0 == 118)) {
+ alt206 = 1;
+ }
+ switch (alt206) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:12583:1: (lv_isReclassifyAll_4_0= ruleReclassifyAllClause )
+ {
+ // InternalAppliedStereotypeProperty.g:12583:1: (lv_isReclassifyAll_4_0= ruleReclassifyAllClause )
+ // InternalAppliedStereotypeProperty.g:12584: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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:12600:3: ( (lv_toList_5_0= ruleClassificationToClause ) )
+ // InternalAppliedStereotypeProperty.g:12601:1: (lv_toList_5_0= ruleClassificationToClause )
+ {
+ // InternalAppliedStereotypeProperty.g:12601:1: (lv_toList_5_0= ruleClassificationToClause )
+ // InternalAppliedStereotypeProperty.g:12602: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, 23, 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"
+ // InternalAppliedStereotypeProperty.g:12630:1: entryRuleClassificationFromClause returns [EObject current=null] : iv_ruleClassificationFromClause= ruleClassificationFromClause EOF ;
+ public final EObject entryRuleClassificationFromClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassificationFromClause = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:12631:2: (iv_ruleClassificationFromClause= ruleClassificationFromClause EOF )
+ // InternalAppliedStereotypeProperty.g:12632: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"
+ // InternalAppliedStereotypeProperty.g:12639: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 {
+ // InternalAppliedStereotypeProperty.g:12642:28: ( (otherlv_0= 'from' this_QualifiedNameList_1= ruleQualifiedNameList ) )
+ // InternalAppliedStereotypeProperty.g:12643:1: (otherlv_0= 'from' this_QualifiedNameList_1= ruleQualifiedNameList )
+ {
+ // InternalAppliedStereotypeProperty.g:12643:1: (otherlv_0= 'from' this_QualifiedNameList_1= ruleQualifiedNameList )
+ // InternalAppliedStereotypeProperty.g:12643: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"
+ // InternalAppliedStereotypeProperty.g:12667:1: entryRuleClassificationToClause returns [EObject current=null] : iv_ruleClassificationToClause= ruleClassificationToClause EOF ;
+ public final EObject entryRuleClassificationToClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassificationToClause = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:12668:2: (iv_ruleClassificationToClause= ruleClassificationToClause EOF )
+ // InternalAppliedStereotypeProperty.g:12669: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"
+ // InternalAppliedStereotypeProperty.g:12676: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 {
+ // InternalAppliedStereotypeProperty.g:12679:28: ( (otherlv_0= 'to' this_QualifiedNameList_1= ruleQualifiedNameList ) )
+ // InternalAppliedStereotypeProperty.g:12680:1: (otherlv_0= 'to' this_QualifiedNameList_1= ruleQualifiedNameList )
+ {
+ // InternalAppliedStereotypeProperty.g:12680:1: (otherlv_0= 'to' this_QualifiedNameList_1= ruleQualifiedNameList )
+ // InternalAppliedStereotypeProperty.g:12680: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"
+ // InternalAppliedStereotypeProperty.g:12704:1: entryRuleReclassifyAllClause returns [String current=null] : iv_ruleReclassifyAllClause= ruleReclassifyAllClause EOF ;
+ public final String entryRuleReclassifyAllClause() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleReclassifyAllClause = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:12705:2: (iv_ruleReclassifyAllClause= ruleReclassifyAllClause EOF )
+ // InternalAppliedStereotypeProperty.g:12706: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"
+ // InternalAppliedStereotypeProperty.g:12713: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 {
+ // InternalAppliedStereotypeProperty.g:12716:28: ( (kw= 'from' kw= '*' ) )
+ // InternalAppliedStereotypeProperty.g:12717:1: (kw= 'from' kw= '*' )
+ {
+ // InternalAppliedStereotypeProperty.g:12717:1: (kw= 'from' kw= '*' )
+ // InternalAppliedStereotypeProperty.g:12718:2: kw= 'from' kw= '*'
+ {
+ kw = (Token) match(input, 118, FOLLOW_17);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getReclassifyAllClauseAccess().getFromKeyword_0());
+
+ }
+ kw = (Token) match(input, 21, 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"
+ // InternalAppliedStereotypeProperty.g:12737:1: entryRuleQualifiedNameList returns [EObject current=null] : iv_ruleQualifiedNameList= ruleQualifiedNameList EOF ;
+ public final EObject entryRuleQualifiedNameList() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleQualifiedNameList = null;
+
+
+ try {
+ // InternalAppliedStereotypeProperty.g:12738:2: (iv_ruleQualifiedNameList= ruleQualifiedNameList EOF )
+ // InternalAppliedStereotypeProperty.g:12739: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"
+ // InternalAppliedStereotypeProperty.g:12746: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 {
+ // InternalAppliedStereotypeProperty.g:12749:28: ( ( ( (lv_name_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )* ) )
+ // InternalAppliedStereotypeProperty.g:12750:1: ( ( (lv_name_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:12750:1: ( ( (lv_name_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )* )
+ // InternalAppliedStereotypeProperty.g:12750:2: ( (lv_name_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )*
+ {
+ // InternalAppliedStereotypeProperty.g:12750:2: ( (lv_name_0_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:12751:1: (lv_name_0_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:12751:1: (lv_name_0_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:12752: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();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:12768:2: (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )*
+ loop208: do {
+ int alt208 = 2;
+ int LA208_0 = input.LA(1);
+
+ if ((LA208_0 == 19)) {
+ alt208 = 1;
+ }
+
+
+ switch (alt208) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:12768:4: otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) )
+ {
+ otherlv_1 = (Token) match(input, 19, FOLLOW_4);
+ if (state.failed)
+ return current;
+ if (state.backtracking == 0) {
+
+ newLeafNode(otherlv_1, grammarAccess.getQualifiedNameListAccess().getCommaKeyword_1_0());
+
+ }
+ // InternalAppliedStereotypeProperty.g:12772:1: ( (lv_name_2_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:12773:1: (lv_name_2_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:12773:1: (lv_name_2_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:12774: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 loop208;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if (state.backtracking == 0) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input, re);
+ appendSkippedTokens();
+ } finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleQualifiedNameList"
+
+ // $ANTLR start synpred8_InternalAppliedStereotypeProperty
+ public final void synpred8_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ EObject this_PackageImportReference_0 = null;
+
+
+ // InternalAppliedStereotypeProperty.g:494:2: (this_PackageImportReference_0= rulePackageImportReference )
+ // InternalAppliedStereotypeProperty.g:494:2: this_PackageImportReference_0= rulePackageImportReference
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_PackageImportReference_0 = rulePackageImportReference();
+
+ state._fsp--;
+ if (state.failed)
+ return;
+
+ }
+ }
+ // $ANTLR end synpred8_InternalAppliedStereotypeProperty
+
+ // $ANTLR start synpred115_InternalAppliedStereotypeProperty
+ public final void synpred115_InternalAppliedStereotypeProperty_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;
+
+
+ // InternalAppliedStereotypeProperty.g:4599: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' ) ) )? )
+ // InternalAppliedStereotypeProperty.g:4599: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' ) ) )?
+ {
+ // InternalAppliedStereotypeProperty.g:4599:4: (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )?
+ int alt227 = 2;
+ int LA227_0 = input.LA(1);
+
+ if ((LA227_0 == 52)) {
+ alt227 = 1;
+ }
+ switch (alt227) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4599: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;
+ // InternalAppliedStereotypeProperty.g:4603:1: ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) )
+ int alt226 = 2;
+ int LA226_0 = input.LA(1);
+
+ if ((LA226_0 == 53)) {
+ alt226 = 1;
+ } else if ((LA226_0 == RULE_NATURAL_VALUE || LA226_0 == 21)) {
+ alt226 = 2;
+ } else {
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return;
+ }
+ NoViableAltException nvae = new NoViableAltException("", 226, 0, input);
+
+ throw nvae;
+ }
+ switch (alt226) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4603:2: ( (lv_isMultiplicity_3_0= ']' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:4603:2: ( (lv_isMultiplicity_3_0= ']' ) )
+ // InternalAppliedStereotypeProperty.g:4604:1: (lv_isMultiplicity_3_0= ']' )
+ {
+ // InternalAppliedStereotypeProperty.g:4604:1: (lv_isMultiplicity_3_0= ']' )
+ // InternalAppliedStereotypeProperty.g:4605:3: lv_isMultiplicity_3_0= ']'
+ {
+ lv_isMultiplicity_3_0 = (Token) match(input, 53, FOLLOW_54);
+ if (state.failed)
+ return;
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:4619:6: ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' )
+ {
+ // InternalAppliedStereotypeProperty.g:4619:6: ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' )
+ // InternalAppliedStereotypeProperty.g:4619:7: ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']'
+ {
+ // InternalAppliedStereotypeProperty.g:4619:7: ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )?
+ int alt225 = 2;
+ int LA225_0 = input.LA(1);
+
+ if ((LA225_0 == RULE_NATURAL_VALUE)) {
+ int LA225_1 = input.LA(2);
+
+ if ((LA225_1 == 54)) {
+ alt225 = 1;
+ }
+ }
+ switch (alt225) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4619:8: ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..'
+ {
+ // InternalAppliedStereotypeProperty.g:4619:8: ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) )
+ // InternalAppliedStereotypeProperty.g:4620:1: (lv_lowerBound_4_0= RULE_NATURAL_VALUE )
+ {
+ // InternalAppliedStereotypeProperty.g:4620:1: (lv_lowerBound_4_0= RULE_NATURAL_VALUE )
+ // InternalAppliedStereotypeProperty.g:4621: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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:4641:3: ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) )
+ // InternalAppliedStereotypeProperty.g:4642:1: (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral )
+ {
+ // InternalAppliedStereotypeProperty.g:4642:1: (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral )
+ // InternalAppliedStereotypeProperty.g:4643: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;
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:4663: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 alt230 = 4;
+ switch (input.LA(1)) {
+ case 55: {
+ alt230 = 1;
+ }
+ break;
+ case 56: {
+ alt230 = 2;
+ }
+ break;
+ case 57: {
+ alt230 = 3;
+ }
+ break;
+ }
+
+ switch (alt230) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4663:6: ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:4663:6: ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? )
+ // InternalAppliedStereotypeProperty.g:4663:7: ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )?
+ {
+ // InternalAppliedStereotypeProperty.g:4663:7: ( (lv_isOrdered_8_0= 'ordered' ) )
+ // InternalAppliedStereotypeProperty.g:4664:1: (lv_isOrdered_8_0= 'ordered' )
+ {
+ // InternalAppliedStereotypeProperty.g:4664:1: (lv_isOrdered_8_0= 'ordered' )
+ // InternalAppliedStereotypeProperty.g:4665:3: lv_isOrdered_8_0= 'ordered'
+ {
+ lv_isOrdered_8_0 = (Token) match(input, 55, FOLLOW_57);
+ if (state.failed)
+ return;
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:4678:2: ( (lv_isNonunique_9_0= 'nonunique' ) )?
+ int alt228 = 2;
+ int LA228_0 = input.LA(1);
+
+ if ((LA228_0 == 56)) {
+ alt228 = 1;
+ }
+ switch (alt228) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4679:1: (lv_isNonunique_9_0= 'nonunique' )
+ {
+ // InternalAppliedStereotypeProperty.g:4679:1: (lv_isNonunique_9_0= 'nonunique' )
+ // InternalAppliedStereotypeProperty.g:4680:3: lv_isNonunique_9_0= 'nonunique'
+ {
+ lv_isNonunique_9_0 = (Token) match(input, 56, FOLLOW_2);
+ if (state.failed)
+ return;
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2:
+ // InternalAppliedStereotypeProperty.g:4694:6: ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? )
+ {
+ // InternalAppliedStereotypeProperty.g:4694:6: ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? )
+ // InternalAppliedStereotypeProperty.g:4694:7: ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )?
+ {
+ // InternalAppliedStereotypeProperty.g:4694:7: ( (lv_isNonunique_10_0= 'nonunique' ) )
+ // InternalAppliedStereotypeProperty.g:4695:1: (lv_isNonunique_10_0= 'nonunique' )
+ {
+ // InternalAppliedStereotypeProperty.g:4695:1: (lv_isNonunique_10_0= 'nonunique' )
+ // InternalAppliedStereotypeProperty.g:4696:3: lv_isNonunique_10_0= 'nonunique'
+ {
+ lv_isNonunique_10_0 = (Token) match(input, 56, FOLLOW_58);
+ if (state.failed)
+ return;
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:4709:2: ( (lv_isOrdered_11_0= 'ordered' ) )?
+ int alt229 = 2;
+ int LA229_0 = input.LA(1);
+
+ if ((LA229_0 == 55)) {
+ alt229 = 1;
+ }
+ switch (alt229) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:4710:1: (lv_isOrdered_11_0= 'ordered' )
+ {
+ // InternalAppliedStereotypeProperty.g:4710:1: (lv_isOrdered_11_0= 'ordered' )
+ // InternalAppliedStereotypeProperty.g:4711:3: lv_isOrdered_11_0= 'ordered'
+ {
+ lv_isOrdered_11_0 = (Token) match(input, 55, FOLLOW_2);
+ if (state.failed)
+ return;
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 3:
+ // InternalAppliedStereotypeProperty.g:4725:6: ( (lv_isSequence_12_0= 'sequence' ) )
+ {
+ // InternalAppliedStereotypeProperty.g:4725:6: ( (lv_isSequence_12_0= 'sequence' ) )
+ // InternalAppliedStereotypeProperty.g:4726:1: (lv_isSequence_12_0= 'sequence' )
+ {
+ // InternalAppliedStereotypeProperty.g:4726:1: (lv_isSequence_12_0= 'sequence' )
+ // InternalAppliedStereotypeProperty.g:4727:3: lv_isSequence_12_0= 'sequence'
+ {
+ lv_isSequence_12_0 = (Token) match(input, 57, FOLLOW_2);
+ if (state.failed)
+ return;
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+ }
+ // $ANTLR end synpred115_InternalAppliedStereotypeProperty
+
+ // $ANTLR start synpred129_InternalAppliedStereotypeProperty
+ public final void synpred129_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ Token otherlv_3 = null;
+ EObject lv_nameBinding_4_0 = null;
+
+
+ // InternalAppliedStereotypeProperty.g:5296:8: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )
+ // InternalAppliedStereotypeProperty.g:5296:8: otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) )
+ {
+ otherlv_3 = (Token) match(input, 27, FOLLOW_14);
+ if (state.failed)
+ return;
+ // InternalAppliedStereotypeProperty.g:5300:1: ( (lv_nameBinding_4_0= ruleNameBinding ) )
+ // InternalAppliedStereotypeProperty.g:5301:1: (lv_nameBinding_4_0= ruleNameBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:5301:1: (lv_nameBinding_4_0= ruleNameBinding )
+ // InternalAppliedStereotypeProperty.g:5302: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 synpred129_InternalAppliedStereotypeProperty
+
+ // $ANTLR start synpred130_InternalAppliedStereotypeProperty
+ public final void synpred130_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ Token otherlv_3 = null;
+ EObject lv_nameBinding_4_0 = null;
+
+
+ // InternalAppliedStereotypeProperty.g:5296:6: ( (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )
+ // InternalAppliedStereotypeProperty.g:5296:6: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+
+ {
+ // InternalAppliedStereotypeProperty.g:5296:6: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+
+ int cnt233 = 0;
+ loop233: do {
+ int alt233 = 2;
+ int LA233_0 = input.LA(1);
+
+ if ((LA233_0 == 27)) {
+ alt233 = 1;
+ }
+
+
+ switch (alt233) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:5296:8: otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) )
+ {
+ otherlv_3 = (Token) match(input, 27, FOLLOW_14);
+ if (state.failed)
+ return;
+ // InternalAppliedStereotypeProperty.g:5300:1: ( (lv_nameBinding_4_0= ruleNameBinding ) )
+ // InternalAppliedStereotypeProperty.g:5301:1: (lv_nameBinding_4_0= ruleNameBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:5301:1: (lv_nameBinding_4_0= ruleNameBinding )
+ // InternalAppliedStereotypeProperty.g:5302: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 (cnt233 >= 1)
+ break loop233;
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return;
+ }
+ EarlyExitException eee = new EarlyExitException(233, input);
+ throw eee;
+ }
+ cnt233++;
+ } while (true);
+
+
+ }
+ }
+ // $ANTLR end synpred130_InternalAppliedStereotypeProperty
+
+ // $ANTLR start synpred133_InternalAppliedStereotypeProperty
+ public final void synpred133_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ Token otherlv_5 = null;
+ EObject lv_nameBinding_6_0 = null;
+
+
+ // InternalAppliedStereotypeProperty.g:5407:4: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )
+ // InternalAppliedStereotypeProperty.g:5407:4: otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) )
+ {
+ otherlv_5 = (Token) match(input, 27, FOLLOW_14);
+ if (state.failed)
+ return;
+ // InternalAppliedStereotypeProperty.g:5411:1: ( (lv_nameBinding_6_0= ruleNameBinding ) )
+ // InternalAppliedStereotypeProperty.g:5412:1: (lv_nameBinding_6_0= ruleNameBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:5412:1: (lv_nameBinding_6_0= ruleNameBinding )
+ // InternalAppliedStereotypeProperty.g:5413: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 synpred133_InternalAppliedStereotypeProperty
+
+ // $ANTLR start synpred134_InternalAppliedStereotypeProperty
+ public final void synpred134_InternalAppliedStereotypeProperty_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;
+
+
+ // InternalAppliedStereotypeProperty.g:5374:6: ( ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* ) )
+ // InternalAppliedStereotypeProperty.g:5374:6: ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* )
+ {
+ // InternalAppliedStereotypeProperty.g:5374:6: ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* )
+ // InternalAppliedStereotypeProperty.g:5374:7: ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
+ {
+ // InternalAppliedStereotypeProperty.g:5374:7: ( (lv_isAmbiguous_3_0= '.' ) )
+ // InternalAppliedStereotypeProperty.g:5375:1: (lv_isAmbiguous_3_0= '.' )
+ {
+ // InternalAppliedStereotypeProperty.g:5375:1: (lv_isAmbiguous_3_0= '.' )
+ // InternalAppliedStereotypeProperty.g:5376:3: lv_isAmbiguous_3_0= '.'
+ {
+ lv_isAmbiguous_3_0 = (Token) match(input, 27, FOLLOW_14);
+ if (state.failed)
+ return;
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:5389:2: ( (lv_nameBinding_4_0= ruleNameBinding ) )
+ // InternalAppliedStereotypeProperty.g:5390:1: (lv_nameBinding_4_0= ruleNameBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:5390:1: (lv_nameBinding_4_0= ruleNameBinding )
+ // InternalAppliedStereotypeProperty.g:5391: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;
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:5407:2: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
+ loop235: do {
+ int alt235 = 2;
+ int LA235_0 = input.LA(1);
+
+ if ((LA235_0 == 27)) {
+ alt235 = 1;
+ }
+
+
+ switch (alt235) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:5407:4: otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) )
+ {
+ otherlv_5 = (Token) match(input, 27, FOLLOW_14);
+ if (state.failed)
+ return;
+ // InternalAppliedStereotypeProperty.g:5411:1: ( (lv_nameBinding_6_0= ruleNameBinding ) )
+ // InternalAppliedStereotypeProperty.g:5412:1: (lv_nameBinding_6_0= ruleNameBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:5412:1: (lv_nameBinding_6_0= ruleNameBinding )
+ // InternalAppliedStereotypeProperty.g:5413: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 loop235;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+ }
+ // $ANTLR end synpred134_InternalAppliedStereotypeProperty
+
+ // $ANTLR start synpred135_InternalAppliedStereotypeProperty
+ public final void synpred135_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ EObject lv_binding_1_0 = null;
+
+
+ // InternalAppliedStereotypeProperty.g:5512:1: ( (lv_binding_1_0= ruleTemplateBinding ) )
+ // InternalAppliedStereotypeProperty.g:5512:1: (lv_binding_1_0= ruleTemplateBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:5512:1: (lv_binding_1_0= ruleTemplateBinding )
+ // InternalAppliedStereotypeProperty.g:5513: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 synpred135_InternalAppliedStereotypeProperty
+
+ // $ANTLR start synpred139_InternalAppliedStereotypeProperty
+ public final void synpred139_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ EObject this_AssignmentExpression_0 = null;
+
+
+ // InternalAppliedStereotypeProperty.g:5788:2: (this_AssignmentExpression_0= ruleAssignmentExpression )
+ // InternalAppliedStereotypeProperty.g:5788:2: this_AssignmentExpression_0= ruleAssignmentExpression
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_AssignmentExpression_0 = ruleAssignmentExpression();
+
+ state._fsp--;
+ if (state.failed)
+ return;
+
+ }
+ }
+ // $ANTLR end synpred139_InternalAppliedStereotypeProperty
+
+ // $ANTLR start synpred140_InternalAppliedStereotypeProperty
+ public final void synpred140_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ Token otherlv_2 = null;
+ EObject lv_nameBinding_3_0 = null;
+
+ EObject lv_tuple_5_0 = null;
+
+
+ // InternalAppliedStereotypeProperty.g:5845:2: ( ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) ) )
+ // InternalAppliedStereotypeProperty.g:5845:2: ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) )
+ {
+ // InternalAppliedStereotypeProperty.g:5845:2: ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) )
+ // InternalAppliedStereotypeProperty.g:5845:3: () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) )
+ {
+ // InternalAppliedStereotypeProperty.g:5845:3: ()
+ // InternalAppliedStereotypeProperty.g:5846:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+
+ }
+
+ otherlv_2 = (Token) match(input, 27, FOLLOW_14);
+ if (state.failed)
+ return;
+ // InternalAppliedStereotypeProperty.g:5858:1: ( (lv_nameBinding_3_0= ruleNameBinding ) )
+ // InternalAppliedStereotypeProperty.g:5859:1: (lv_nameBinding_3_0= ruleNameBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:5859:1: (lv_nameBinding_3_0= ruleNameBinding )
+ // InternalAppliedStereotypeProperty.g:5860:3: lv_nameBinding_3_0= ruleNameBinding
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_0_2_0());
+
+ }
+ pushFollow(FOLLOW_44);
+ lv_nameBinding_3_0 = ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed)
+ return;
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:5876:2: ()
+ // InternalAppliedStereotypeProperty.g:5877:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:5885:2: ( (lv_tuple_5_0= ruleTuple ) )
+ // InternalAppliedStereotypeProperty.g:5886:1: (lv_tuple_5_0= ruleTuple )
+ {
+ // InternalAppliedStereotypeProperty.g:5886:1: (lv_tuple_5_0= ruleTuple )
+ // InternalAppliedStereotypeProperty.g:5887: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 synpred140_InternalAppliedStereotypeProperty
+
+ // $ANTLR start synpred141_InternalAppliedStereotypeProperty
+ public final void synpred141_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ Token otherlv_7 = null;
+ EObject lv_nameBinding_8_0 = null;
+
+
+ // InternalAppliedStereotypeProperty.g:5904:6: ( ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () ) )
+ // InternalAppliedStereotypeProperty.g:5904:6: ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () )
+ {
+ // InternalAppliedStereotypeProperty.g:5904:6: ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () )
+ // InternalAppliedStereotypeProperty.g:5904:7: () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) ()
+ {
+ // InternalAppliedStereotypeProperty.g:5904:7: ()
+ // InternalAppliedStereotypeProperty.g:5905:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+
+ }
+
+ otherlv_7 = (Token) match(input, 27, FOLLOW_14);
+ if (state.failed)
+ return;
+ // InternalAppliedStereotypeProperty.g:5917:1: ( (lv_nameBinding_8_0= ruleNameBinding ) )
+ // InternalAppliedStereotypeProperty.g:5918:1: (lv_nameBinding_8_0= ruleNameBinding )
+ {
+ // InternalAppliedStereotypeProperty.g:5918:1: (lv_nameBinding_8_0= ruleNameBinding )
+ // InternalAppliedStereotypeProperty.g:5919: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;
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:5935:2: ()
+ // InternalAppliedStereotypeProperty.g:5936:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ }
+ // $ANTLR end synpred141_InternalAppliedStereotypeProperty
+
+ // $ANTLR start synpred151_InternalAppliedStereotypeProperty
+ public final void synpred151_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ EObject this_ClassExtentExpression_4 = null;
+
+
+ // InternalAppliedStereotypeProperty.g:6224:2: (this_ClassExtentExpression_4= ruleClassExtentExpression )
+ // InternalAppliedStereotypeProperty.g:6224:2: this_ClassExtentExpression_4= ruleClassExtentExpression
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ClassExtentExpression_4 = ruleClassExtentExpression();
+
+ state._fsp--;
+ if (state.failed)
+ return;
+
+ }
+ }
+ // $ANTLR end synpred151_InternalAppliedStereotypeProperty
+
+ // $ANTLR start synpred152_InternalAppliedStereotypeProperty
+ public final void synpred152_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ EObject this_LinkOperationExpression_5 = null;
+
+
+ // InternalAppliedStereotypeProperty.g:6237:2: (this_LinkOperationExpression_5= ruleLinkOperationExpression )
+ // InternalAppliedStereotypeProperty.g:6237:2: this_LinkOperationExpression_5= ruleLinkOperationExpression
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_LinkOperationExpression_5 = ruleLinkOperationExpression();
+
+ state._fsp--;
+ if (state.failed)
+ return;
+
+ }
+ }
+ // $ANTLR end synpred152_InternalAppliedStereotypeProperty
+
+ // $ANTLR start synpred153_InternalAppliedStereotypeProperty
+ public final void synpred153_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ EObject this_SequenceConstructionExpression_6 = null;
+
+
+ // InternalAppliedStereotypeProperty.g:6250:2: (this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression )
+ // InternalAppliedStereotypeProperty.g:6250:2: this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_SequenceConstructionExpression_6 = ruleSequenceConstructionExpression();
+
+ state._fsp--;
+ if (state.failed)
+ return;
+
+ }
+ }
+ // $ANTLR end synpred153_InternalAppliedStereotypeProperty
+
+ // $ANTLR start synpred154_InternalAppliedStereotypeProperty
+ public final void synpred154_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ EObject this_SequenceOperationOrReductionOrExpansionExpression_7 = null;
+
+
+ // InternalAppliedStereotypeProperty.g:6263:2: (this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression )
+ // InternalAppliedStereotypeProperty.g:6263:2: this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_SequenceOperationOrReductionOrExpansionExpression_7 = ruleSequenceOperationOrReductionOrExpansionExpression();
+
+ state._fsp--;
+ if (state.failed)
+ return;
+
+ }
+ }
+ // $ANTLR end synpred154_InternalAppliedStereotypeProperty
+
+ // $ANTLR start synpred155_InternalAppliedStereotypeProperty
+ public final void synpred155_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ EObject this_BehaviorInvocationExpression_8 = null;
+
+
+ // InternalAppliedStereotypeProperty.g:6276:2: (this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression )
+ // InternalAppliedStereotypeProperty.g:6276:2: this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_BehaviorInvocationExpression_8 = ruleBehaviorInvocationExpression();
+
+ state._fsp--;
+ if (state.failed)
+ return;
+
+ }
+ }
+ // $ANTLR end synpred155_InternalAppliedStereotypeProperty
+
+ // $ANTLR start synpred156_InternalAppliedStereotypeProperty
+ public final void synpred156_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ EObject this_NameExpression_9 = null;
+
+
+ // InternalAppliedStereotypeProperty.g:6289:2: (this_NameExpression_9= ruleNameExpression )
+ // InternalAppliedStereotypeProperty.g:6289:2: this_NameExpression_9= ruleNameExpression
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_NameExpression_9 = ruleNameExpression();
+
+ state._fsp--;
+ if (state.failed)
+ return;
+
+ }
+ }
+ // $ANTLR end synpred156_InternalAppliedStereotypeProperty
+
+ // $ANTLR start synpred168_InternalAppliedStereotypeProperty
+ public final void synpred168_InternalAppliedStereotypeProperty_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;
+
+
+ // InternalAppliedStereotypeProperty.g:7075:2: ( ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' ) )
+ // InternalAppliedStereotypeProperty.g:7075:2: ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' )
+ {
+ // InternalAppliedStereotypeProperty.g:7075:2: ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' )
+ // InternalAppliedStereotypeProperty.g:7075:3: () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}'
+ {
+ // InternalAppliedStereotypeProperty.g:7075:3: ()
+ // InternalAppliedStereotypeProperty.g:7076:2:
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:7084:2: ( (lv_typeName_2_0= ruleQualifiedName ) )
+ // InternalAppliedStereotypeProperty.g:7085:1: (lv_typeName_2_0= ruleQualifiedName )
+ {
+ // InternalAppliedStereotypeProperty.g:7085:1: (lv_typeName_2_0= ruleQualifiedName )
+ // InternalAppliedStereotypeProperty.g:7086: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;
+
+ }
+
+
+ }
+
+ // InternalAppliedStereotypeProperty.g:7102:2: ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )?
+ int alt240 = 2;
+ int LA240_0 = input.LA(1);
+
+ if ((LA240_0 == 52)) {
+ alt240 = 1;
+ }
+ switch (alt240) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:7103:1: (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator )
+ {
+ // InternalAppliedStereotypeProperty.g:7103:1: (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator )
+ // InternalAppliedStereotypeProperty.g:7104:3: lv_hasMultiplicity_3_0= ruleMultiplicityIndicator
+ {
+ if (state.backtracking == 0) {
+
+ newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_1_0_2_0());
+
+ }
+ pushFollow(FOLLOW_19);
+ lv_hasMultiplicity_3_0 = ruleMultiplicityIndicator();
+
+ state._fsp--;
+ if (state.failed)
+ return;
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_4 = (Token) match(input, 32, FOLLOW_73);
+ if (state.failed)
+ return;
+ // InternalAppliedStereotypeProperty.g:7124:1: ( (lv_elements_5_0= ruleSequenceElements ) )?
+ int alt241 = 2;
+ int LA241_0 = input.LA(1);
+
+ if (((LA241_0 >= RULE_BOOLEAN_VALUE && LA241_0 <= RULE_STRING) || (LA241_0 >= RULE_ID && LA241_0 <= RULE_UNRESTRICTED_NAME) || LA241_0 == 17 || LA241_0 == 21 || LA241_0 == 32 || LA241_0 == 51 || (LA241_0 >= 62 && LA241_0 <= 64)
+ || (LA241_0 >= 69 && LA241_0 <= 76))) {
+ alt241 = 1;
+ }
+ switch (alt241) {
+ case 1:
+ // InternalAppliedStereotypeProperty.g:7125:1: (lv_elements_5_0= ruleSequenceElements )
+ {
+ // InternalAppliedStereotypeProperty.g:7125:1: (lv_elements_5_0= ruleSequenceElements )
+ // InternalAppliedStereotypeProperty.g:7126: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, 33, FOLLOW_2);
+ if (state.failed)
+ return;
+
+ }
- }
+ }
+ }
+ // $ANTLR end synpred168_InternalAppliedStereotypeProperty
+ // $ANTLR start synpred171_InternalAppliedStereotypeProperty
+ public final void synpred171_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ EObject this_IndexedNamedTupleExpressionList_1 = null;
- }
- break;
-
- default :
- break loop9;
- }
- } while (true);
-
- otherlv_7=(Token)match(input,27,FOLLOW_17); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_7, grammarAccess.getPackageImportQualifiedNameAccess().getFullStopKeyword_1_1_1());
-
- }
- otherlv_8=(Token)match(input,21,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"
- // InternalAppliedStereotypeProperty.g:774:1: entryRuleImportVisibilityIndicator returns [String current=null] : iv_ruleImportVisibilityIndicator= ruleImportVisibilityIndicator EOF ;
- public final String entryRuleImportVisibilityIndicator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleImportVisibilityIndicator = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:775:2: (iv_ruleImportVisibilityIndicator= ruleImportVisibilityIndicator EOF )
- // InternalAppliedStereotypeProperty.g:776: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"
- // InternalAppliedStereotypeProperty.g:783: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 {
- // InternalAppliedStereotypeProperty.g:786:28: ( (kw= 'public' | kw= 'private' ) )
- // InternalAppliedStereotypeProperty.g:787:1: (kw= 'public' | kw= 'private' )
- {
- // InternalAppliedStereotypeProperty.g:787:1: (kw= 'public' | kw= 'private' )
- int alt11=2;
- int LA11_0 = input.LA(1);
-
- if ( (LA11_0==28) ) {
- alt11=1;
- }
- else if ( (LA11_0==29) ) {
- alt11=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 11, 0, input);
-
- throw nvae;
- }
- switch (alt11) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:788:2: kw= 'public'
- {
- kw=(Token)match(input,28,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getImportVisibilityIndicatorAccess().getPublicKeyword_0());
-
- }
-
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:795:2: kw= 'private'
- {
- kw=(Token)match(input,29,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"
- // InternalAppliedStereotypeProperty.g:808:1: entryRuleNamespaceDefinition returns [EObject current=null] : iv_ruleNamespaceDefinition= ruleNamespaceDefinition EOF ;
- public final EObject entryRuleNamespaceDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNamespaceDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:809:2: (iv_ruleNamespaceDefinition= ruleNamespaceDefinition EOF )
- // InternalAppliedStereotypeProperty.g:810: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"
- // InternalAppliedStereotypeProperty.g:817: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 {
- // InternalAppliedStereotypeProperty.g:820:28: ( (this_PackageDefinition_0= rulePackageDefinition | this_ClassifierDefinition_1= ruleClassifierDefinition ) )
- // InternalAppliedStereotypeProperty.g:821:1: (this_PackageDefinition_0= rulePackageDefinition | this_ClassifierDefinition_1= ruleClassifierDefinition )
- {
- // InternalAppliedStereotypeProperty.g:821:1: (this_PackageDefinition_0= rulePackageDefinition | this_ClassifierDefinition_1= ruleClassifierDefinition )
- int alt12=2;
- int LA12_0 = input.LA(1);
-
- if ( (LA12_0==31) ) {
- alt12=1;
- }
- else if ( ((LA12_0>=35 && LA12_0<=36)||LA12_0==39||(LA12_0>=41 && LA12_0<=45)) ) {
- alt12=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 12, 0, input);
-
- throw nvae;
- }
- switch (alt12) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:822: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 :
- // InternalAppliedStereotypeProperty.g:835: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"
- // InternalAppliedStereotypeProperty.g:854:1: entryRuleVisibilityIndicator returns [String current=null] : iv_ruleVisibilityIndicator= ruleVisibilityIndicator EOF ;
- public final String entryRuleVisibilityIndicator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleVisibilityIndicator = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:855:2: (iv_ruleVisibilityIndicator= ruleVisibilityIndicator EOF )
- // InternalAppliedStereotypeProperty.g:856: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"
- // InternalAppliedStereotypeProperty.g:863: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 {
- // InternalAppliedStereotypeProperty.g:866:28: ( (this_ImportVisibilityIndicator_0= ruleImportVisibilityIndicator | kw= 'protected' ) )
- // InternalAppliedStereotypeProperty.g:867:1: (this_ImportVisibilityIndicator_0= ruleImportVisibilityIndicator | kw= 'protected' )
- {
- // InternalAppliedStereotypeProperty.g:867:1: (this_ImportVisibilityIndicator_0= ruleImportVisibilityIndicator | kw= 'protected' )
- int alt13=2;
- int LA13_0 = input.LA(1);
-
- if ( ((LA13_0>=28 && LA13_0<=29)) ) {
- alt13=1;
- }
- else if ( (LA13_0==30) ) {
- alt13=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 13, 0, input);
-
- throw nvae;
- }
- switch (alt13) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:868: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 :
- // InternalAppliedStereotypeProperty.g:880:2: kw= 'protected'
- {
- kw=(Token)match(input,30,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"
- // InternalAppliedStereotypeProperty.g:893:1: entryRulePackageDefinition returns [EObject current=null] : iv_rulePackageDefinition= rulePackageDefinition EOF ;
- public final EObject entryRulePackageDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePackageDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:894:2: (iv_rulePackageDefinition= rulePackageDefinition EOF )
- // InternalAppliedStereotypeProperty.g:895: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"
- // InternalAppliedStereotypeProperty.g:902: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 {
- // InternalAppliedStereotypeProperty.g:905:28: ( (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) otherlv_2= '{' ( (lv_ownedMember_3_0= rulePackagedElement ) )* otherlv_4= '}' ) )
- // InternalAppliedStereotypeProperty.g:906:1: (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) otherlv_2= '{' ( (lv_ownedMember_3_0= rulePackagedElement ) )* otherlv_4= '}' )
- {
- // InternalAppliedStereotypeProperty.g:906:1: (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) otherlv_2= '{' ( (lv_ownedMember_3_0= rulePackagedElement ) )* otherlv_4= '}' )
- // InternalAppliedStereotypeProperty.g:906:3: otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) otherlv_2= '{' ( (lv_ownedMember_3_0= rulePackagedElement ) )* otherlv_4= '}'
- {
- otherlv_0=(Token)match(input,31,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getPackageDefinitionAccess().getPackageKeyword_0());
-
- }
- // InternalAppliedStereotypeProperty.g:910:1: ( (lv_name_1_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:911:1: (lv_name_1_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:911:1: (lv_name_1_0= ruleName )
- // InternalAppliedStereotypeProperty.g:912:3: lv_name_1_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackageDefinitionAccess().getNameNameParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_19);
- 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,32,FOLLOW_20); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getPackageDefinitionAccess().getLeftCurlyBracketKeyword_2());
-
- }
- // InternalAppliedStereotypeProperty.g:932:1: ( (lv_ownedMember_3_0= rulePackagedElement ) )*
- loop14:
- do {
- int alt14=2;
- int LA14_0 = input.LA(1);
-
- if ( (LA14_0==RULE_DOCUMENTATION_COMMENT||LA14_0==16||(LA14_0>=28 && LA14_0<=29)) ) {
- alt14=1;
- }
-
-
- switch (alt14) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:933:1: (lv_ownedMember_3_0= rulePackagedElement )
- {
- // InternalAppliedStereotypeProperty.g:933:1: (lv_ownedMember_3_0= rulePackagedElement )
- // InternalAppliedStereotypeProperty.g:934:3: lv_ownedMember_3_0= rulePackagedElement
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackageDefinitionAccess().getOwnedMemberPackagedElementParserRuleCall_3_0());
-
- }
- pushFollow(FOLLOW_20);
- 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 loop14;
- }
- } while (true);
-
- otherlv_4=(Token)match(input,33,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"
- // InternalAppliedStereotypeProperty.g:962:1: entryRulePackageDefinitionOrStub returns [EObject current=null] : iv_rulePackageDefinitionOrStub= rulePackageDefinitionOrStub EOF ;
- public final EObject entryRulePackageDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePackageDefinitionOrStub = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:963:2: (iv_rulePackageDefinitionOrStub= rulePackageDefinitionOrStub EOF )
- // InternalAppliedStereotypeProperty.g:964: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"
- // InternalAppliedStereotypeProperty.g:971: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 {
- // InternalAppliedStereotypeProperty.g:974:28: ( (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) ) ) )
- // InternalAppliedStereotypeProperty.g:975:1: (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) ) )
- {
- // InternalAppliedStereotypeProperty.g:975:1: (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) ) )
- // InternalAppliedStereotypeProperty.g:975: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,31,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getPackageDefinitionOrStubAccess().getPackageKeyword_0());
-
- }
- // InternalAppliedStereotypeProperty.g:979:1: ( (lv_name_1_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:980:1: (lv_name_1_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:980:1: (lv_name_1_0= ruleName )
- // InternalAppliedStereotypeProperty.g:981:3: lv_name_1_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackageDefinitionOrStubAccess().getNameNameParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_21);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:997:2: ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) )
- int alt16=2;
- int LA16_0 = input.LA(1);
-
- if ( (LA16_0==23) ) {
- alt16=1;
- }
- else if ( (LA16_0==32) ) {
- 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 :
- // InternalAppliedStereotypeProperty.g:997:3: ( (lv_isStub_2_0= ';' ) )
- {
- // InternalAppliedStereotypeProperty.g:997:3: ( (lv_isStub_2_0= ';' ) )
- // InternalAppliedStereotypeProperty.g:998:1: (lv_isStub_2_0= ';' )
- {
- // InternalAppliedStereotypeProperty.g:998:1: (lv_isStub_2_0= ';' )
- // InternalAppliedStereotypeProperty.g:999:3: lv_isStub_2_0= ';'
- {
- lv_isStub_2_0=(Token)match(input,23,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 :
- // InternalAppliedStereotypeProperty.g:1013:6: (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' )
- {
- // InternalAppliedStereotypeProperty.g:1013:6: (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' )
- // InternalAppliedStereotypeProperty.g:1013:8: otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}'
- {
- otherlv_3=(Token)match(input,32,FOLLOW_20); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getPackageDefinitionOrStubAccess().getLeftCurlyBracketKeyword_2_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:1017:1: ( (lv_ownedMember_4_0= rulePackagedElement ) )*
- loop15:
- do {
- int alt15=2;
- int LA15_0 = input.LA(1);
-
- if ( (LA15_0==RULE_DOCUMENTATION_COMMENT||LA15_0==16||(LA15_0>=28 && LA15_0<=29)) ) {
- alt15=1;
- }
-
-
- switch (alt15) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:1018:1: (lv_ownedMember_4_0= rulePackagedElement )
- {
- // InternalAppliedStereotypeProperty.g:1018:1: (lv_ownedMember_4_0= rulePackagedElement )
- // InternalAppliedStereotypeProperty.g:1019:3: lv_ownedMember_4_0= rulePackagedElement
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackageDefinitionOrStubAccess().getOwnedMemberPackagedElementParserRuleCall_2_1_1_0());
-
- }
- pushFollow(FOLLOW_20);
- 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 loop15;
- }
- } while (true);
-
- otherlv_5=(Token)match(input,33,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"
- // InternalAppliedStereotypeProperty.g:1047:1: entryRulePackagedElement returns [EObject current=null] : iv_rulePackagedElement= rulePackagedElement EOF ;
- public final EObject entryRulePackagedElement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePackagedElement = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:1048:2: (iv_rulePackagedElement= rulePackagedElement EOF )
- // InternalAppliedStereotypeProperty.g:1049: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"
- // InternalAppliedStereotypeProperty.g:1056: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 {
- // InternalAppliedStereotypeProperty.g:1059:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) ) ( (lv_definition_3_0= rulePackagedElementDefinition ) ) ) )
- // InternalAppliedStereotypeProperty.g:1060:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) ) ( (lv_definition_3_0= rulePackagedElementDefinition ) ) )
- {
- // InternalAppliedStereotypeProperty.g:1060:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) ) ( (lv_definition_3_0= rulePackagedElementDefinition ) ) )
- // InternalAppliedStereotypeProperty.g:1060:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) ) ( (lv_definition_3_0= rulePackagedElementDefinition ) )
- {
- // InternalAppliedStereotypeProperty.g:1060:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
- int alt17=2;
- int LA17_0 = input.LA(1);
-
- if ( (LA17_0==RULE_DOCUMENTATION_COMMENT) ) {
- alt17=1;
- }
- switch (alt17) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:1061:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- {
- // InternalAppliedStereotypeProperty.g:1061:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- // InternalAppliedStereotypeProperty.g:1062:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
- {
- lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_22); 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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:1078:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
- loop18:
- do {
- int alt18=2;
- int LA18_0 = input.LA(1);
-
- if ( (LA18_0==16) ) {
- alt18=1;
- }
-
-
- switch (alt18) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:1079:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- {
- // InternalAppliedStereotypeProperty.g:1079:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- // InternalAppliedStereotypeProperty.g:1080:3: lv_annotation_1_0= ruleStereotypeAnnotation
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackagedElementAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_22);
- 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 loop18;
- }
- } while (true);
-
- // InternalAppliedStereotypeProperty.g:1096:3: ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) )
- // InternalAppliedStereotypeProperty.g:1097:1: (lv_visibility_2_0= ruleImportVisibilityIndicator )
- {
- // InternalAppliedStereotypeProperty.g:1097:1: (lv_visibility_2_0= ruleImportVisibilityIndicator )
- // InternalAppliedStereotypeProperty.g:1098:3: lv_visibility_2_0= ruleImportVisibilityIndicator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackagedElementAccess().getVisibilityImportVisibilityIndicatorParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_23);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:1114:2: ( (lv_definition_3_0= rulePackagedElementDefinition ) )
- // InternalAppliedStereotypeProperty.g:1115:1: (lv_definition_3_0= rulePackagedElementDefinition )
- {
- // InternalAppliedStereotypeProperty.g:1115:1: (lv_definition_3_0= rulePackagedElementDefinition )
- // InternalAppliedStereotypeProperty.g:1116: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"
- // InternalAppliedStereotypeProperty.g:1140:1: entryRulePackagedElementDefinition returns [EObject current=null] : iv_rulePackagedElementDefinition= rulePackagedElementDefinition EOF ;
- public final EObject entryRulePackagedElementDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePackagedElementDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:1141:2: (iv_rulePackagedElementDefinition= rulePackagedElementDefinition EOF )
- // InternalAppliedStereotypeProperty.g:1142: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"
- // InternalAppliedStereotypeProperty.g:1149: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 {
- // InternalAppliedStereotypeProperty.g:1152:28: ( (this_PackageDefinitionOrStub_0= rulePackageDefinitionOrStub | this_ClassifierDefinitionOrStub_1= ruleClassifierDefinitionOrStub ) )
- // InternalAppliedStereotypeProperty.g:1153:1: (this_PackageDefinitionOrStub_0= rulePackageDefinitionOrStub | this_ClassifierDefinitionOrStub_1= ruleClassifierDefinitionOrStub )
- {
- // InternalAppliedStereotypeProperty.g:1153:1: (this_PackageDefinitionOrStub_0= rulePackageDefinitionOrStub | this_ClassifierDefinitionOrStub_1= ruleClassifierDefinitionOrStub )
- int alt19=2;
- int LA19_0 = input.LA(1);
-
- if ( (LA19_0==31) ) {
- alt19=1;
- }
- else if ( ((LA19_0>=35 && LA19_0<=36)||LA19_0==39||(LA19_0>=41 && LA19_0<=45)) ) {
- alt19=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 19, 0, input);
-
- throw nvae;
- }
- switch (alt19) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:1154: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 :
- // InternalAppliedStereotypeProperty.g:1167: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"
- // InternalAppliedStereotypeProperty.g:1186:1: entryRuleClassifierDefinition returns [EObject current=null] : iv_ruleClassifierDefinition= ruleClassifierDefinition EOF ;
- public final EObject entryRuleClassifierDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassifierDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:1187:2: (iv_ruleClassifierDefinition= ruleClassifierDefinition EOF )
- // InternalAppliedStereotypeProperty.g:1188: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"
- // InternalAppliedStereotypeProperty.g:1195: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 {
- // InternalAppliedStereotypeProperty.g:1198: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 ) )
- // InternalAppliedStereotypeProperty.g:1199: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 )
- {
- // InternalAppliedStereotypeProperty.g:1199: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 alt20=7;
- switch ( input.LA(1) ) {
- case 35:
- {
- switch ( input.LA(2) ) {
- case 44:
- {
- alt20=6;
- }
- break;
- case 41:
- {
- alt20=3;
- }
- break;
- case 36:
- {
- alt20=1;
- }
- break;
- case 42:
- {
- alt20=5;
- }
- break;
- case 39:
- {
- alt20=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 20, 1, input);
-
- throw nvae;
- }
-
- }
- break;
- case 36:
- {
- alt20=1;
- }
- break;
- case 39:
- {
- alt20=2;
- }
- break;
- case 41:
- {
- alt20=3;
- }
- break;
- case 43:
- {
- alt20=4;
- }
- break;
- case 42:
- {
- alt20=5;
- }
- break;
- case 44:
- {
- alt20=6;
- }
- break;
- case 45:
- {
- alt20=7;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 20, 0, input);
-
- throw nvae;
- }
-
- switch (alt20) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:1200: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 :
- // InternalAppliedStereotypeProperty.g:1213: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 :
- // InternalAppliedStereotypeProperty.g:1226: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 :
- // InternalAppliedStereotypeProperty.g:1239: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 :
- // InternalAppliedStereotypeProperty.g:1252: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 :
- // InternalAppliedStereotypeProperty.g:1265: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 :
- // InternalAppliedStereotypeProperty.g:1278: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"
- // InternalAppliedStereotypeProperty.g:1297:1: entryRuleClassifierDefinitionOrStub returns [EObject current=null] : iv_ruleClassifierDefinitionOrStub= ruleClassifierDefinitionOrStub EOF ;
- public final EObject entryRuleClassifierDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassifierDefinitionOrStub = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:1298:2: (iv_ruleClassifierDefinitionOrStub= ruleClassifierDefinitionOrStub EOF )
- // InternalAppliedStereotypeProperty.g:1299: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"
- // InternalAppliedStereotypeProperty.g:1306: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 {
- // InternalAppliedStereotypeProperty.g:1309: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 ) )
- // InternalAppliedStereotypeProperty.g:1310: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 )
- {
- // InternalAppliedStereotypeProperty.g:1310: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 alt21=7;
- switch ( input.LA(1) ) {
- case 35:
- {
- switch ( input.LA(2) ) {
- case 41:
- {
- alt21=3;
- }
- break;
- case 44:
- {
- alt21=6;
- }
- break;
- case 36:
- {
- alt21=1;
- }
- break;
- case 42:
- {
- alt21=5;
- }
- break;
- case 39:
- {
- alt21=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 21, 1, input);
-
- throw nvae;
- }
-
- }
- break;
- case 36:
- {
- alt21=1;
- }
- break;
- case 39:
- {
- alt21=2;
- }
- break;
- case 41:
- {
- alt21=3;
- }
- break;
- case 43:
- {
- alt21=4;
- }
- break;
- case 42:
- {
- alt21=5;
- }
- break;
- case 44:
- {
- alt21=6;
- }
- break;
- case 45:
- {
- alt21=7;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 21, 0, input);
-
- throw nvae;
- }
-
- switch (alt21) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:1311: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 :
- // InternalAppliedStereotypeProperty.g:1324: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 :
- // InternalAppliedStereotypeProperty.g:1337: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 :
- // InternalAppliedStereotypeProperty.g:1350: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 :
- // InternalAppliedStereotypeProperty.g:1363: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 :
- // InternalAppliedStereotypeProperty.g:1376: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 :
- // InternalAppliedStereotypeProperty.g:1389: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"
- // InternalAppliedStereotypeProperty.g:1410:1: entryRuleClassifierTemplateParameter returns [EObject current=null] : iv_ruleClassifierTemplateParameter= ruleClassifierTemplateParameter EOF ;
- public final EObject entryRuleClassifierTemplateParameter() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassifierTemplateParameter = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:1411:2: (iv_ruleClassifierTemplateParameter= ruleClassifierTemplateParameter EOF )
- // InternalAppliedStereotypeProperty.g:1412: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"
- // InternalAppliedStereotypeProperty.g:1419: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 {
- // InternalAppliedStereotypeProperty.g:1422:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) ) ) )
- // InternalAppliedStereotypeProperty.g:1423:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) ) )
- {
- // InternalAppliedStereotypeProperty.g:1423:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) ) )
- // InternalAppliedStereotypeProperty.g:1423:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) )
- {
- // InternalAppliedStereotypeProperty.g:1423:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
- int alt22=2;
- int LA22_0 = input.LA(1);
-
- if ( (LA22_0==RULE_DOCUMENTATION_COMMENT) ) {
- alt22=1;
- }
- switch (alt22) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:1424:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- {
- // InternalAppliedStereotypeProperty.g:1424:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- // InternalAppliedStereotypeProperty.g:1425:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
- {
- lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_14); 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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:1441:3: ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) )
- // InternalAppliedStereotypeProperty.g:1442:1: (lv_definition_1_0= ruleClassifierTemplateParameterDefinition )
- {
- // InternalAppliedStereotypeProperty.g:1442:1: (lv_definition_1_0= ruleClassifierTemplateParameterDefinition )
- // InternalAppliedStereotypeProperty.g:1443: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"
- // InternalAppliedStereotypeProperty.g:1467:1: entryRuleClassifierTemplateParameterDefinition returns [EObject current=null] : iv_ruleClassifierTemplateParameterDefinition= ruleClassifierTemplateParameterDefinition EOF ;
- public final EObject entryRuleClassifierTemplateParameterDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassifierTemplateParameterDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:1468:2: (iv_ruleClassifierTemplateParameterDefinition= ruleClassifierTemplateParameterDefinition EOF )
- // InternalAppliedStereotypeProperty.g:1469: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"
- // InternalAppliedStereotypeProperty.g:1476: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 {
- // InternalAppliedStereotypeProperty.g:1479:28: ( ( ( (lv_name_0_0= ruleName ) ) (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )? ) )
- // InternalAppliedStereotypeProperty.g:1480:1: ( ( (lv_name_0_0= ruleName ) ) (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )? )
- {
- // InternalAppliedStereotypeProperty.g:1480:1: ( ( (lv_name_0_0= ruleName ) ) (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )? )
- // InternalAppliedStereotypeProperty.g:1480:2: ( (lv_name_0_0= ruleName ) ) (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )?
- {
- // InternalAppliedStereotypeProperty.g:1480:2: ( (lv_name_0_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:1481:1: (lv_name_0_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:1481:1: (lv_name_0_0= ruleName )
- // InternalAppliedStereotypeProperty.g:1482:3: lv_name_0_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifierTemplateParameterDefinitionAccess().getNameNameParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_24);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:1498:2: (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )?
- int alt23=2;
- int LA23_0 = input.LA(1);
-
- if ( (LA23_0==34) ) {
- alt23=1;
- }
- switch (alt23) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:1498:4: otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) )
- {
- otherlv_1=(Token)match(input,34,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getClassifierTemplateParameterDefinitionAccess().getSpecializesKeyword_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:1502:1: ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) )
- // InternalAppliedStereotypeProperty.g:1503:1: (lv_specialization_2_0= ruleTemplateParameterConstraint )
- {
- // InternalAppliedStereotypeProperty.g:1503:1: (lv_specialization_2_0= ruleTemplateParameterConstraint )
- // InternalAppliedStereotypeProperty.g:1504: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"
- // InternalAppliedStereotypeProperty.g:1528:1: entryRuleTemplateParameterConstraint returns [EObject current=null] : iv_ruleTemplateParameterConstraint= ruleTemplateParameterConstraint EOF ;
- public final EObject entryRuleTemplateParameterConstraint() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleTemplateParameterConstraint = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:1529:2: (iv_ruleTemplateParameterConstraint= ruleTemplateParameterConstraint EOF )
- // InternalAppliedStereotypeProperty.g:1530: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"
- // InternalAppliedStereotypeProperty.g:1537: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 {
- // InternalAppliedStereotypeProperty.g:1540:28: ( ( (lv_name_0_0= ruleQualifiedName ) ) )
- // InternalAppliedStereotypeProperty.g:1541:1: ( (lv_name_0_0= ruleQualifiedName ) )
- {
- // InternalAppliedStereotypeProperty.g:1541:1: ( (lv_name_0_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:1542:1: (lv_name_0_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:1542:1: (lv_name_0_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:1543: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"
- // InternalAppliedStereotypeProperty.g:1567:1: entryRuleSpecializationClause returns [EObject current=null] : iv_ruleSpecializationClause= ruleSpecializationClause EOF ;
- public final EObject entryRuleSpecializationClause() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSpecializationClause = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:1568:2: (iv_ruleSpecializationClause= ruleSpecializationClause EOF )
- // InternalAppliedStereotypeProperty.g:1569: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"
- // InternalAppliedStereotypeProperty.g:1576: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 {
- // InternalAppliedStereotypeProperty.g:1579:28: ( (otherlv_0= 'specializes' this_QualifiedNameList_1= ruleQualifiedNameList ) )
- // InternalAppliedStereotypeProperty.g:1580:1: (otherlv_0= 'specializes' this_QualifiedNameList_1= ruleQualifiedNameList )
- {
- // InternalAppliedStereotypeProperty.g:1580:1: (otherlv_0= 'specializes' this_QualifiedNameList_1= ruleQualifiedNameList )
- // InternalAppliedStereotypeProperty.g:1580:3: otherlv_0= 'specializes' this_QualifiedNameList_1= ruleQualifiedNameList
- {
- otherlv_0=(Token)match(input,34,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"
- // InternalAppliedStereotypeProperty.g:1604:1: entryRuleClassDeclaration returns [EObject current=null] : iv_ruleClassDeclaration= ruleClassDeclaration EOF ;
- public final EObject entryRuleClassDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassDeclaration = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:1605:2: (iv_ruleClassDeclaration= ruleClassDeclaration EOF )
- // InternalAppliedStereotypeProperty.g:1606: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"
- // InternalAppliedStereotypeProperty.g:1613: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 {
- // InternalAppliedStereotypeProperty.g:1616: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 ) )? ) )
- // InternalAppliedStereotypeProperty.g:1617: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 ) )? )
- {
- // InternalAppliedStereotypeProperty.g:1617: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 ) )? )
- // InternalAppliedStereotypeProperty.g:1617: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 ) )?
- {
- // InternalAppliedStereotypeProperty.g:1617:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
- int alt24=2;
- int LA24_0 = input.LA(1);
-
- if ( (LA24_0==35) ) {
- alt24=1;
- }
- switch (alt24) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:1618:1: (lv_isAbstract_0_0= 'abstract' )
- {
- // InternalAppliedStereotypeProperty.g:1618:1: (lv_isAbstract_0_0= 'abstract' )
- // InternalAppliedStereotypeProperty.g:1619:3: lv_isAbstract_0_0= 'abstract'
- {
- lv_isAbstract_0_0=(Token)match(input,35,FOLLOW_25); 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,36,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getClassDeclarationAccess().getClassKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:1636:1: ( (lv_name_2_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:1637:1: (lv_name_2_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:1637:1: (lv_name_2_0= ruleName )
- // InternalAppliedStereotypeProperty.g:1638:3: lv_name_2_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassDeclarationAccess().getNameNameParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_26);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:1654:2: (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )?
- int alt26=2;
- int LA26_0 = input.LA(1);
-
- if ( (LA26_0==37) ) {
- alt26=1;
- }
- switch (alt26) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:1654:4: otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>'
- {
- otherlv_3=(Token)match(input,37,FOLLOW_27); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getClassDeclarationAccess().getLessThanSignKeyword_3_0());
-
- }
- // InternalAppliedStereotypeProperty.g:1658:1: ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) )
- // InternalAppliedStereotypeProperty.g:1659:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
- {
- // InternalAppliedStereotypeProperty.g:1659:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
- // InternalAppliedStereotypeProperty.g:1660:3: lv_ownedMember_4_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
-
- }
- pushFollow(FOLLOW_28);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:1676:2: (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )*
- loop25:
- do {
- int alt25=2;
- int LA25_0 = input.LA(1);
-
- if ( (LA25_0==19) ) {
- alt25=1;
- }
-
-
- switch (alt25) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:1676:4: otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
- {
- otherlv_5=(Token)match(input,19,FOLLOW_27); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getClassDeclarationAccess().getCommaKeyword_3_2_0());
-
- }
- // InternalAppliedStereotypeProperty.g:1680:1: ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
- // InternalAppliedStereotypeProperty.g:1681:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
- {
- // InternalAppliedStereotypeProperty.g:1681:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
- // InternalAppliedStereotypeProperty.g:1682:3: lv_ownedMember_6_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
-
- }
- pushFollow(FOLLOW_28);
- 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 loop25;
- }
- } while (true);
-
- otherlv_7=(Token)match(input,38,FOLLOW_24); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_7, grammarAccess.getClassDeclarationAccess().getGreaterThanSignKeyword_3_3());
-
- }
-
- }
- break;
-
- }
-
- // InternalAppliedStereotypeProperty.g:1702:3: ( (lv_specialization_8_0= ruleSpecializationClause ) )?
- int alt27=2;
- int LA27_0 = input.LA(1);
-
- if ( (LA27_0==34) ) {
- alt27=1;
- }
- switch (alt27) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:1703:1: (lv_specialization_8_0= ruleSpecializationClause )
- {
- // InternalAppliedStereotypeProperty.g:1703:1: (lv_specialization_8_0= ruleSpecializationClause )
- // InternalAppliedStereotypeProperty.g:1704: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"
- // InternalAppliedStereotypeProperty.g:1728:1: entryRuleClassDefinition returns [EObject current=null] : iv_ruleClassDefinition= ruleClassDefinition EOF ;
- public final EObject entryRuleClassDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:1729:2: (iv_ruleClassDefinition= ruleClassDefinition EOF )
- // InternalAppliedStereotypeProperty.g:1730: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"
- // InternalAppliedStereotypeProperty.g:1737: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 {
- // InternalAppliedStereotypeProperty.g:1740:28: ( (this_ClassDeclaration_0= ruleClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleClassMember ) )* otherlv_3= '}' ) )
- // InternalAppliedStereotypeProperty.g:1741:1: (this_ClassDeclaration_0= ruleClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleClassMember ) )* otherlv_3= '}' )
- {
- // InternalAppliedStereotypeProperty.g:1741:1: (this_ClassDeclaration_0= ruleClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleClassMember ) )* otherlv_3= '}' )
- // InternalAppliedStereotypeProperty.g:1742: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_19);
- 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,32,FOLLOW_29); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getClassDefinitionAccess().getLeftCurlyBracketKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:1757:1: ( (lv_ownedMember_2_0= ruleClassMember ) )*
- loop28:
- do {
- int alt28=2;
- int LA28_0 = input.LA(1);
-
- if ( ((LA28_0>=RULE_DOCUMENTATION_COMMENT && LA28_0<=RULE_UNRESTRICTED_NAME)||LA28_0==16||(LA28_0>=28 && LA28_0<=30)||(LA28_0>=35 && LA28_0<=36)||LA28_0==39||(LA28_0>=41 && LA28_0<=45)) ) {
- alt28=1;
- }
-
-
- switch (alt28) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:1758:1: (lv_ownedMember_2_0= ruleClassMember )
- {
- // InternalAppliedStereotypeProperty.g:1758:1: (lv_ownedMember_2_0= ruleClassMember )
- // InternalAppliedStereotypeProperty.g:1759:3: lv_ownedMember_2_0= ruleClassMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassDefinitionAccess().getOwnedMemberClassMemberParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_29);
- 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 loop28;
- }
- } while (true);
-
- otherlv_3=(Token)match(input,33,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"
- // InternalAppliedStereotypeProperty.g:1787:1: entryRuleClassDefinitionOrStub returns [EObject current=null] : iv_ruleClassDefinitionOrStub= ruleClassDefinitionOrStub EOF ;
- public final EObject entryRuleClassDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassDefinitionOrStub = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:1788:2: (iv_ruleClassDefinitionOrStub= ruleClassDefinitionOrStub EOF )
- // InternalAppliedStereotypeProperty.g:1789: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"
- // InternalAppliedStereotypeProperty.g:1796: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 {
- // InternalAppliedStereotypeProperty.g:1799:28: ( (this_ClassDeclaration_0= ruleClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) ) ) )
- // InternalAppliedStereotypeProperty.g:1800:1: (this_ClassDeclaration_0= ruleClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) ) )
- {
- // InternalAppliedStereotypeProperty.g:1800:1: (this_ClassDeclaration_0= ruleClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) ) )
- // InternalAppliedStereotypeProperty.g:1801: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_21);
- this_ClassDeclaration_0=ruleClassDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ClassDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAppliedStereotypeProperty.g:1812:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) )
- int alt30=2;
- int LA30_0 = input.LA(1);
-
- if ( (LA30_0==23) ) {
- alt30=1;
- }
- else if ( (LA30_0==32) ) {
- alt30=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 30, 0, input);
-
- throw nvae;
- }
- switch (alt30) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:1812:2: ( (lv_isStub_1_0= ';' ) )
- {
- // InternalAppliedStereotypeProperty.g:1812:2: ( (lv_isStub_1_0= ';' ) )
- // InternalAppliedStereotypeProperty.g:1813:1: (lv_isStub_1_0= ';' )
- {
- // InternalAppliedStereotypeProperty.g:1813:1: (lv_isStub_1_0= ';' )
- // InternalAppliedStereotypeProperty.g:1814:3: lv_isStub_1_0= ';'
- {
- lv_isStub_1_0=(Token)match(input,23,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 :
- // InternalAppliedStereotypeProperty.g:1828:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' )
- {
- // InternalAppliedStereotypeProperty.g:1828:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' )
- // InternalAppliedStereotypeProperty.g:1828:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}'
- {
- otherlv_2=(Token)match(input,32,FOLLOW_29); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getClassDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:1832:1: ( (lv_ownedMember_3_0= ruleClassMember ) )*
- loop29:
- do {
- int alt29=2;
- int LA29_0 = input.LA(1);
-
- if ( ((LA29_0>=RULE_DOCUMENTATION_COMMENT && LA29_0<=RULE_UNRESTRICTED_NAME)||LA29_0==16||(LA29_0>=28 && LA29_0<=30)||(LA29_0>=35 && LA29_0<=36)||LA29_0==39||(LA29_0>=41 && LA29_0<=45)) ) {
- alt29=1;
- }
-
-
- switch (alt29) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:1833:1: (lv_ownedMember_3_0= ruleClassMember )
- {
- // InternalAppliedStereotypeProperty.g:1833:1: (lv_ownedMember_3_0= ruleClassMember )
- // InternalAppliedStereotypeProperty.g:1834:3: lv_ownedMember_3_0= ruleClassMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassDefinitionOrStubAccess().getOwnedMemberClassMemberParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_29);
- 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 loop29;
- }
- } while (true);
-
- otherlv_4=(Token)match(input,33,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"
- // InternalAppliedStereotypeProperty.g:1862:1: entryRuleClassMember returns [EObject current=null] : iv_ruleClassMember= ruleClassMember EOF ;
- public final EObject entryRuleClassMember() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassMember = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:1863:2: (iv_ruleClassMember= ruleClassMember EOF )
- // InternalAppliedStereotypeProperty.g:1864: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"
- // InternalAppliedStereotypeProperty.g:1871: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 {
- // InternalAppliedStereotypeProperty.g:1874:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )* ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleClassMemberDefinition ) ) ) )
- // InternalAppliedStereotypeProperty.g:1875:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )* ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleClassMemberDefinition ) ) )
- {
- // InternalAppliedStereotypeProperty.g:1875:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )* ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleClassMemberDefinition ) ) )
- // InternalAppliedStereotypeProperty.g:1875:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )* ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleClassMemberDefinition ) )
- {
- // InternalAppliedStereotypeProperty.g:1875:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )*
- loop31:
- do {
- int alt31=2;
- int LA31_0 = input.LA(1);
-
- if ( (LA31_0==RULE_DOCUMENTATION_COMMENT) ) {
- alt31=1;
- }
-
-
- switch (alt31) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:1876:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- {
- // InternalAppliedStereotypeProperty.g:1876:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- // InternalAppliedStereotypeProperty.g:1877:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
- {
- lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_30); 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 loop31;
- }
- } while (true);
-
- // InternalAppliedStereotypeProperty.g:1893:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
- loop32:
- do {
- int alt32=2;
- int LA32_0 = input.LA(1);
-
- if ( (LA32_0==16) ) {
- alt32=1;
- }
-
-
- switch (alt32) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:1894:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- {
- // InternalAppliedStereotypeProperty.g:1894:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- // InternalAppliedStereotypeProperty.g:1895:3: lv_annotation_1_0= ruleStereotypeAnnotation
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassMemberAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_30);
- 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 loop32;
- }
- } while (true);
-
- // InternalAppliedStereotypeProperty.g:1911:3: ( (lv_visibility_2_0= ruleVisibilityIndicator ) )?
- int alt33=2;
- int LA33_0 = input.LA(1);
-
- if ( ((LA33_0>=28 && LA33_0<=30)) ) {
- alt33=1;
- }
- switch (alt33) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:1912:1: (lv_visibility_2_0= ruleVisibilityIndicator )
- {
- // InternalAppliedStereotypeProperty.g:1912:1: (lv_visibility_2_0= ruleVisibilityIndicator )
- // InternalAppliedStereotypeProperty.g:1913:3: lv_visibility_2_0= ruleVisibilityIndicator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassMemberAccess().getVisibilityVisibilityIndicatorParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_30);
- 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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:1929:3: ( (lv_definition_3_0= ruleClassMemberDefinition ) )
- // InternalAppliedStereotypeProperty.g:1930:1: (lv_definition_3_0= ruleClassMemberDefinition )
- {
- // InternalAppliedStereotypeProperty.g:1930:1: (lv_definition_3_0= ruleClassMemberDefinition )
- // InternalAppliedStereotypeProperty.g:1931: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"
- // InternalAppliedStereotypeProperty.g:1955:1: entryRuleClassMemberDefinition returns [EObject current=null] : iv_ruleClassMemberDefinition= ruleClassMemberDefinition EOF ;
- public final EObject entryRuleClassMemberDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassMemberDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:1956:2: (iv_ruleClassMemberDefinition= ruleClassMemberDefinition EOF )
- // InternalAppliedStereotypeProperty.g:1957: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"
- // InternalAppliedStereotypeProperty.g:1964: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 {
- // InternalAppliedStereotypeProperty.g:1967:28: ( (this_ClassifierDefinitionOrStub_0= ruleClassifierDefinitionOrStub | this_FeatureDefinitionOrStub_1= ruleFeatureDefinitionOrStub ) )
- // InternalAppliedStereotypeProperty.g:1968:1: (this_ClassifierDefinitionOrStub_0= ruleClassifierDefinitionOrStub | this_FeatureDefinitionOrStub_1= ruleFeatureDefinitionOrStub )
- {
- // InternalAppliedStereotypeProperty.g:1968:1: (this_ClassifierDefinitionOrStub_0= ruleClassifierDefinitionOrStub | this_FeatureDefinitionOrStub_1= ruleFeatureDefinitionOrStub )
- int alt34=2;
- switch ( input.LA(1) ) {
- case 35:
- {
- int LA34_1 = input.LA(2);
-
- if ( (LA34_1==36||LA34_1==39||(LA34_1>=41 && LA34_1<=42)||LA34_1==44) ) {
- alt34=1;
- }
- else if ( ((LA34_1>=RULE_ID && LA34_1<=RULE_UNRESTRICTED_NAME)) ) {
- alt34=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 34, 1, input);
-
- throw nvae;
- }
- }
- break;
- case 36:
- case 39:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- {
- alt34=1;
- }
- break;
- case RULE_ID:
- case RULE_UNRESTRICTED_NAME:
- {
- alt34=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 34, 0, input);
-
- throw nvae;
- }
-
- switch (alt34) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:1969: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 :
- // InternalAppliedStereotypeProperty.g:1982: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"
- // InternalAppliedStereotypeProperty.g:2001:1: entryRuleActiveClassDeclaration returns [EObject current=null] : iv_ruleActiveClassDeclaration= ruleActiveClassDeclaration EOF ;
- public final EObject entryRuleActiveClassDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleActiveClassDeclaration = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:2002:2: (iv_ruleActiveClassDeclaration= ruleActiveClassDeclaration EOF )
- // InternalAppliedStereotypeProperty.g:2003: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"
- // InternalAppliedStereotypeProperty.g:2010: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 {
- // InternalAppliedStereotypeProperty.g:2013: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 ) )? ) )
- // InternalAppliedStereotypeProperty.g:2014: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 ) )? )
- {
- // InternalAppliedStereotypeProperty.g:2014: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 ) )? )
- // InternalAppliedStereotypeProperty.g:2014: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 ) )?
- {
- // InternalAppliedStereotypeProperty.g:2014:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
- int alt35=2;
- int LA35_0 = input.LA(1);
-
- if ( (LA35_0==35) ) {
- alt35=1;
- }
- switch (alt35) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2015:1: (lv_isAbstract_0_0= 'abstract' )
- {
- // InternalAppliedStereotypeProperty.g:2015:1: (lv_isAbstract_0_0= 'abstract' )
- // InternalAppliedStereotypeProperty.g:2016:3: lv_isAbstract_0_0= 'abstract'
- {
- lv_isAbstract_0_0=(Token)match(input,35,FOLLOW_31); 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,39,FOLLOW_25); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getActiveClassDeclarationAccess().getActiveKeyword_1());
-
- }
- otherlv_2=(Token)match(input,36,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getActiveClassDeclarationAccess().getClassKeyword_2());
-
- }
- // InternalAppliedStereotypeProperty.g:2037:1: ( (lv_name_3_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:2038:1: (lv_name_3_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:2038:1: (lv_name_3_0= ruleName )
- // InternalAppliedStereotypeProperty.g:2039:3: lv_name_3_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getNameNameParserRuleCall_3_0());
-
- }
- pushFollow(FOLLOW_26);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:2055:2: (otherlv_4= '<' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )* otherlv_8= '>' )?
- int alt37=2;
- int LA37_0 = input.LA(1);
-
- if ( (LA37_0==37) ) {
- alt37=1;
- }
- switch (alt37) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2055:4: otherlv_4= '<' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )* otherlv_8= '>'
- {
- otherlv_4=(Token)match(input,37,FOLLOW_27); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getActiveClassDeclarationAccess().getLessThanSignKeyword_4_0());
-
- }
- // InternalAppliedStereotypeProperty.g:2059:1: ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) )
- // InternalAppliedStereotypeProperty.g:2060:1: (lv_ownedMember_5_0= ruleClassifierTemplateParameter )
- {
- // InternalAppliedStereotypeProperty.g:2060:1: (lv_ownedMember_5_0= ruleClassifierTemplateParameter )
- // InternalAppliedStereotypeProperty.g:2061:3: lv_ownedMember_5_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_4_1_0());
-
- }
- pushFollow(FOLLOW_28);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:2077:2: (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )*
- loop36:
- do {
- int alt36=2;
- int LA36_0 = input.LA(1);
-
- if ( (LA36_0==19) ) {
- alt36=1;
- }
-
-
- switch (alt36) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2077:4: otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) )
- {
- otherlv_6=(Token)match(input,19,FOLLOW_27); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_6, grammarAccess.getActiveClassDeclarationAccess().getCommaKeyword_4_2_0());
-
- }
- // InternalAppliedStereotypeProperty.g:2081:1: ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) )
- // InternalAppliedStereotypeProperty.g:2082:1: (lv_ownedMember_7_0= ruleClassifierTemplateParameter )
- {
- // InternalAppliedStereotypeProperty.g:2082:1: (lv_ownedMember_7_0= ruleClassifierTemplateParameter )
- // InternalAppliedStereotypeProperty.g:2083:3: lv_ownedMember_7_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_4_2_1_0());
-
- }
- pushFollow(FOLLOW_28);
- 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 loop36;
- }
- } while (true);
-
- otherlv_8=(Token)match(input,38,FOLLOW_24); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_8, grammarAccess.getActiveClassDeclarationAccess().getGreaterThanSignKeyword_4_3());
-
- }
-
- }
- break;
-
- }
-
- // InternalAppliedStereotypeProperty.g:2103:3: ( (lv_specialization_9_0= ruleSpecializationClause ) )?
- int alt38=2;
- int LA38_0 = input.LA(1);
-
- if ( (LA38_0==34) ) {
- alt38=1;
- }
- switch (alt38) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2104:1: (lv_specialization_9_0= ruleSpecializationClause )
- {
- // InternalAppliedStereotypeProperty.g:2104:1: (lv_specialization_9_0= ruleSpecializationClause )
- // InternalAppliedStereotypeProperty.g:2105: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"
- // InternalAppliedStereotypeProperty.g:2129:1: entryRuleActiveClassDefinition returns [EObject current=null] : iv_ruleActiveClassDefinition= ruleActiveClassDefinition EOF ;
- public final EObject entryRuleActiveClassDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleActiveClassDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:2130:2: (iv_ruleActiveClassDefinition= ruleActiveClassDefinition EOF )
- // InternalAppliedStereotypeProperty.g:2131: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"
- // InternalAppliedStereotypeProperty.g:2138: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 {
- // InternalAppliedStereotypeProperty.g:2141:28: ( (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleActiveClassMember ) )* otherlv_3= '}' (otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) ) )? ) )
- // InternalAppliedStereotypeProperty.g:2142:1: (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleActiveClassMember ) )* otherlv_3= '}' (otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) ) )? )
- {
- // InternalAppliedStereotypeProperty.g:2142:1: (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleActiveClassMember ) )* otherlv_3= '}' (otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) ) )? )
- // InternalAppliedStereotypeProperty.g:2143: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_19);
- 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,32,FOLLOW_32); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getActiveClassDefinitionAccess().getLeftCurlyBracketKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:2158:1: ( (lv_ownedMember_2_0= ruleActiveClassMember ) )*
- loop39:
- do {
- int alt39=2;
- int LA39_0 = input.LA(1);
-
- if ( ((LA39_0>=RULE_DOCUMENTATION_COMMENT && LA39_0<=RULE_UNRESTRICTED_NAME)||LA39_0==16||(LA39_0>=28 && LA39_0<=30)||(LA39_0>=35 && LA39_0<=36)||LA39_0==39||(LA39_0>=41 && LA39_0<=45)||LA39_0==59) ) {
- alt39=1;
- }
-
-
- switch (alt39) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2159:1: (lv_ownedMember_2_0= ruleActiveClassMember )
- {
- // InternalAppliedStereotypeProperty.g:2159:1: (lv_ownedMember_2_0= ruleActiveClassMember )
- // InternalAppliedStereotypeProperty.g:2160:3: lv_ownedMember_2_0= ruleActiveClassMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassDefinitionAccess().getOwnedMemberActiveClassMemberParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_32);
- 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 loop39;
- }
- } while (true);
-
- otherlv_3=(Token)match(input,33,FOLLOW_33); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getActiveClassDefinitionAccess().getRightCurlyBracketKeyword_3());
-
- }
- // InternalAppliedStereotypeProperty.g:2180:1: (otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) ) )?
- int alt40=2;
- int LA40_0 = input.LA(1);
-
- if ( (LA40_0==40) ) {
- alt40=1;
- }
- switch (alt40) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2180:3: otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) )
- {
- otherlv_4=(Token)match(input,40,FOLLOW_34); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getActiveClassDefinitionAccess().getDoKeyword_4_0());
-
- }
- // InternalAppliedStereotypeProperty.g:2184:1: ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) )
- // InternalAppliedStereotypeProperty.g:2185:1: (lv_classifierBehavior_5_0= ruleBehaviorClause )
- {
- // InternalAppliedStereotypeProperty.g:2185:1: (lv_classifierBehavior_5_0= ruleBehaviorClause )
- // InternalAppliedStereotypeProperty.g:2186: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"
- // InternalAppliedStereotypeProperty.g:2210:1: entryRuleActiveClassDefinitionOrStub returns [EObject current=null] : iv_ruleActiveClassDefinitionOrStub= ruleActiveClassDefinitionOrStub EOF ;
- public final EObject entryRuleActiveClassDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleActiveClassDefinitionOrStub = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:2211:2: (iv_ruleActiveClassDefinitionOrStub= ruleActiveClassDefinitionOrStub EOF )
- // InternalAppliedStereotypeProperty.g:2212: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"
- // InternalAppliedStereotypeProperty.g:2219: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 {
- // InternalAppliedStereotypeProperty.g:2222: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 ) ) )? ) ) ) )
- // InternalAppliedStereotypeProperty.g:2223: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 ) ) )? ) ) )
- {
- // InternalAppliedStereotypeProperty.g:2223: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 ) ) )? ) ) )
- // InternalAppliedStereotypeProperty.g:2224: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_21);
- this_ActiveClassDeclaration_0=ruleActiveClassDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ActiveClassDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAppliedStereotypeProperty.g:2235:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? ) )
- int alt43=2;
- int LA43_0 = input.LA(1);
-
- if ( (LA43_0==23) ) {
- alt43=1;
- }
- else if ( (LA43_0==32) ) {
- alt43=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 43, 0, input);
-
- throw nvae;
- }
- switch (alt43) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2235:2: ( (lv_isStub_1_0= ';' ) )
- {
- // InternalAppliedStereotypeProperty.g:2235:2: ( (lv_isStub_1_0= ';' ) )
- // InternalAppliedStereotypeProperty.g:2236:1: (lv_isStub_1_0= ';' )
- {
- // InternalAppliedStereotypeProperty.g:2236:1: (lv_isStub_1_0= ';' )
- // InternalAppliedStereotypeProperty.g:2237:3: lv_isStub_1_0= ';'
- {
- lv_isStub_1_0=(Token)match(input,23,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 :
- // InternalAppliedStereotypeProperty.g:2251:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? )
- {
- // InternalAppliedStereotypeProperty.g:2251:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? )
- // InternalAppliedStereotypeProperty.g:2251:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )?
- {
- otherlv_2=(Token)match(input,32,FOLLOW_32); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getActiveClassDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:2255:1: ( (lv_ownedMember_3_0= ruleActiveClassMember ) )*
- loop41:
- do {
- int alt41=2;
- int LA41_0 = input.LA(1);
-
- if ( ((LA41_0>=RULE_DOCUMENTATION_COMMENT && LA41_0<=RULE_UNRESTRICTED_NAME)||LA41_0==16||(LA41_0>=28 && LA41_0<=30)||(LA41_0>=35 && LA41_0<=36)||LA41_0==39||(LA41_0>=41 && LA41_0<=45)||LA41_0==59) ) {
- alt41=1;
- }
-
-
- switch (alt41) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2256:1: (lv_ownedMember_3_0= ruleActiveClassMember )
- {
- // InternalAppliedStereotypeProperty.g:2256:1: (lv_ownedMember_3_0= ruleActiveClassMember )
- // InternalAppliedStereotypeProperty.g:2257:3: lv_ownedMember_3_0= ruleActiveClassMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassDefinitionOrStubAccess().getOwnedMemberActiveClassMemberParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_32);
- 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 loop41;
- }
- } while (true);
-
- otherlv_4=(Token)match(input,33,FOLLOW_33); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getActiveClassDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
-
- }
- // InternalAppliedStereotypeProperty.g:2277:1: (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )?
- int alt42=2;
- int LA42_0 = input.LA(1);
-
- if ( (LA42_0==40) ) {
- alt42=1;
- }
- switch (alt42) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2277:3: otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) )
- {
- otherlv_5=(Token)match(input,40,FOLLOW_34); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getActiveClassDefinitionOrStubAccess().getDoKeyword_1_1_3_0());
-
- }
- // InternalAppliedStereotypeProperty.g:2281:1: ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) )
- // InternalAppliedStereotypeProperty.g:2282:1: (lv_classifierBehavior_6_0= ruleBehaviorClause )
- {
- // InternalAppliedStereotypeProperty.g:2282:1: (lv_classifierBehavior_6_0= ruleBehaviorClause )
- // InternalAppliedStereotypeProperty.g:2283: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"
- // InternalAppliedStereotypeProperty.g:2307:1: entryRuleBehaviorClause returns [EObject current=null] : iv_ruleBehaviorClause= ruleBehaviorClause EOF ;
- public final EObject entryRuleBehaviorClause() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBehaviorClause = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:2308:2: (iv_ruleBehaviorClause= ruleBehaviorClause EOF )
- // InternalAppliedStereotypeProperty.g:2309: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"
- // InternalAppliedStereotypeProperty.g:2316: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 {
- // InternalAppliedStereotypeProperty.g:2319:28: ( ( ( (lv_body_0_0= ruleBlock ) ) | ( (lv_name_1_0= ruleName ) ) ) )
- // InternalAppliedStereotypeProperty.g:2320:1: ( ( (lv_body_0_0= ruleBlock ) ) | ( (lv_name_1_0= ruleName ) ) )
- {
- // InternalAppliedStereotypeProperty.g:2320:1: ( ( (lv_body_0_0= ruleBlock ) ) | ( (lv_name_1_0= ruleName ) ) )
- int alt44=2;
- int LA44_0 = input.LA(1);
-
- if ( (LA44_0==32) ) {
- alt44=1;
- }
- else if ( ((LA44_0>=RULE_ID && LA44_0<=RULE_UNRESTRICTED_NAME)) ) {
- alt44=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 44, 0, input);
-
- throw nvae;
- }
- switch (alt44) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2320:2: ( (lv_body_0_0= ruleBlock ) )
- {
- // InternalAppliedStereotypeProperty.g:2320:2: ( (lv_body_0_0= ruleBlock ) )
- // InternalAppliedStereotypeProperty.g:2321:1: (lv_body_0_0= ruleBlock )
- {
- // InternalAppliedStereotypeProperty.g:2321:1: (lv_body_0_0= ruleBlock )
- // InternalAppliedStereotypeProperty.g:2322: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 :
- // InternalAppliedStereotypeProperty.g:2339:6: ( (lv_name_1_0= ruleName ) )
- {
- // InternalAppliedStereotypeProperty.g:2339:6: ( (lv_name_1_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:2340:1: (lv_name_1_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:2340:1: (lv_name_1_0= ruleName )
- // InternalAppliedStereotypeProperty.g:2341: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"
- // InternalAppliedStereotypeProperty.g:2365:1: entryRuleActiveClassMember returns [EObject current=null] : iv_ruleActiveClassMember= ruleActiveClassMember EOF ;
- public final EObject entryRuleActiveClassMember() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleActiveClassMember = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:2366:2: (iv_ruleActiveClassMember= ruleActiveClassMember EOF )
- // InternalAppliedStereotypeProperty.g:2367: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"
- // InternalAppliedStereotypeProperty.g:2374: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 {
- // InternalAppliedStereotypeProperty.g:2377:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleActiveClassMemberDefinition ) ) ) )
- // InternalAppliedStereotypeProperty.g:2378:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleActiveClassMemberDefinition ) ) )
- {
- // InternalAppliedStereotypeProperty.g:2378:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleActiveClassMemberDefinition ) ) )
- // InternalAppliedStereotypeProperty.g:2378:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleActiveClassMemberDefinition ) )
- {
- // InternalAppliedStereotypeProperty.g:2378:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
- int alt45=2;
- int LA45_0 = input.LA(1);
-
- if ( (LA45_0==RULE_DOCUMENTATION_COMMENT) ) {
- alt45=1;
- }
- switch (alt45) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2379:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- {
- // InternalAppliedStereotypeProperty.g:2379:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- // InternalAppliedStereotypeProperty.g:2380:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
- {
- lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_35); 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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:2396:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
- loop46:
- do {
- int alt46=2;
- int LA46_0 = input.LA(1);
-
- if ( (LA46_0==16) ) {
- alt46=1;
- }
-
-
- switch (alt46) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2397:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- {
- // InternalAppliedStereotypeProperty.g:2397:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- // InternalAppliedStereotypeProperty.g:2398:3: lv_annotation_1_0= ruleStereotypeAnnotation
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassMemberAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_35);
- 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 loop46;
- }
- } while (true);
-
- // InternalAppliedStereotypeProperty.g:2414:3: ( (lv_visibility_2_0= ruleVisibilityIndicator ) )?
- int alt47=2;
- int LA47_0 = input.LA(1);
-
- if ( ((LA47_0>=28 && LA47_0<=30)) ) {
- alt47=1;
- }
- switch (alt47) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2415:1: (lv_visibility_2_0= ruleVisibilityIndicator )
- {
- // InternalAppliedStereotypeProperty.g:2415:1: (lv_visibility_2_0= ruleVisibilityIndicator )
- // InternalAppliedStereotypeProperty.g:2416:3: lv_visibility_2_0= ruleVisibilityIndicator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassMemberAccess().getVisibilityVisibilityIndicatorParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_35);
- 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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:2432:3: ( (lv_definition_3_0= ruleActiveClassMemberDefinition ) )
- // InternalAppliedStereotypeProperty.g:2433:1: (lv_definition_3_0= ruleActiveClassMemberDefinition )
- {
- // InternalAppliedStereotypeProperty.g:2433:1: (lv_definition_3_0= ruleActiveClassMemberDefinition )
- // InternalAppliedStereotypeProperty.g:2434: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"
- // InternalAppliedStereotypeProperty.g:2458:1: entryRuleActiveClassMemberDefinition returns [EObject current=null] : iv_ruleActiveClassMemberDefinition= ruleActiveClassMemberDefinition EOF ;
- public final EObject entryRuleActiveClassMemberDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleActiveClassMemberDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:2459:2: (iv_ruleActiveClassMemberDefinition= ruleActiveClassMemberDefinition EOF )
- // InternalAppliedStereotypeProperty.g:2460: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"
- // InternalAppliedStereotypeProperty.g:2467: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 {
- // InternalAppliedStereotypeProperty.g:2470:28: ( (this_ClassMemberDefinition_0= ruleClassMemberDefinition | this_ActiveFeatureDefinitionOrStub_1= ruleActiveFeatureDefinitionOrStub ) )
- // InternalAppliedStereotypeProperty.g:2471:1: (this_ClassMemberDefinition_0= ruleClassMemberDefinition | this_ActiveFeatureDefinitionOrStub_1= ruleActiveFeatureDefinitionOrStub )
- {
- // InternalAppliedStereotypeProperty.g:2471:1: (this_ClassMemberDefinition_0= ruleClassMemberDefinition | this_ActiveFeatureDefinitionOrStub_1= ruleActiveFeatureDefinitionOrStub )
- int alt48=2;
- int LA48_0 = input.LA(1);
-
- if ( ((LA48_0>=RULE_ID && LA48_0<=RULE_UNRESTRICTED_NAME)||(LA48_0>=35 && LA48_0<=36)||LA48_0==39||(LA48_0>=41 && LA48_0<=45)) ) {
- alt48=1;
- }
- else if ( (LA48_0==59) ) {
- 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 :
- // InternalAppliedStereotypeProperty.g:2472: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 :
- // InternalAppliedStereotypeProperty.g:2485: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"
- // InternalAppliedStereotypeProperty.g:2504:1: entryRuleDataTypeDeclaration returns [EObject current=null] : iv_ruleDataTypeDeclaration= ruleDataTypeDeclaration EOF ;
- public final EObject entryRuleDataTypeDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleDataTypeDeclaration = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:2505:2: (iv_ruleDataTypeDeclaration= ruleDataTypeDeclaration EOF )
- // InternalAppliedStereotypeProperty.g:2506: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"
- // InternalAppliedStereotypeProperty.g:2513: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 {
- // InternalAppliedStereotypeProperty.g:2516: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 ) )? ) )
- // InternalAppliedStereotypeProperty.g:2517: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 ) )? )
- {
- // InternalAppliedStereotypeProperty.g:2517: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 ) )? )
- // InternalAppliedStereotypeProperty.g:2517: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 ) )?
- {
- // InternalAppliedStereotypeProperty.g:2517:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
- int alt49=2;
- int LA49_0 = input.LA(1);
-
- if ( (LA49_0==35) ) {
- alt49=1;
- }
- switch (alt49) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2518:1: (lv_isAbstract_0_0= 'abstract' )
- {
- // InternalAppliedStereotypeProperty.g:2518:1: (lv_isAbstract_0_0= 'abstract' )
- // InternalAppliedStereotypeProperty.g:2519:3: lv_isAbstract_0_0= 'abstract'
- {
- lv_isAbstract_0_0=(Token)match(input,35,FOLLOW_36); 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,41,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getDataTypeDeclarationAccess().getDatatypeKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:2536:1: ( (lv_name_2_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:2537:1: (lv_name_2_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:2537:1: (lv_name_2_0= ruleName )
- // InternalAppliedStereotypeProperty.g:2538:3: lv_name_2_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getNameNameParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_26);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:2554:2: (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )?
- int alt51=2;
- int LA51_0 = input.LA(1);
-
- if ( (LA51_0==37) ) {
- alt51=1;
- }
- switch (alt51) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2554:4: otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>'
- {
- otherlv_3=(Token)match(input,37,FOLLOW_27); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getDataTypeDeclarationAccess().getLessThanSignKeyword_3_0());
-
- }
- // InternalAppliedStereotypeProperty.g:2558:1: ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) )
- // InternalAppliedStereotypeProperty.g:2559:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
- {
- // InternalAppliedStereotypeProperty.g:2559:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
- // InternalAppliedStereotypeProperty.g:2560:3: lv_ownedMember_4_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
-
- }
- pushFollow(FOLLOW_28);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:2576:2: (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )*
- loop50:
- do {
- int alt50=2;
- int LA50_0 = input.LA(1);
-
- if ( (LA50_0==19) ) {
- alt50=1;
- }
-
-
- switch (alt50) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2576:4: otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
- {
- otherlv_5=(Token)match(input,19,FOLLOW_27); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getDataTypeDeclarationAccess().getCommaKeyword_3_2_0());
-
- }
- // InternalAppliedStereotypeProperty.g:2580:1: ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
- // InternalAppliedStereotypeProperty.g:2581:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
- {
- // InternalAppliedStereotypeProperty.g:2581:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
- // InternalAppliedStereotypeProperty.g:2582:3: lv_ownedMember_6_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
-
- }
- pushFollow(FOLLOW_28);
- 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 loop50;
- }
- } while (true);
-
- otherlv_7=(Token)match(input,38,FOLLOW_24); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_7, grammarAccess.getDataTypeDeclarationAccess().getGreaterThanSignKeyword_3_3());
-
- }
-
- }
- break;
-
- }
-
- // InternalAppliedStereotypeProperty.g:2602:3: ( (lv_specialization_8_0= ruleSpecializationClause ) )?
- int alt52=2;
- int LA52_0 = input.LA(1);
-
- if ( (LA52_0==34) ) {
- alt52=1;
- }
- switch (alt52) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2603:1: (lv_specialization_8_0= ruleSpecializationClause )
- {
- // InternalAppliedStereotypeProperty.g:2603:1: (lv_specialization_8_0= ruleSpecializationClause )
- // InternalAppliedStereotypeProperty.g:2604: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"
- // InternalAppliedStereotypeProperty.g:2628:1: entryRuleDataTypeDefinition returns [EObject current=null] : iv_ruleDataTypeDefinition= ruleDataTypeDefinition EOF ;
- public final EObject entryRuleDataTypeDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleDataTypeDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:2629:2: (iv_ruleDataTypeDefinition= ruleDataTypeDefinition EOF )
- // InternalAppliedStereotypeProperty.g:2630: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"
- // InternalAppliedStereotypeProperty.g:2637: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 {
- // InternalAppliedStereotypeProperty.g:2640:28: ( (this_DataTypeDeclaration_0= ruleDataTypeDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' ) )
- // InternalAppliedStereotypeProperty.g:2641:1: (this_DataTypeDeclaration_0= ruleDataTypeDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
- {
- // InternalAppliedStereotypeProperty.g:2641:1: (this_DataTypeDeclaration_0= ruleDataTypeDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
- // InternalAppliedStereotypeProperty.g:2642: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_19);
- 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,32,FOLLOW_37); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getDataTypeDefinitionAccess().getLeftCurlyBracketKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:2657:1: ( (lv_ownedMember_2_0= ruleStructuredMember ) )*
- loop53:
- do {
- int alt53=2;
- int LA53_0 = input.LA(1);
-
- if ( ((LA53_0>=RULE_DOCUMENTATION_COMMENT && LA53_0<=RULE_UNRESTRICTED_NAME)||LA53_0==16||LA53_0==28) ) {
- alt53=1;
- }
-
-
- switch (alt53) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2658:1: (lv_ownedMember_2_0= ruleStructuredMember )
- {
- // InternalAppliedStereotypeProperty.g:2658:1: (lv_ownedMember_2_0= ruleStructuredMember )
- // InternalAppliedStereotypeProperty.g:2659:3: lv_ownedMember_2_0= ruleStructuredMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getDataTypeDefinitionAccess().getOwnedMemberStructuredMemberParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_37);
- 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 loop53;
- }
- } while (true);
-
- otherlv_3=(Token)match(input,33,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"
- // InternalAppliedStereotypeProperty.g:2687:1: entryRuleDataTypeDefinitionOrStub returns [EObject current=null] : iv_ruleDataTypeDefinitionOrStub= ruleDataTypeDefinitionOrStub EOF ;
- public final EObject entryRuleDataTypeDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleDataTypeDefinitionOrStub = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:2688:2: (iv_ruleDataTypeDefinitionOrStub= ruleDataTypeDefinitionOrStub EOF )
- // InternalAppliedStereotypeProperty.g:2689: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"
- // InternalAppliedStereotypeProperty.g:2696: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 {
- // InternalAppliedStereotypeProperty.g:2699:28: ( (this_DataTypeDeclaration_0= ruleDataTypeDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) )
- // InternalAppliedStereotypeProperty.g:2700:1: (this_DataTypeDeclaration_0= ruleDataTypeDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
- {
- // InternalAppliedStereotypeProperty.g:2700:1: (this_DataTypeDeclaration_0= ruleDataTypeDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
- // InternalAppliedStereotypeProperty.g:2701: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_21);
- this_DataTypeDeclaration_0=ruleDataTypeDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_DataTypeDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAppliedStereotypeProperty.g:2712:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
- int alt55=2;
- int LA55_0 = input.LA(1);
-
- if ( (LA55_0==23) ) {
- alt55=1;
- }
- else if ( (LA55_0==32) ) {
- alt55=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 55, 0, input);
-
- throw nvae;
- }
- switch (alt55) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2712:2: ( (lv_isStub_1_0= ';' ) )
- {
- // InternalAppliedStereotypeProperty.g:2712:2: ( (lv_isStub_1_0= ';' ) )
- // InternalAppliedStereotypeProperty.g:2713:1: (lv_isStub_1_0= ';' )
- {
- // InternalAppliedStereotypeProperty.g:2713:1: (lv_isStub_1_0= ';' )
- // InternalAppliedStereotypeProperty.g:2714:3: lv_isStub_1_0= ';'
- {
- lv_isStub_1_0=(Token)match(input,23,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 :
- // InternalAppliedStereotypeProperty.g:2728:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
- {
- // InternalAppliedStereotypeProperty.g:2728:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
- // InternalAppliedStereotypeProperty.g:2728:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}'
- {
- otherlv_2=(Token)match(input,32,FOLLOW_37); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getDataTypeDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:2732:1: ( (lv_ownedMember_3_0= ruleStructuredMember ) )*
- loop54:
- do {
- int alt54=2;
- int LA54_0 = input.LA(1);
-
- if ( ((LA54_0>=RULE_DOCUMENTATION_COMMENT && LA54_0<=RULE_UNRESTRICTED_NAME)||LA54_0==16||LA54_0==28) ) {
- alt54=1;
- }
-
-
- switch (alt54) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2733:1: (lv_ownedMember_3_0= ruleStructuredMember )
- {
- // InternalAppliedStereotypeProperty.g:2733:1: (lv_ownedMember_3_0= ruleStructuredMember )
- // InternalAppliedStereotypeProperty.g:2734:3: lv_ownedMember_3_0= ruleStructuredMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getDataTypeDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_37);
- 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 loop54;
- }
- } while (true);
-
- otherlv_4=(Token)match(input,33,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"
- // InternalAppliedStereotypeProperty.g:2762:1: entryRuleStructuredMember returns [EObject current=null] : iv_ruleStructuredMember= ruleStructuredMember EOF ;
- public final EObject entryRuleStructuredMember() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleStructuredMember = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:2763:2: (iv_ruleStructuredMember= ruleStructuredMember EOF )
- // InternalAppliedStereotypeProperty.g:2764: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"
- // InternalAppliedStereotypeProperty.g:2771: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 {
- // InternalAppliedStereotypeProperty.g:2774:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= 'public' ) )? ( (lv_definition_3_0= rulePropertyDefinition ) ) ) )
- // InternalAppliedStereotypeProperty.g:2775:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= 'public' ) )? ( (lv_definition_3_0= rulePropertyDefinition ) ) )
- {
- // InternalAppliedStereotypeProperty.g:2775:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= 'public' ) )? ( (lv_definition_3_0= rulePropertyDefinition ) ) )
- // InternalAppliedStereotypeProperty.g:2775:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= 'public' ) )? ( (lv_definition_3_0= rulePropertyDefinition ) )
- {
- // InternalAppliedStereotypeProperty.g:2775:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
- int alt56=2;
- int LA56_0 = input.LA(1);
-
- if ( (LA56_0==RULE_DOCUMENTATION_COMMENT) ) {
- alt56=1;
- }
- switch (alt56) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2776:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- {
- // InternalAppliedStereotypeProperty.g:2776:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- // InternalAppliedStereotypeProperty.g:2777:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
- {
- lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_38); 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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:2793:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
- loop57:
- do {
- int alt57=2;
- int LA57_0 = input.LA(1);
-
- if ( (LA57_0==16) ) {
- alt57=1;
- }
-
-
- switch (alt57) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2794:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- {
- // InternalAppliedStereotypeProperty.g:2794:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- // InternalAppliedStereotypeProperty.g:2795:3: lv_annotation_1_0= ruleStereotypeAnnotation
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStructuredMemberAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_38);
- 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 loop57;
- }
- } while (true);
-
- // InternalAppliedStereotypeProperty.g:2811:3: ( (lv_visibility_2_0= 'public' ) )?
- int alt58=2;
- int LA58_0 = input.LA(1);
-
- if ( (LA58_0==28) ) {
- alt58=1;
- }
- switch (alt58) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2812:1: (lv_visibility_2_0= 'public' )
- {
- // InternalAppliedStereotypeProperty.g:2812:1: (lv_visibility_2_0= 'public' )
- // InternalAppliedStereotypeProperty.g:2813:3: lv_visibility_2_0= 'public'
- {
- lv_visibility_2_0=(Token)match(input,28,FOLLOW_38); 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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:2826:3: ( (lv_definition_3_0= rulePropertyDefinition ) )
- // InternalAppliedStereotypeProperty.g:2827:1: (lv_definition_3_0= rulePropertyDefinition )
- {
- // InternalAppliedStereotypeProperty.g:2827:1: (lv_definition_3_0= rulePropertyDefinition )
- // InternalAppliedStereotypeProperty.g:2828: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"
- // InternalAppliedStereotypeProperty.g:2852:1: entryRuleAssociationDeclaration returns [EObject current=null] : iv_ruleAssociationDeclaration= ruleAssociationDeclaration EOF ;
- public final EObject entryRuleAssociationDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAssociationDeclaration = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:2853:2: (iv_ruleAssociationDeclaration= ruleAssociationDeclaration EOF )
- // InternalAppliedStereotypeProperty.g:2854: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"
- // InternalAppliedStereotypeProperty.g:2861: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 {
- // InternalAppliedStereotypeProperty.g:2864: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 ) )? ) )
- // InternalAppliedStereotypeProperty.g:2865: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 ) )? )
- {
- // InternalAppliedStereotypeProperty.g:2865: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 ) )? )
- // InternalAppliedStereotypeProperty.g:2865: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 ) )?
- {
- // InternalAppliedStereotypeProperty.g:2865:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
- int alt59=2;
- int LA59_0 = input.LA(1);
-
- if ( (LA59_0==35) ) {
- alt59=1;
- }
- switch (alt59) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2866:1: (lv_isAbstract_0_0= 'abstract' )
- {
- // InternalAppliedStereotypeProperty.g:2866:1: (lv_isAbstract_0_0= 'abstract' )
- // InternalAppliedStereotypeProperty.g:2867:3: lv_isAbstract_0_0= 'abstract'
- {
- lv_isAbstract_0_0=(Token)match(input,35,FOLLOW_39); 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,42,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getAssociationDeclarationAccess().getAssocKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:2884:1: ( (lv_name_2_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:2885:1: (lv_name_2_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:2885:1: (lv_name_2_0= ruleName )
- // InternalAppliedStereotypeProperty.g:2886:3: lv_name_2_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getNameNameParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_26);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:2902:2: (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )?
- int alt61=2;
- int LA61_0 = input.LA(1);
-
- if ( (LA61_0==37) ) {
- alt61=1;
- }
- switch (alt61) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2902:4: otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>'
- {
- otherlv_3=(Token)match(input,37,FOLLOW_27); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getAssociationDeclarationAccess().getLessThanSignKeyword_3_0());
-
- }
- // InternalAppliedStereotypeProperty.g:2906:1: ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) )
- // InternalAppliedStereotypeProperty.g:2907:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
- {
- // InternalAppliedStereotypeProperty.g:2907:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
- // InternalAppliedStereotypeProperty.g:2908:3: lv_ownedMember_4_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
-
- }
- pushFollow(FOLLOW_28);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:2924:2: (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )*
- loop60:
- do {
- int alt60=2;
- int LA60_0 = input.LA(1);
-
- if ( (LA60_0==19) ) {
- alt60=1;
- }
-
-
- switch (alt60) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2924:4: otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
- {
- otherlv_5=(Token)match(input,19,FOLLOW_27); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getAssociationDeclarationAccess().getCommaKeyword_3_2_0());
-
- }
- // InternalAppliedStereotypeProperty.g:2928:1: ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
- // InternalAppliedStereotypeProperty.g:2929:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
- {
- // InternalAppliedStereotypeProperty.g:2929:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
- // InternalAppliedStereotypeProperty.g:2930:3: lv_ownedMember_6_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
-
- }
- pushFollow(FOLLOW_28);
- 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 loop60;
- }
- } while (true);
-
- otherlv_7=(Token)match(input,38,FOLLOW_24); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_7, grammarAccess.getAssociationDeclarationAccess().getGreaterThanSignKeyword_3_3());
-
- }
-
- }
- break;
-
- }
-
- // InternalAppliedStereotypeProperty.g:2950:3: ( (lv_specialization_8_0= ruleSpecializationClause ) )?
- int alt62=2;
- int LA62_0 = input.LA(1);
-
- if ( (LA62_0==34) ) {
- alt62=1;
- }
- switch (alt62) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:2951:1: (lv_specialization_8_0= ruleSpecializationClause )
- {
- // InternalAppliedStereotypeProperty.g:2951:1: (lv_specialization_8_0= ruleSpecializationClause )
- // InternalAppliedStereotypeProperty.g:2952: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"
- // InternalAppliedStereotypeProperty.g:2976:1: entryRuleAssociationDefinition returns [EObject current=null] : iv_ruleAssociationDefinition= ruleAssociationDefinition EOF ;
- public final EObject entryRuleAssociationDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAssociationDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:2977:2: (iv_ruleAssociationDefinition= ruleAssociationDefinition EOF )
- // InternalAppliedStereotypeProperty.g:2978: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"
- // InternalAppliedStereotypeProperty.g:2985: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 {
- // InternalAppliedStereotypeProperty.g:2988:28: ( (this_AssociationDeclaration_0= ruleAssociationDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' ) )
- // InternalAppliedStereotypeProperty.g:2989:1: (this_AssociationDeclaration_0= ruleAssociationDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
- {
- // InternalAppliedStereotypeProperty.g:2989:1: (this_AssociationDeclaration_0= ruleAssociationDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
- // InternalAppliedStereotypeProperty.g:2990: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_19);
- 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,32,FOLLOW_37); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getAssociationDefinitionAccess().getLeftCurlyBracketKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:3005:1: ( (lv_ownedMember_2_0= ruleStructuredMember ) )*
- loop63:
- do {
- int alt63=2;
- int LA63_0 = input.LA(1);
-
- if ( ((LA63_0>=RULE_DOCUMENTATION_COMMENT && LA63_0<=RULE_UNRESTRICTED_NAME)||LA63_0==16||LA63_0==28) ) {
- alt63=1;
- }
-
-
- switch (alt63) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3006:1: (lv_ownedMember_2_0= ruleStructuredMember )
- {
- // InternalAppliedStereotypeProperty.g:3006:1: (lv_ownedMember_2_0= ruleStructuredMember )
- // InternalAppliedStereotypeProperty.g:3007:3: lv_ownedMember_2_0= ruleStructuredMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAssociationDefinitionAccess().getOwnedMemberStructuredMemberParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_37);
- 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 loop63;
- }
- } while (true);
-
- otherlv_3=(Token)match(input,33,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"
- // InternalAppliedStereotypeProperty.g:3035:1: entryRuleAssociationDefinitionOrStub returns [EObject current=null] : iv_ruleAssociationDefinitionOrStub= ruleAssociationDefinitionOrStub EOF ;
- public final EObject entryRuleAssociationDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAssociationDefinitionOrStub = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:3036:2: (iv_ruleAssociationDefinitionOrStub= ruleAssociationDefinitionOrStub EOF )
- // InternalAppliedStereotypeProperty.g:3037: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"
- // InternalAppliedStereotypeProperty.g:3044: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 {
- // InternalAppliedStereotypeProperty.g:3047:28: ( (this_AssociationDeclaration_0= ruleAssociationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) )
- // InternalAppliedStereotypeProperty.g:3048:1: (this_AssociationDeclaration_0= ruleAssociationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
- {
- // InternalAppliedStereotypeProperty.g:3048:1: (this_AssociationDeclaration_0= ruleAssociationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
- // InternalAppliedStereotypeProperty.g:3049: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_21);
- this_AssociationDeclaration_0=ruleAssociationDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_AssociationDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAppliedStereotypeProperty.g:3060:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
- int alt65=2;
- int LA65_0 = input.LA(1);
-
- if ( (LA65_0==23) ) {
- alt65=1;
- }
- else if ( (LA65_0==32) ) {
- alt65=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 65, 0, input);
-
- throw nvae;
- }
- switch (alt65) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3060:2: ( (lv_isStub_1_0= ';' ) )
- {
- // InternalAppliedStereotypeProperty.g:3060:2: ( (lv_isStub_1_0= ';' ) )
- // InternalAppliedStereotypeProperty.g:3061:1: (lv_isStub_1_0= ';' )
- {
- // InternalAppliedStereotypeProperty.g:3061:1: (lv_isStub_1_0= ';' )
- // InternalAppliedStereotypeProperty.g:3062:3: lv_isStub_1_0= ';'
- {
- lv_isStub_1_0=(Token)match(input,23,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 :
- // InternalAppliedStereotypeProperty.g:3076:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
- {
- // InternalAppliedStereotypeProperty.g:3076:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
- // InternalAppliedStereotypeProperty.g:3076:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}'
- {
- otherlv_2=(Token)match(input,32,FOLLOW_37); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getAssociationDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:3080:1: ( (lv_ownedMember_3_0= ruleStructuredMember ) )*
- loop64:
- do {
- int alt64=2;
- int LA64_0 = input.LA(1);
-
- if ( ((LA64_0>=RULE_DOCUMENTATION_COMMENT && LA64_0<=RULE_UNRESTRICTED_NAME)||LA64_0==16||LA64_0==28) ) {
- alt64=1;
- }
-
-
- switch (alt64) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3081:1: (lv_ownedMember_3_0= ruleStructuredMember )
- {
- // InternalAppliedStereotypeProperty.g:3081:1: (lv_ownedMember_3_0= ruleStructuredMember )
- // InternalAppliedStereotypeProperty.g:3082:3: lv_ownedMember_3_0= ruleStructuredMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAssociationDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_37);
- 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 loop64;
- }
- } while (true);
-
- otherlv_4=(Token)match(input,33,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"
- // InternalAppliedStereotypeProperty.g:3110:1: entryRuleEnumerationDeclaration returns [EObject current=null] : iv_ruleEnumerationDeclaration= ruleEnumerationDeclaration EOF ;
- public final EObject entryRuleEnumerationDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleEnumerationDeclaration = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:3111:2: (iv_ruleEnumerationDeclaration= ruleEnumerationDeclaration EOF )
- // InternalAppliedStereotypeProperty.g:3112: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"
- // InternalAppliedStereotypeProperty.g:3119: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 {
- // InternalAppliedStereotypeProperty.g:3122:28: ( (otherlv_0= 'enum' ( (lv_name_1_0= ruleName ) ) ( (lv_specialization_2_0= ruleSpecializationClause ) )? ) )
- // InternalAppliedStereotypeProperty.g:3123:1: (otherlv_0= 'enum' ( (lv_name_1_0= ruleName ) ) ( (lv_specialization_2_0= ruleSpecializationClause ) )? )
- {
- // InternalAppliedStereotypeProperty.g:3123:1: (otherlv_0= 'enum' ( (lv_name_1_0= ruleName ) ) ( (lv_specialization_2_0= ruleSpecializationClause ) )? )
- // InternalAppliedStereotypeProperty.g:3123:3: otherlv_0= 'enum' ( (lv_name_1_0= ruleName ) ) ( (lv_specialization_2_0= ruleSpecializationClause ) )?
- {
- otherlv_0=(Token)match(input,43,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getEnumerationDeclarationAccess().getEnumKeyword_0());
-
- }
- // InternalAppliedStereotypeProperty.g:3127:1: ( (lv_name_1_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:3128:1: (lv_name_1_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:3128:1: (lv_name_1_0= ruleName )
- // InternalAppliedStereotypeProperty.g:3129:3: lv_name_1_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getEnumerationDeclarationAccess().getNameNameParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_24);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:3145:2: ( (lv_specialization_2_0= ruleSpecializationClause ) )?
- int alt66=2;
- int LA66_0 = input.LA(1);
-
- if ( (LA66_0==34) ) {
- alt66=1;
- }
- switch (alt66) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3146:1: (lv_specialization_2_0= ruleSpecializationClause )
- {
- // InternalAppliedStereotypeProperty.g:3146:1: (lv_specialization_2_0= ruleSpecializationClause )
- // InternalAppliedStereotypeProperty.g:3147: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"
- // InternalAppliedStereotypeProperty.g:3171:1: entryRuleEnumerationDefinition returns [EObject current=null] : iv_ruleEnumerationDefinition= ruleEnumerationDefinition EOF ;
- public final EObject entryRuleEnumerationDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleEnumerationDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:3172:2: (iv_ruleEnumerationDefinition= ruleEnumerationDefinition EOF )
- // InternalAppliedStereotypeProperty.g:3173: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"
- // InternalAppliedStereotypeProperty.g:3180: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 {
- // InternalAppliedStereotypeProperty.g:3183:28: ( (this_EnumerationDeclaration_0= ruleEnumerationDeclaration otherlv_1= '{' ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )* )? otherlv_5= '}' ) )
- // InternalAppliedStereotypeProperty.g:3184:1: (this_EnumerationDeclaration_0= ruleEnumerationDeclaration otherlv_1= '{' ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )* )? otherlv_5= '}' )
- {
- // InternalAppliedStereotypeProperty.g:3184:1: (this_EnumerationDeclaration_0= ruleEnumerationDeclaration otherlv_1= '{' ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )* )? otherlv_5= '}' )
- // InternalAppliedStereotypeProperty.g:3185: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_19);
- 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,32,FOLLOW_40); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getEnumerationDefinitionAccess().getLeftCurlyBracketKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:3200:1: ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )* )?
- int alt68=2;
- int LA68_0 = input.LA(1);
-
- if ( ((LA68_0>=RULE_DOCUMENTATION_COMMENT && LA68_0<=RULE_UNRESTRICTED_NAME)) ) {
- alt68=1;
- }
- switch (alt68) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3200:2: ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )*
- {
- // InternalAppliedStereotypeProperty.g:3200:2: ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) )
- // InternalAppliedStereotypeProperty.g:3201:1: (lv_ownedMember_2_0= ruleEnumerationLiteralName )
- {
- // InternalAppliedStereotypeProperty.g:3201:1: (lv_ownedMember_2_0= ruleEnumerationLiteralName )
- // InternalAppliedStereotypeProperty.g:3202:3: lv_ownedMember_2_0= ruleEnumerationLiteralName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getEnumerationDefinitionAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_2_0_0());
-
- }
- pushFollow(FOLLOW_41);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:3218:2: (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )*
- loop67:
- do {
- int alt67=2;
- int LA67_0 = input.LA(1);
-
- if ( (LA67_0==19) ) {
- alt67=1;
- }
-
-
- switch (alt67) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3218:4: otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) )
- {
- otherlv_3=(Token)match(input,19,FOLLOW_27); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getEnumerationDefinitionAccess().getCommaKeyword_2_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:3222:1: ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) )
- // InternalAppliedStereotypeProperty.g:3223:1: (lv_ownedMember_4_0= ruleEnumerationLiteralName )
- {
- // InternalAppliedStereotypeProperty.g:3223:1: (lv_ownedMember_4_0= ruleEnumerationLiteralName )
- // InternalAppliedStereotypeProperty.g:3224:3: lv_ownedMember_4_0= ruleEnumerationLiteralName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getEnumerationDefinitionAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_2_1_1_0());
-
- }
- pushFollow(FOLLOW_41);
- 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 loop67;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
- otherlv_5=(Token)match(input,33,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"
- // InternalAppliedStereotypeProperty.g:3252:1: entryRuleEnumerationDefinitionOrStub returns [EObject current=null] : iv_ruleEnumerationDefinitionOrStub= ruleEnumerationDefinitionOrStub EOF ;
- public final EObject entryRuleEnumerationDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleEnumerationDefinitionOrStub = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:3253:2: (iv_ruleEnumerationDefinitionOrStub= ruleEnumerationDefinitionOrStub EOF )
- // InternalAppliedStereotypeProperty.g:3254: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"
- // InternalAppliedStereotypeProperty.g:3261: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 {
- // InternalAppliedStereotypeProperty.g:3264: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= '}' ) ) ) )
- // InternalAppliedStereotypeProperty.g:3265: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= '}' ) ) )
- {
- // InternalAppliedStereotypeProperty.g:3265: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= '}' ) ) )
- // InternalAppliedStereotypeProperty.g:3266: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_21);
- this_EnumerationDeclaration_0=ruleEnumerationDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_EnumerationDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAppliedStereotypeProperty.g:3277:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' ) )
- int alt71=2;
- int LA71_0 = input.LA(1);
-
- if ( (LA71_0==23) ) {
- alt71=1;
- }
- else if ( (LA71_0==32) ) {
- alt71=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 71, 0, input);
-
- throw nvae;
- }
- switch (alt71) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3277:2: ( (lv_isStub_1_0= ';' ) )
- {
- // InternalAppliedStereotypeProperty.g:3277:2: ( (lv_isStub_1_0= ';' ) )
- // InternalAppliedStereotypeProperty.g:3278:1: (lv_isStub_1_0= ';' )
- {
- // InternalAppliedStereotypeProperty.g:3278:1: (lv_isStub_1_0= ';' )
- // InternalAppliedStereotypeProperty.g:3279:3: lv_isStub_1_0= ';'
- {
- lv_isStub_1_0=(Token)match(input,23,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 :
- // InternalAppliedStereotypeProperty.g:3293:6: (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' )
- {
- // InternalAppliedStereotypeProperty.g:3293:6: (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' )
- // InternalAppliedStereotypeProperty.g:3293:8: otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}'
- {
- otherlv_2=(Token)match(input,32,FOLLOW_40); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getEnumerationDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:3297:1: ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )?
- int alt70=2;
- int LA70_0 = input.LA(1);
-
- if ( ((LA70_0>=RULE_DOCUMENTATION_COMMENT && LA70_0<=RULE_UNRESTRICTED_NAME)) ) {
- alt70=1;
- }
- switch (alt70) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3297:2: ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )*
- {
- // InternalAppliedStereotypeProperty.g:3297:2: ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) )
- // InternalAppliedStereotypeProperty.g:3298:1: (lv_ownedMember_3_0= ruleEnumerationLiteralName )
- {
- // InternalAppliedStereotypeProperty.g:3298:1: (lv_ownedMember_3_0= ruleEnumerationLiteralName )
- // InternalAppliedStereotypeProperty.g:3299:3: lv_ownedMember_3_0= ruleEnumerationLiteralName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_0_0());
-
- }
- pushFollow(FOLLOW_41);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:3315:2: (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )*
- loop69:
- do {
- int alt69=2;
- int LA69_0 = input.LA(1);
-
- if ( (LA69_0==19) ) {
- alt69=1;
- }
-
-
- switch (alt69) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3315:4: otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) )
- {
- otherlv_4=(Token)match(input,19,FOLLOW_27); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getEnumerationDefinitionOrStubAccess().getCommaKeyword_1_1_1_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:3319:1: ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) )
- // InternalAppliedStereotypeProperty.g:3320:1: (lv_ownedMember_5_0= ruleEnumerationLiteralName )
- {
- // InternalAppliedStereotypeProperty.g:3320:1: (lv_ownedMember_5_0= ruleEnumerationLiteralName )
- // InternalAppliedStereotypeProperty.g:3321:3: lv_ownedMember_5_0= ruleEnumerationLiteralName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_1_1_0());
-
- }
- pushFollow(FOLLOW_41);
- 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 loop69;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
- otherlv_6=(Token)match(input,33,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"
- // InternalAppliedStereotypeProperty.g:3349:1: entryRuleEnumerationLiteralName returns [EObject current=null] : iv_ruleEnumerationLiteralName= ruleEnumerationLiteralName EOF ;
- public final EObject entryRuleEnumerationLiteralName() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleEnumerationLiteralName = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:3350:2: (iv_ruleEnumerationLiteralName= ruleEnumerationLiteralName EOF )
- // InternalAppliedStereotypeProperty.g:3351: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"
+ // InternalAppliedStereotypeProperty.g:7338:2: (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList )
+ // InternalAppliedStereotypeProperty.g:7338:2: this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList
+ {
+ if (state.backtracking == 0) {
- // $ANTLR start "ruleEnumerationLiteralName"
- // InternalAppliedStereotypeProperty.g:3358: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 {
- // InternalAppliedStereotypeProperty.g:3361:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) ) ) )
- // InternalAppliedStereotypeProperty.g:3362:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) ) )
- {
- // InternalAppliedStereotypeProperty.g:3362:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) ) )
- // InternalAppliedStereotypeProperty.g:3362:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) )
- {
- // InternalAppliedStereotypeProperty.g:3362:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
- int alt72=2;
- int LA72_0 = input.LA(1);
-
- if ( (LA72_0==RULE_DOCUMENTATION_COMMENT) ) {
- alt72=1;
- }
- switch (alt72) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3363:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- {
- // InternalAppliedStereotypeProperty.g:3363:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- // InternalAppliedStereotypeProperty.g:3364:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
- {
- lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_27); 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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:3380:3: ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) )
- // InternalAppliedStereotypeProperty.g:3381:1: (lv_definition_1_0= ruleEnumerationLiteralNameDefinition )
- {
- // InternalAppliedStereotypeProperty.g:3381:1: (lv_definition_1_0= ruleEnumerationLiteralNameDefinition )
- // InternalAppliedStereotypeProperty.g:3382: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"
- // InternalAppliedStereotypeProperty.g:3406:1: entryRuleEnumerationLiteralNameDefinition returns [EObject current=null] : iv_ruleEnumerationLiteralNameDefinition= ruleEnumerationLiteralNameDefinition EOF ;
- public final EObject entryRuleEnumerationLiteralNameDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleEnumerationLiteralNameDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:3407:2: (iv_ruleEnumerationLiteralNameDefinition= ruleEnumerationLiteralNameDefinition EOF )
- // InternalAppliedStereotypeProperty.g:3408: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"
- // InternalAppliedStereotypeProperty.g:3415: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 {
- // InternalAppliedStereotypeProperty.g:3418:28: ( ( (lv_name_0_0= ruleName ) ) )
- // InternalAppliedStereotypeProperty.g:3419:1: ( (lv_name_0_0= ruleName ) )
- {
- // InternalAppliedStereotypeProperty.g:3419:1: ( (lv_name_0_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:3420:1: (lv_name_0_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:3420:1: (lv_name_0_0= ruleName )
- // InternalAppliedStereotypeProperty.g:3421: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"
- // InternalAppliedStereotypeProperty.g:3445:1: entryRuleSignalDeclaration returns [EObject current=null] : iv_ruleSignalDeclaration= ruleSignalDeclaration EOF ;
- public final EObject entryRuleSignalDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSignalDeclaration = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:3446:2: (iv_ruleSignalDeclaration= ruleSignalDeclaration EOF )
- // InternalAppliedStereotypeProperty.g:3447: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"
- // InternalAppliedStereotypeProperty.g:3454: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 {
- // InternalAppliedStereotypeProperty.g:3457: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 ) )? ) )
- // InternalAppliedStereotypeProperty.g:3458: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 ) )? )
- {
- // InternalAppliedStereotypeProperty.g:3458: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 ) )? )
- // InternalAppliedStereotypeProperty.g:3458: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 ) )?
- {
- // InternalAppliedStereotypeProperty.g:3458:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
- int alt73=2;
- int LA73_0 = input.LA(1);
-
- if ( (LA73_0==35) ) {
- alt73=1;
- }
- switch (alt73) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3459:1: (lv_isAbstract_0_0= 'abstract' )
- {
- // InternalAppliedStereotypeProperty.g:3459:1: (lv_isAbstract_0_0= 'abstract' )
- // InternalAppliedStereotypeProperty.g:3460:3: lv_isAbstract_0_0= 'abstract'
- {
- lv_isAbstract_0_0=(Token)match(input,35,FOLLOW_42); 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,44,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getSignalDeclarationAccess().getSignalKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:3477:1: ( (lv_name_2_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:3478:1: (lv_name_2_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:3478:1: (lv_name_2_0= ruleName )
- // InternalAppliedStereotypeProperty.g:3479:3: lv_name_2_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSignalDeclarationAccess().getNameNameParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_26);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:3495:2: (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )?
- int alt75=2;
- int LA75_0 = input.LA(1);
-
- if ( (LA75_0==37) ) {
- alt75=1;
- }
- switch (alt75) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3495:4: otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>'
- {
- otherlv_3=(Token)match(input,37,FOLLOW_27); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getSignalDeclarationAccess().getLessThanSignKeyword_3_0());
-
- }
- // InternalAppliedStereotypeProperty.g:3499:1: ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) )
- // InternalAppliedStereotypeProperty.g:3500:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
- {
- // InternalAppliedStereotypeProperty.g:3500:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
- // InternalAppliedStereotypeProperty.g:3501:3: lv_ownedMember_4_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSignalDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
-
- }
- pushFollow(FOLLOW_28);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:3517:2: (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )*
- loop74:
- do {
- int alt74=2;
- int LA74_0 = input.LA(1);
-
- if ( (LA74_0==19) ) {
- alt74=1;
- }
-
-
- switch (alt74) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3517:4: otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
- {
- otherlv_5=(Token)match(input,19,FOLLOW_27); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getSignalDeclarationAccess().getCommaKeyword_3_2_0());
-
- }
- // InternalAppliedStereotypeProperty.g:3521:1: ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
- // InternalAppliedStereotypeProperty.g:3522:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
- {
- // InternalAppliedStereotypeProperty.g:3522:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
- // InternalAppliedStereotypeProperty.g:3523:3: lv_ownedMember_6_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSignalDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
-
- }
- pushFollow(FOLLOW_28);
- 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 loop74;
- }
- } while (true);
-
- otherlv_7=(Token)match(input,38,FOLLOW_24); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_7, grammarAccess.getSignalDeclarationAccess().getGreaterThanSignKeyword_3_3());
-
- }
-
- }
- break;
-
- }
-
- // InternalAppliedStereotypeProperty.g:3543:3: ( (lv_specialization_8_0= ruleSpecializationClause ) )?
- int alt76=2;
- int LA76_0 = input.LA(1);
-
- if ( (LA76_0==34) ) {
- alt76=1;
- }
- switch (alt76) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3544:1: (lv_specialization_8_0= ruleSpecializationClause )
- {
- // InternalAppliedStereotypeProperty.g:3544:1: (lv_specialization_8_0= ruleSpecializationClause )
- // InternalAppliedStereotypeProperty.g:3545: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"
- // InternalAppliedStereotypeProperty.g:3569:1: entryRuleSignalDefinition returns [EObject current=null] : iv_ruleSignalDefinition= ruleSignalDefinition EOF ;
- public final EObject entryRuleSignalDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSignalDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:3570:2: (iv_ruleSignalDefinition= ruleSignalDefinition EOF )
- // InternalAppliedStereotypeProperty.g:3571: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"
- // InternalAppliedStereotypeProperty.g:3578: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 {
- // InternalAppliedStereotypeProperty.g:3581:28: ( (this_SignalDeclaration_0= ruleSignalDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' ) )
- // InternalAppliedStereotypeProperty.g:3582:1: (this_SignalDeclaration_0= ruleSignalDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
- {
- // InternalAppliedStereotypeProperty.g:3582:1: (this_SignalDeclaration_0= ruleSignalDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
- // InternalAppliedStereotypeProperty.g:3583: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_19);
- 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,32,FOLLOW_37); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getSignalDefinitionAccess().getLeftCurlyBracketKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:3598:1: ( (lv_ownedMember_2_0= ruleStructuredMember ) )*
- loop77:
- do {
- int alt77=2;
- int LA77_0 = input.LA(1);
-
- if ( ((LA77_0>=RULE_DOCUMENTATION_COMMENT && LA77_0<=RULE_UNRESTRICTED_NAME)||LA77_0==16||LA77_0==28) ) {
- alt77=1;
- }
-
-
- switch (alt77) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3599:1: (lv_ownedMember_2_0= ruleStructuredMember )
- {
- // InternalAppliedStereotypeProperty.g:3599:1: (lv_ownedMember_2_0= ruleStructuredMember )
- // InternalAppliedStereotypeProperty.g:3600:3: lv_ownedMember_2_0= ruleStructuredMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSignalDefinitionAccess().getOwnedMemberStructuredMemberParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_37);
- 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 loop77;
- }
- } while (true);
-
- otherlv_3=(Token)match(input,33,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"
- // InternalAppliedStereotypeProperty.g:3628:1: entryRuleSignalDefinitionOrStub returns [EObject current=null] : iv_ruleSignalDefinitionOrStub= ruleSignalDefinitionOrStub EOF ;
- public final EObject entryRuleSignalDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSignalDefinitionOrStub = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:3629:2: (iv_ruleSignalDefinitionOrStub= ruleSignalDefinitionOrStub EOF )
- // InternalAppliedStereotypeProperty.g:3630: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"
- // InternalAppliedStereotypeProperty.g:3637: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 {
- // InternalAppliedStereotypeProperty.g:3640:28: ( (this_SignalDeclaration_0= ruleSignalDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) )
- // InternalAppliedStereotypeProperty.g:3641:1: (this_SignalDeclaration_0= ruleSignalDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
- {
- // InternalAppliedStereotypeProperty.g:3641:1: (this_SignalDeclaration_0= ruleSignalDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
- // InternalAppliedStereotypeProperty.g:3642: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_21);
- this_SignalDeclaration_0=ruleSignalDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_SignalDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAppliedStereotypeProperty.g:3653:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
- int alt79=2;
- int LA79_0 = input.LA(1);
-
- if ( (LA79_0==23) ) {
- alt79=1;
- }
- else if ( (LA79_0==32) ) {
- alt79=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 79, 0, input);
-
- throw nvae;
- }
- switch (alt79) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3653:2: ( (lv_isStub_1_0= ';' ) )
- {
- // InternalAppliedStereotypeProperty.g:3653:2: ( (lv_isStub_1_0= ';' ) )
- // InternalAppliedStereotypeProperty.g:3654:1: (lv_isStub_1_0= ';' )
- {
- // InternalAppliedStereotypeProperty.g:3654:1: (lv_isStub_1_0= ';' )
- // InternalAppliedStereotypeProperty.g:3655:3: lv_isStub_1_0= ';'
- {
- lv_isStub_1_0=(Token)match(input,23,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 :
- // InternalAppliedStereotypeProperty.g:3669:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
- {
- // InternalAppliedStereotypeProperty.g:3669:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
- // InternalAppliedStereotypeProperty.g:3669:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}'
- {
- otherlv_2=(Token)match(input,32,FOLLOW_37); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getSignalDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:3673:1: ( (lv_ownedMember_3_0= ruleStructuredMember ) )*
- loop78:
- do {
- int alt78=2;
- int LA78_0 = input.LA(1);
-
- if ( ((LA78_0>=RULE_DOCUMENTATION_COMMENT && LA78_0<=RULE_UNRESTRICTED_NAME)||LA78_0==16||LA78_0==28) ) {
- alt78=1;
- }
-
-
- switch (alt78) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3674:1: (lv_ownedMember_3_0= ruleStructuredMember )
- {
- // InternalAppliedStereotypeProperty.g:3674:1: (lv_ownedMember_3_0= ruleStructuredMember )
- // InternalAppliedStereotypeProperty.g:3675:3: lv_ownedMember_3_0= ruleStructuredMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSignalDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_37);
- 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 loop78;
- }
- } while (true);
-
- otherlv_4=(Token)match(input,33,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"
- // InternalAppliedStereotypeProperty.g:3703:1: entryRuleActivityDeclaration returns [EObject current=null] : iv_ruleActivityDeclaration= ruleActivityDeclaration EOF ;
- public final EObject entryRuleActivityDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleActivityDeclaration = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:3704:2: (iv_ruleActivityDeclaration= ruleActivityDeclaration EOF )
- // InternalAppliedStereotypeProperty.g:3705: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"
- // InternalAppliedStereotypeProperty.g:3712: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 {
- // InternalAppliedStereotypeProperty.g:3715: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 ) )? ) )
- // InternalAppliedStereotypeProperty.g:3716: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 ) )? )
- {
- // InternalAppliedStereotypeProperty.g:3716: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 ) )? )
- // InternalAppliedStereotypeProperty.g:3716: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,45,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getActivityDeclarationAccess().getActivityKeyword_0());
-
- }
- // InternalAppliedStereotypeProperty.g:3720:1: ( (lv_name_1_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:3721:1: (lv_name_1_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:3721:1: (lv_name_1_0= ruleName )
- // InternalAppliedStereotypeProperty.g:3722:3: lv_name_1_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActivityDeclarationAccess().getNameNameParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_43);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:3738:2: (otherlv_2= '<' ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )* otherlv_6= '>' )?
- int alt81=2;
- int LA81_0 = input.LA(1);
-
- if ( (LA81_0==37) ) {
- alt81=1;
- }
- switch (alt81) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3738:4: otherlv_2= '<' ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )* otherlv_6= '>'
- {
- otherlv_2=(Token)match(input,37,FOLLOW_27); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getActivityDeclarationAccess().getLessThanSignKeyword_2_0());
-
- }
- // InternalAppliedStereotypeProperty.g:3742:1: ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) )
- // InternalAppliedStereotypeProperty.g:3743:1: (lv_ownedMember_3_0= ruleClassifierTemplateParameter )
- {
- // InternalAppliedStereotypeProperty.g:3743:1: (lv_ownedMember_3_0= ruleClassifierTemplateParameter )
- // InternalAppliedStereotypeProperty.g:3744:3: lv_ownedMember_3_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_2_1_0());
-
- }
- pushFollow(FOLLOW_28);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:3760:2: (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )*
- loop80:
- do {
- int alt80=2;
- int LA80_0 = input.LA(1);
-
- if ( (LA80_0==19) ) {
- alt80=1;
- }
-
-
- switch (alt80) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3760:4: otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) )
- {
- otherlv_4=(Token)match(input,19,FOLLOW_27); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getActivityDeclarationAccess().getCommaKeyword_2_2_0());
-
- }
- // InternalAppliedStereotypeProperty.g:3764:1: ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) )
- // InternalAppliedStereotypeProperty.g:3765:1: (lv_ownedMember_5_0= ruleClassifierTemplateParameter )
- {
- // InternalAppliedStereotypeProperty.g:3765:1: (lv_ownedMember_5_0= ruleClassifierTemplateParameter )
- // InternalAppliedStereotypeProperty.g:3766:3: lv_ownedMember_5_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_2_2_1_0());
-
- }
- pushFollow(FOLLOW_28);
- 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 loop80;
- }
- } while (true);
-
- otherlv_6=(Token)match(input,38,FOLLOW_44); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_6, grammarAccess.getActivityDeclarationAccess().getGreaterThanSignKeyword_2_3());
-
- }
-
- }
- break;
-
- }
-
- otherlv_7=(Token)match(input,17,FOLLOW_45); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_7, grammarAccess.getActivityDeclarationAccess().getLeftParenthesisKeyword_3());
-
- }
- // InternalAppliedStereotypeProperty.g:3790:1: ( ( (lv_ownedMember_8_0= ruleFormalParameter ) ) (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )* )?
- int alt83=2;
- int LA83_0 = input.LA(1);
-
- if ( (LA83_0==RULE_DOCUMENTATION_COMMENT||LA83_0==16||(LA83_0>=47 && LA83_0<=49)) ) {
- alt83=1;
- }
- switch (alt83) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3790:2: ( (lv_ownedMember_8_0= ruleFormalParameter ) ) (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )*
- {
- // InternalAppliedStereotypeProperty.g:3790:2: ( (lv_ownedMember_8_0= ruleFormalParameter ) )
- // InternalAppliedStereotypeProperty.g:3791:1: (lv_ownedMember_8_0= ruleFormalParameter )
- {
- // InternalAppliedStereotypeProperty.g:3791:1: (lv_ownedMember_8_0= ruleFormalParameter )
- // InternalAppliedStereotypeProperty.g:3792:3: lv_ownedMember_8_0= ruleFormalParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_4_0_0());
-
- }
- pushFollow(FOLLOW_46);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:3808:2: (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )*
- loop82:
- do {
- int alt82=2;
- int LA82_0 = input.LA(1);
-
- if ( (LA82_0==19) ) {
- alt82=1;
- }
-
-
- switch (alt82) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3808:4: otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) )
- {
- otherlv_9=(Token)match(input,19,FOLLOW_47); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_9, grammarAccess.getActivityDeclarationAccess().getCommaKeyword_4_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:3812:1: ( (lv_ownedMember_10_0= ruleFormalParameter ) )
- // InternalAppliedStereotypeProperty.g:3813:1: (lv_ownedMember_10_0= ruleFormalParameter )
- {
- // InternalAppliedStereotypeProperty.g:3813:1: (lv_ownedMember_10_0= ruleFormalParameter )
- // InternalAppliedStereotypeProperty.g:3814:3: lv_ownedMember_10_0= ruleFormalParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_4_1_1_0());
-
- }
- pushFollow(FOLLOW_46);
- 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 loop82;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
- otherlv_11=(Token)match(input,18,FOLLOW_48); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_11, grammarAccess.getActivityDeclarationAccess().getRightParenthesisKeyword_5());
-
- }
- // InternalAppliedStereotypeProperty.g:3834:1: ( (lv_ownedMember_12_0= ruleReturnParameter ) )?
- int alt84=2;
- int LA84_0 = input.LA(1);
-
- if ( (LA84_0==46) ) {
- alt84=1;
- }
- switch (alt84) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3835:1: (lv_ownedMember_12_0= ruleReturnParameter )
- {
- // InternalAppliedStereotypeProperty.g:3835:1: (lv_ownedMember_12_0= ruleReturnParameter )
- // InternalAppliedStereotypeProperty.g:3836: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"
- // InternalAppliedStereotypeProperty.g:3860:1: entryRuleActivityDefinition returns [EObject current=null] : iv_ruleActivityDefinition= ruleActivityDefinition EOF ;
- public final EObject entryRuleActivityDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleActivityDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:3861:2: (iv_ruleActivityDefinition= ruleActivityDefinition EOF )
- // InternalAppliedStereotypeProperty.g:3862: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"
- // InternalAppliedStereotypeProperty.g:3869: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 {
- // InternalAppliedStereotypeProperty.g:3872:28: ( (this_ActivityDeclaration_0= ruleActivityDeclaration ( (lv_body_1_0= ruleBlock ) ) ) )
- // InternalAppliedStereotypeProperty.g:3873:1: (this_ActivityDeclaration_0= ruleActivityDeclaration ( (lv_body_1_0= ruleBlock ) ) )
- {
- // InternalAppliedStereotypeProperty.g:3873:1: (this_ActivityDeclaration_0= ruleActivityDeclaration ( (lv_body_1_0= ruleBlock ) ) )
- // InternalAppliedStereotypeProperty.g:3874: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_19);
- this_ActivityDeclaration_0=ruleActivityDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ActivityDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAppliedStereotypeProperty.g:3885:1: ( (lv_body_1_0= ruleBlock ) )
- // InternalAppliedStereotypeProperty.g:3886:1: (lv_body_1_0= ruleBlock )
- {
- // InternalAppliedStereotypeProperty.g:3886:1: (lv_body_1_0= ruleBlock )
- // InternalAppliedStereotypeProperty.g:3887: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"
- // InternalAppliedStereotypeProperty.g:3911:1: entryRuleActivityDefinitionOrStub returns [EObject current=null] : iv_ruleActivityDefinitionOrStub= ruleActivityDefinitionOrStub EOF ;
- public final EObject entryRuleActivityDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleActivityDefinitionOrStub = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:3912:2: (iv_ruleActivityDefinitionOrStub= ruleActivityDefinitionOrStub EOF )
- // InternalAppliedStereotypeProperty.g:3913: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"
- // InternalAppliedStereotypeProperty.g:3920: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 {
- // InternalAppliedStereotypeProperty.g:3923:28: ( (this_ActivityDeclaration_0= ruleActivityDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) ) )
- // InternalAppliedStereotypeProperty.g:3924:1: (this_ActivityDeclaration_0= ruleActivityDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) )
- {
- // InternalAppliedStereotypeProperty.g:3924:1: (this_ActivityDeclaration_0= ruleActivityDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) )
- // InternalAppliedStereotypeProperty.g:3925: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_21);
- this_ActivityDeclaration_0=ruleActivityDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ActivityDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAppliedStereotypeProperty.g:3936:1: ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) )
- int alt85=2;
- int LA85_0 = input.LA(1);
-
- if ( (LA85_0==23) ) {
- alt85=1;
- }
- else if ( (LA85_0==32) ) {
- alt85=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 85, 0, input);
-
- throw nvae;
- }
- switch (alt85) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3936:2: ( (lv_isStub_1_0= ';' ) )
- {
- // InternalAppliedStereotypeProperty.g:3936:2: ( (lv_isStub_1_0= ';' ) )
- // InternalAppliedStereotypeProperty.g:3937:1: (lv_isStub_1_0= ';' )
- {
- // InternalAppliedStereotypeProperty.g:3937:1: (lv_isStub_1_0= ';' )
- // InternalAppliedStereotypeProperty.g:3938:3: lv_isStub_1_0= ';'
- {
- lv_isStub_1_0=(Token)match(input,23,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 :
- // InternalAppliedStereotypeProperty.g:3952:6: ( (lv_body_2_0= ruleBlock ) )
- {
- // InternalAppliedStereotypeProperty.g:3952:6: ( (lv_body_2_0= ruleBlock ) )
- // InternalAppliedStereotypeProperty.g:3953:1: (lv_body_2_0= ruleBlock )
- {
- // InternalAppliedStereotypeProperty.g:3953:1: (lv_body_2_0= ruleBlock )
- // InternalAppliedStereotypeProperty.g:3954: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"
- // InternalAppliedStereotypeProperty.g:3978:1: entryRuleFormalParameter returns [EObject current=null] : iv_ruleFormalParameter= ruleFormalParameter EOF ;
- public final EObject entryRuleFormalParameter() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleFormalParameter = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:3979:2: (iv_ruleFormalParameter= ruleFormalParameter EOF )
- // InternalAppliedStereotypeProperty.g:3980: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"
- // InternalAppliedStereotypeProperty.g:3987: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 {
- // InternalAppliedStereotypeProperty.g:3990:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_definition_2_0= ruleFormalParameterDefinition ) ) ) )
- // InternalAppliedStereotypeProperty.g:3991:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_definition_2_0= ruleFormalParameterDefinition ) ) )
- {
- // InternalAppliedStereotypeProperty.g:3991:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_definition_2_0= ruleFormalParameterDefinition ) ) )
- // InternalAppliedStereotypeProperty.g:3991:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_definition_2_0= ruleFormalParameterDefinition ) )
- {
- // InternalAppliedStereotypeProperty.g:3991:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
- int alt86=2;
- int LA86_0 = input.LA(1);
-
- if ( (LA86_0==RULE_DOCUMENTATION_COMMENT) ) {
- alt86=1;
- }
- switch (alt86) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:3992:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- {
- // InternalAppliedStereotypeProperty.g:3992:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- // InternalAppliedStereotypeProperty.g:3993:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
- {
- lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_47); 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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:4009:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
- loop87:
- do {
- int alt87=2;
- int LA87_0 = input.LA(1);
-
- if ( (LA87_0==16) ) {
- alt87=1;
- }
-
-
- switch (alt87) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4010:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- {
- // InternalAppliedStereotypeProperty.g:4010:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- // InternalAppliedStereotypeProperty.g:4011:3: lv_annotation_1_0= ruleStereotypeAnnotation
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getFormalParameterAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_47);
- 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 loop87;
- }
- } while (true);
-
- // InternalAppliedStereotypeProperty.g:4027:3: ( (lv_definition_2_0= ruleFormalParameterDefinition ) )
- // InternalAppliedStereotypeProperty.g:4028:1: (lv_definition_2_0= ruleFormalParameterDefinition )
- {
- // InternalAppliedStereotypeProperty.g:4028:1: (lv_definition_2_0= ruleFormalParameterDefinition )
- // InternalAppliedStereotypeProperty.g:4029: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"
- // InternalAppliedStereotypeProperty.g:4053:1: entryRuleFormalParameterDefinition returns [EObject current=null] : iv_ruleFormalParameterDefinition= ruleFormalParameterDefinition EOF ;
- public final EObject entryRuleFormalParameterDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleFormalParameterDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:4054:2: (iv_ruleFormalParameterDefinition= ruleFormalParameterDefinition EOF )
- // InternalAppliedStereotypeProperty.g:4055: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"
- // InternalAppliedStereotypeProperty.g:4062: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 {
- // InternalAppliedStereotypeProperty.g:4065:28: ( ( ( (lv_direction_0_0= ruleParameterDirection ) ) ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( (lv_typePart_3_0= ruleTypePart ) ) ) )
- // InternalAppliedStereotypeProperty.g:4066:1: ( ( (lv_direction_0_0= ruleParameterDirection ) ) ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( (lv_typePart_3_0= ruleTypePart ) ) )
- {
- // InternalAppliedStereotypeProperty.g:4066:1: ( ( (lv_direction_0_0= ruleParameterDirection ) ) ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( (lv_typePart_3_0= ruleTypePart ) ) )
- // InternalAppliedStereotypeProperty.g:4066:2: ( (lv_direction_0_0= ruleParameterDirection ) ) ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( (lv_typePart_3_0= ruleTypePart ) )
- {
- // InternalAppliedStereotypeProperty.g:4066:2: ( (lv_direction_0_0= ruleParameterDirection ) )
- // InternalAppliedStereotypeProperty.g:4067:1: (lv_direction_0_0= ruleParameterDirection )
- {
- // InternalAppliedStereotypeProperty.g:4067:1: (lv_direction_0_0= ruleParameterDirection )
- // InternalAppliedStereotypeProperty.g:4068:3: lv_direction_0_0= ruleParameterDirection
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getFormalParameterDefinitionAccess().getDirectionParameterDirectionParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_14);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:4084:2: ( (lv_name_1_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:4085:1: (lv_name_1_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:4085:1: (lv_name_1_0= ruleName )
- // InternalAppliedStereotypeProperty.g:4086:3: lv_name_1_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getFormalParameterDefinitionAccess().getNameNameParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_49);
- 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,46,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getFormalParameterDefinitionAccess().getColonKeyword_2());
-
- }
- // InternalAppliedStereotypeProperty.g:4106:1: ( (lv_typePart_3_0= ruleTypePart ) )
- // InternalAppliedStereotypeProperty.g:4107:1: (lv_typePart_3_0= ruleTypePart )
- {
- // InternalAppliedStereotypeProperty.g:4107:1: (lv_typePart_3_0= ruleTypePart )
- // InternalAppliedStereotypeProperty.g:4108: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"
- // InternalAppliedStereotypeProperty.g:4132:1: entryRuleReturnParameter returns [EObject current=null] : iv_ruleReturnParameter= ruleReturnParameter EOF ;
- public final EObject entryRuleReturnParameter() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleReturnParameter = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:4133:2: (iv_ruleReturnParameter= ruleReturnParameter EOF )
- // InternalAppliedStereotypeProperty.g:4134: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"
- // InternalAppliedStereotypeProperty.g:4141: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 {
- // InternalAppliedStereotypeProperty.g:4144:28: ( ( (lv_definition_0_0= ruleReturnParameterDefinition ) ) )
- // InternalAppliedStereotypeProperty.g:4145:1: ( (lv_definition_0_0= ruleReturnParameterDefinition ) )
- {
- // InternalAppliedStereotypeProperty.g:4145:1: ( (lv_definition_0_0= ruleReturnParameterDefinition ) )
- // InternalAppliedStereotypeProperty.g:4146:1: (lv_definition_0_0= ruleReturnParameterDefinition )
- {
- // InternalAppliedStereotypeProperty.g:4146:1: (lv_definition_0_0= ruleReturnParameterDefinition )
- // InternalAppliedStereotypeProperty.g:4147: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"
- // InternalAppliedStereotypeProperty.g:4171:1: entryRuleReturnParameterDefinition returns [EObject current=null] : iv_ruleReturnParameterDefinition= ruleReturnParameterDefinition EOF ;
- public final EObject entryRuleReturnParameterDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleReturnParameterDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:4172:2: (iv_ruleReturnParameterDefinition= ruleReturnParameterDefinition EOF )
- // InternalAppliedStereotypeProperty.g:4173: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"
- // InternalAppliedStereotypeProperty.g:4180: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 {
- // InternalAppliedStereotypeProperty.g:4183:28: ( (otherlv_0= ':' ( (lv_typePart_1_0= ruleTypePart ) ) ) )
- // InternalAppliedStereotypeProperty.g:4184:1: (otherlv_0= ':' ( (lv_typePart_1_0= ruleTypePart ) ) )
- {
- // InternalAppliedStereotypeProperty.g:4184:1: (otherlv_0= ':' ( (lv_typePart_1_0= ruleTypePart ) ) )
- // InternalAppliedStereotypeProperty.g:4184:3: otherlv_0= ':' ( (lv_typePart_1_0= ruleTypePart ) )
- {
- otherlv_0=(Token)match(input,46,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getReturnParameterDefinitionAccess().getColonKeyword_0());
-
- }
- // InternalAppliedStereotypeProperty.g:4188:1: ( (lv_typePart_1_0= ruleTypePart ) )
- // InternalAppliedStereotypeProperty.g:4189:1: (lv_typePart_1_0= ruleTypePart )
- {
- // InternalAppliedStereotypeProperty.g:4189:1: (lv_typePart_1_0= ruleTypePart )
- // InternalAppliedStereotypeProperty.g:4190: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"
- // InternalAppliedStereotypeProperty.g:4214:1: entryRuleParameterDirection returns [String current=null] : iv_ruleParameterDirection= ruleParameterDirection EOF ;
- public final String entryRuleParameterDirection() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleParameterDirection = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:4215:2: (iv_ruleParameterDirection= ruleParameterDirection EOF )
- // InternalAppliedStereotypeProperty.g:4216: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"
- // InternalAppliedStereotypeProperty.g:4223: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 {
- // InternalAppliedStereotypeProperty.g:4226:28: ( (kw= 'in' | kw= 'out' | kw= 'inout' ) )
- // InternalAppliedStereotypeProperty.g:4227:1: (kw= 'in' | kw= 'out' | kw= 'inout' )
- {
- // InternalAppliedStereotypeProperty.g:4227:1: (kw= 'in' | kw= 'out' | kw= 'inout' )
- int alt88=3;
- switch ( input.LA(1) ) {
- case 47:
- {
- alt88=1;
- }
- break;
- case 48:
- {
- alt88=2;
- }
- break;
- case 49:
- {
- alt88=3;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 88, 0, input);
-
- throw nvae;
- }
-
- switch (alt88) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4228:2: kw= 'in'
- {
- kw=(Token)match(input,47,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getParameterDirectionAccess().getInKeyword_0());
-
- }
-
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:4235:2: kw= 'out'
- {
- kw=(Token)match(input,48,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getParameterDirectionAccess().getOutKeyword_1());
-
- }
-
- }
- break;
- case 3 :
- // InternalAppliedStereotypeProperty.g:4242:2: kw= 'inout'
- {
- kw=(Token)match(input,49,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"
- // InternalAppliedStereotypeProperty.g:4255:1: entryRuleFeatureDefinitionOrStub returns [EObject current=null] : iv_ruleFeatureDefinitionOrStub= ruleFeatureDefinitionOrStub EOF ;
- public final EObject entryRuleFeatureDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleFeatureDefinitionOrStub = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:4256:2: (iv_ruleFeatureDefinitionOrStub= ruleFeatureDefinitionOrStub EOF )
- // InternalAppliedStereotypeProperty.g:4257: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"
- // InternalAppliedStereotypeProperty.g:4264: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 {
- // InternalAppliedStereotypeProperty.g:4267:28: ( (this_AttributeDefinition_0= ruleAttributeDefinition | this_OperationDefinitionOrStub_1= ruleOperationDefinitionOrStub ) )
- // InternalAppliedStereotypeProperty.g:4268:1: (this_AttributeDefinition_0= ruleAttributeDefinition | this_OperationDefinitionOrStub_1= ruleOperationDefinitionOrStub )
- {
- // InternalAppliedStereotypeProperty.g:4268:1: (this_AttributeDefinition_0= ruleAttributeDefinition | this_OperationDefinitionOrStub_1= ruleOperationDefinitionOrStub )
- int alt89=2;
- switch ( input.LA(1) ) {
- case RULE_ID:
- {
- int LA89_1 = input.LA(2);
-
- if ( (LA89_1==46) ) {
- alt89=1;
- }
- else if ( (LA89_1==17) ) {
- alt89=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 89, 1, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_UNRESTRICTED_NAME:
- {
- int LA89_2 = input.LA(2);
-
- if ( (LA89_2==46) ) {
- alt89=1;
- }
- else if ( (LA89_2==17) ) {
- alt89=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 89, 2, input);
-
- throw nvae;
- }
- }
- break;
- case 35:
- {
- alt89=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 89, 0, input);
-
- throw nvae;
- }
-
- switch (alt89) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4269: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 :
- // InternalAppliedStereotypeProperty.g:4282: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"
- // InternalAppliedStereotypeProperty.g:4301:1: entryRuleActiveFeatureDefinitionOrStub returns [EObject current=null] : iv_ruleActiveFeatureDefinitionOrStub= ruleActiveFeatureDefinitionOrStub EOF ;
- public final EObject entryRuleActiveFeatureDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleActiveFeatureDefinitionOrStub = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:4302:2: (iv_ruleActiveFeatureDefinitionOrStub= ruleActiveFeatureDefinitionOrStub EOF )
- // InternalAppliedStereotypeProperty.g:4303: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"
- // InternalAppliedStereotypeProperty.g:4310: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 {
- // InternalAppliedStereotypeProperty.g:4313:28: ( (this_ReceptionDefinition_0= ruleReceptionDefinition | this_SignalReceptionDefinitionOrStub_1= ruleSignalReceptionDefinitionOrStub ) )
- // InternalAppliedStereotypeProperty.g:4314:1: (this_ReceptionDefinition_0= ruleReceptionDefinition | this_SignalReceptionDefinitionOrStub_1= ruleSignalReceptionDefinitionOrStub )
- {
- // InternalAppliedStereotypeProperty.g:4314:1: (this_ReceptionDefinition_0= ruleReceptionDefinition | this_SignalReceptionDefinitionOrStub_1= ruleSignalReceptionDefinitionOrStub )
- int alt90=2;
- int LA90_0 = input.LA(1);
-
- if ( (LA90_0==59) ) {
- int LA90_1 = input.LA(2);
-
- if ( ((LA90_1>=RULE_ID && LA90_1<=RULE_UNRESTRICTED_NAME)) ) {
- alt90=1;
- }
- else if ( (LA90_1==44) ) {
- alt90=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 90, 1, input);
-
- throw nvae;
- }
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 90, 0, input);
-
- throw nvae;
- }
- switch (alt90) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4315: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 :
- // InternalAppliedStereotypeProperty.g:4328: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"
- // InternalAppliedStereotypeProperty.g:4347:1: entryRulePropertyDefinition returns [EObject current=null] : iv_rulePropertyDefinition= rulePropertyDefinition EOF ;
- public final EObject entryRulePropertyDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePropertyDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:4348:2: (iv_rulePropertyDefinition= rulePropertyDefinition EOF )
- // InternalAppliedStereotypeProperty.g:4349: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"
- // InternalAppliedStereotypeProperty.g:4356: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 {
- // InternalAppliedStereotypeProperty.g:4359:28: ( (this_PropertyDeclaration_0= rulePropertyDeclaration otherlv_1= ';' ) )
- // InternalAppliedStereotypeProperty.g:4360:1: (this_PropertyDeclaration_0= rulePropertyDeclaration otherlv_1= ';' )
- {
- // InternalAppliedStereotypeProperty.g:4360:1: (this_PropertyDeclaration_0= rulePropertyDeclaration otherlv_1= ';' )
- // InternalAppliedStereotypeProperty.g:4361: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,23,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"
- // InternalAppliedStereotypeProperty.g:4384:1: entryRuleAttributeDefinition returns [EObject current=null] : iv_ruleAttributeDefinition= ruleAttributeDefinition EOF ;
- public final EObject entryRuleAttributeDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAttributeDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:4385:2: (iv_ruleAttributeDefinition= ruleAttributeDefinition EOF )
- // InternalAppliedStereotypeProperty.g:4386: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"
- // InternalAppliedStereotypeProperty.g:4393: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 {
- // InternalAppliedStereotypeProperty.g:4396:28: ( (this_PropertyDeclaration_0= rulePropertyDeclaration ( (lv_initializer_1_0= ruleAttributeInitializer ) )? otherlv_2= ';' ) )
- // InternalAppliedStereotypeProperty.g:4397:1: (this_PropertyDeclaration_0= rulePropertyDeclaration ( (lv_initializer_1_0= ruleAttributeInitializer ) )? otherlv_2= ';' )
- {
- // InternalAppliedStereotypeProperty.g:4397:1: (this_PropertyDeclaration_0= rulePropertyDeclaration ( (lv_initializer_1_0= ruleAttributeInitializer ) )? otherlv_2= ';' )
- // InternalAppliedStereotypeProperty.g:4398: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_50);
- this_PropertyDeclaration_0=rulePropertyDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_PropertyDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAppliedStereotypeProperty.g:4409:1: ( (lv_initializer_1_0= ruleAttributeInitializer ) )?
- int alt91=2;
- int LA91_0 = input.LA(1);
-
- if ( (LA91_0==15) ) {
- alt91=1;
- }
- switch (alt91) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4410:1: (lv_initializer_1_0= ruleAttributeInitializer )
- {
- // InternalAppliedStereotypeProperty.g:4410:1: (lv_initializer_1_0= ruleAttributeInitializer )
- // InternalAppliedStereotypeProperty.g:4411: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,23,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"
- // InternalAppliedStereotypeProperty.g:4439:1: entryRuleAttributeInitializer returns [EObject current=null] : iv_ruleAttributeInitializer= ruleAttributeInitializer EOF ;
- public final EObject entryRuleAttributeInitializer() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAttributeInitializer = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:4440:2: (iv_ruleAttributeInitializer= ruleAttributeInitializer EOF )
- // InternalAppliedStereotypeProperty.g:4441: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"
- // InternalAppliedStereotypeProperty.g:4448: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 {
- // InternalAppliedStereotypeProperty.g:4451:28: ( (otherlv_0= '=' this_InitializationExpression_1= ruleInitializationExpression ) )
- // InternalAppliedStereotypeProperty.g:4452:1: (otherlv_0= '=' this_InitializationExpression_1= ruleInitializationExpression )
- {
- // InternalAppliedStereotypeProperty.g:4452:1: (otherlv_0= '=' this_InitializationExpression_1= ruleInitializationExpression )
- // InternalAppliedStereotypeProperty.g:4452:3: otherlv_0= '=' this_InitializationExpression_1= ruleInitializationExpression
- {
- otherlv_0=(Token)match(input,15,FOLLOW_3); 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"
- // InternalAppliedStereotypeProperty.g:4476:1: entryRulePropertyDeclaration returns [EObject current=null] : iv_rulePropertyDeclaration= rulePropertyDeclaration EOF ;
- public final EObject entryRulePropertyDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePropertyDeclaration = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:4477:2: (iv_rulePropertyDeclaration= rulePropertyDeclaration EOF )
- // InternalAppliedStereotypeProperty.g:4478: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"
- // InternalAppliedStereotypeProperty.g:4485: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 {
- // InternalAppliedStereotypeProperty.g:4488:28: ( ( ( (lv_name_0_0= ruleName ) ) otherlv_1= ':' ( (lv_isComposite_2_0= 'compose' ) )? ( (lv_typePart_3_0= ruleTypePart ) ) ) )
- // InternalAppliedStereotypeProperty.g:4489:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= ':' ( (lv_isComposite_2_0= 'compose' ) )? ( (lv_typePart_3_0= ruleTypePart ) ) )
- {
- // InternalAppliedStereotypeProperty.g:4489:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= ':' ( (lv_isComposite_2_0= 'compose' ) )? ( (lv_typePart_3_0= ruleTypePart ) ) )
- // InternalAppliedStereotypeProperty.g:4489:2: ( (lv_name_0_0= ruleName ) ) otherlv_1= ':' ( (lv_isComposite_2_0= 'compose' ) )? ( (lv_typePart_3_0= ruleTypePart ) )
- {
- // InternalAppliedStereotypeProperty.g:4489:2: ( (lv_name_0_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:4490:1: (lv_name_0_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:4490:1: (lv_name_0_0= ruleName )
- // InternalAppliedStereotypeProperty.g:4491:3: lv_name_0_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPropertyDeclarationAccess().getNameNameParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_49);
- 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,46,FOLLOW_51); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getPropertyDeclarationAccess().getColonKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:4511:1: ( (lv_isComposite_2_0= 'compose' ) )?
- int alt92=2;
- int LA92_0 = input.LA(1);
-
- if ( (LA92_0==50) ) {
- alt92=1;
- }
- switch (alt92) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4512:1: (lv_isComposite_2_0= 'compose' )
- {
- // InternalAppliedStereotypeProperty.g:4512:1: (lv_isComposite_2_0= 'compose' )
- // InternalAppliedStereotypeProperty.g:4513:3: lv_isComposite_2_0= 'compose'
- {
- lv_isComposite_2_0=(Token)match(input,50,FOLLOW_4); 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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:4526:3: ( (lv_typePart_3_0= ruleTypePart ) )
- // InternalAppliedStereotypeProperty.g:4527:1: (lv_typePart_3_0= ruleTypePart )
- {
- // InternalAppliedStereotypeProperty.g:4527:1: (lv_typePart_3_0= ruleTypePart )
- // InternalAppliedStereotypeProperty.g:4528: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"
- // InternalAppliedStereotypeProperty.g:4552:1: entryRuleTypePart returns [EObject current=null] : iv_ruleTypePart= ruleTypePart EOF ;
- public final EObject entryRuleTypePart() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleTypePart = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:4553:2: (iv_ruleTypePart= ruleTypePart EOF )
- // InternalAppliedStereotypeProperty.g:4554: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"
- // InternalAppliedStereotypeProperty.g:4561: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 {
- // InternalAppliedStereotypeProperty.g:4564: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' ) ) )? )? ) )
- // InternalAppliedStereotypeProperty.g:4565: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' ) ) )? )? )
- {
- // InternalAppliedStereotypeProperty.g:4565: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' ) ) )? )? )
- // InternalAppliedStereotypeProperty.g:4565: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' ) ) )? )?
- {
- // InternalAppliedStereotypeProperty.g:4565:2: ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) )
- int alt93=2;
- int LA93_0 = input.LA(1);
-
- if ( (LA93_0==51) ) {
- alt93=1;
- }
- else if ( ((LA93_0>=RULE_ID && LA93_0<=RULE_UNRESTRICTED_NAME)) ) {
- alt93=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 93, 0, input);
-
- throw nvae;
- }
- switch (alt93) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4565:3: ( (lv_isAny_0_0= 'any' ) )
- {
- // InternalAppliedStereotypeProperty.g:4565:3: ( (lv_isAny_0_0= 'any' ) )
- // InternalAppliedStereotypeProperty.g:4566:1: (lv_isAny_0_0= 'any' )
- {
- // InternalAppliedStereotypeProperty.g:4566:1: (lv_isAny_0_0= 'any' )
- // InternalAppliedStereotypeProperty.g:4567: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 :
- // InternalAppliedStereotypeProperty.g:4581:6: ( (lv_typeName_1_0= ruleQualifiedName ) )
- {
- // InternalAppliedStereotypeProperty.g:4581:6: ( (lv_typeName_1_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:4582:1: (lv_typeName_1_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:4582:1: (lv_typeName_1_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:4583: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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:4599: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 alt100=2;
- alt100 = dfa100.predict(input);
- switch (alt100) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4599: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' ) ) )?
- {
- // InternalAppliedStereotypeProperty.g:4599:4: (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )?
- int alt96=2;
- int LA96_0 = input.LA(1);
-
- if ( (LA96_0==52) ) {
- alt96=1;
- }
- switch (alt96) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4599: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());
-
- }
- // InternalAppliedStereotypeProperty.g:4603:1: ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) )
- int alt95=2;
- int LA95_0 = input.LA(1);
-
- if ( (LA95_0==53) ) {
- alt95=1;
- }
- else if ( (LA95_0==RULE_NATURAL_VALUE||LA95_0==21) ) {
- alt95=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 95, 0, input);
-
- throw nvae;
- }
- switch (alt95) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4603:2: ( (lv_isMultiplicity_3_0= ']' ) )
- {
- // InternalAppliedStereotypeProperty.g:4603:2: ( (lv_isMultiplicity_3_0= ']' ) )
- // InternalAppliedStereotypeProperty.g:4604:1: (lv_isMultiplicity_3_0= ']' )
- {
- // InternalAppliedStereotypeProperty.g:4604:1: (lv_isMultiplicity_3_0= ']' )
- // InternalAppliedStereotypeProperty.g:4605: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 :
- // InternalAppliedStereotypeProperty.g:4619:6: ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' )
- {
- // InternalAppliedStereotypeProperty.g:4619:6: ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' )
- // InternalAppliedStereotypeProperty.g:4619:7: ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']'
- {
- // InternalAppliedStereotypeProperty.g:4619:7: ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )?
- int alt94=2;
- int LA94_0 = input.LA(1);
-
- if ( (LA94_0==RULE_NATURAL_VALUE) ) {
- int LA94_1 = input.LA(2);
-
- if ( (LA94_1==54) ) {
- alt94=1;
- }
- }
- switch (alt94) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4619:8: ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..'
- {
- // InternalAppliedStereotypeProperty.g:4619:8: ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) )
- // InternalAppliedStereotypeProperty.g:4620:1: (lv_lowerBound_4_0= RULE_NATURAL_VALUE )
- {
- // InternalAppliedStereotypeProperty.g:4620:1: (lv_lowerBound_4_0= RULE_NATURAL_VALUE )
- // InternalAppliedStereotypeProperty.g:4621: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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:4641:3: ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) )
- // InternalAppliedStereotypeProperty.g:4642:1: (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral )
- {
- // InternalAppliedStereotypeProperty.g:4642:1: (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral )
- // InternalAppliedStereotypeProperty.g:4643: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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:4663: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 alt99=4;
- switch ( input.LA(1) ) {
- case 55:
- {
- alt99=1;
- }
- break;
- case 56:
- {
- alt99=2;
- }
- break;
- case 57:
- {
- alt99=3;
- }
- break;
- }
-
- switch (alt99) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4663:6: ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? )
- {
- // InternalAppliedStereotypeProperty.g:4663:6: ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? )
- // InternalAppliedStereotypeProperty.g:4663:7: ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )?
- {
- // InternalAppliedStereotypeProperty.g:4663:7: ( (lv_isOrdered_8_0= 'ordered' ) )
- // InternalAppliedStereotypeProperty.g:4664:1: (lv_isOrdered_8_0= 'ordered' )
- {
- // InternalAppliedStereotypeProperty.g:4664:1: (lv_isOrdered_8_0= 'ordered' )
- // InternalAppliedStereotypeProperty.g:4665: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");
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:4678:2: ( (lv_isNonunique_9_0= 'nonunique' ) )?
- int alt97=2;
- int LA97_0 = input.LA(1);
-
- if ( (LA97_0==56) ) {
- alt97=1;
- }
- switch (alt97) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4679:1: (lv_isNonunique_9_0= 'nonunique' )
- {
- // InternalAppliedStereotypeProperty.g:4679:1: (lv_isNonunique_9_0= 'nonunique' )
- // InternalAppliedStereotypeProperty.g:4680: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 :
- // InternalAppliedStereotypeProperty.g:4694:6: ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? )
- {
- // InternalAppliedStereotypeProperty.g:4694:6: ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? )
- // InternalAppliedStereotypeProperty.g:4694:7: ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )?
- {
- // InternalAppliedStereotypeProperty.g:4694:7: ( (lv_isNonunique_10_0= 'nonunique' ) )
- // InternalAppliedStereotypeProperty.g:4695:1: (lv_isNonunique_10_0= 'nonunique' )
- {
- // InternalAppliedStereotypeProperty.g:4695:1: (lv_isNonunique_10_0= 'nonunique' )
- // InternalAppliedStereotypeProperty.g:4696: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 ) {
+ }
+ pushFollow(FOLLOW_2);
+ this_IndexedNamedTupleExpressionList_1 = ruleIndexedNamedTupleExpressionList();
- if (current==null) {
- current = createModelElement(grammarAccess.getTypePartRule());
- }
- setWithLastConsumed(current, "isNonunique", true, "nonunique");
-
- }
+ state._fsp--;
+ if (state.failed)
+ return;
- }
+ }
+ }
+ // $ANTLR end synpred171_InternalAppliedStereotypeProperty
+ // $ANTLR start synpred178_InternalAppliedStereotypeProperty
+ public final void synpred178_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ EObject this_SequenceRange_0 = null;
- }
- // InternalAppliedStereotypeProperty.g:4709:2: ( (lv_isOrdered_11_0= 'ordered' ) )?
- int alt98=2;
- int LA98_0 = input.LA(1);
+ // InternalAppliedStereotypeProperty.g:7731:2: (this_SequenceRange_0= ruleSequenceRange )
+ // InternalAppliedStereotypeProperty.g:7731:2: this_SequenceRange_0= ruleSequenceRange
+ {
+ if (state.backtracking == 0) {
- if ( (LA98_0==55) ) {
- alt98=1;
- }
- switch (alt98) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4710:1: (lv_isOrdered_11_0= 'ordered' )
- {
- // InternalAppliedStereotypeProperty.g:4710:1: (lv_isOrdered_11_0= 'ordered' )
- // InternalAppliedStereotypeProperty.g:4711: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 ) {
+ }
+ pushFollow(FOLLOW_2);
+ this_SequenceRange_0 = ruleSequenceRange();
- if (current==null) {
- current = createModelElement(grammarAccess.getTypePartRule());
- }
- setWithLastConsumed(current, "isOrdered", true, "ordered");
-
- }
+ state._fsp--;
+ if (state.failed)
+ return;
- }
+ }
+ }
+ // $ANTLR end synpred178_InternalAppliedStereotypeProperty
+ // $ANTLR start synpred188_InternalAppliedStereotypeProperty
+ public final void synpred188_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ EObject this_PostfixExpression_0 = null;
- }
- break;
- }
+ // InternalAppliedStereotypeProperty.g:8394:2: (this_PostfixExpression_0= rulePostfixExpression )
+ // InternalAppliedStereotypeProperty.g:8394:2: this_PostfixExpression_0= rulePostfixExpression
+ {
+ if (state.backtracking == 0) {
+ /* */
- }
+ }
+ pushFollow(FOLLOW_2);
+ this_PostfixExpression_0 = rulePostfixExpression();
+ state._fsp--;
+ if (state.failed)
+ return;
- }
- break;
- case 3 :
- // InternalAppliedStereotypeProperty.g:4725:6: ( (lv_isSequence_12_0= 'sequence' ) )
- {
- // InternalAppliedStereotypeProperty.g:4725:6: ( (lv_isSequence_12_0= 'sequence' ) )
- // InternalAppliedStereotypeProperty.g:4726:1: (lv_isSequence_12_0= 'sequence' )
- {
- // InternalAppliedStereotypeProperty.g:4726:1: (lv_isSequence_12_0= 'sequence' )
- // InternalAppliedStereotypeProperty.g:4727: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 ) {
+ }
+ }
+ // $ANTLR end synpred188_InternalAppliedStereotypeProperty
- newLeafNode(lv_isSequence_12_0, grammarAccess.getTypePartAccess().getIsSequenceSequenceKeyword_1_1_2_0());
-
- }
- if ( state.backtracking==0 ) {
+ // $ANTLR start synpred189_InternalAppliedStereotypeProperty
+ public final void synpred189_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ EObject this_CastExpression_1 = null;
- 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"
- // InternalAppliedStereotypeProperty.g:4748:1: entryRuleUnlimitedNaturalLiteral returns [String current=null] : iv_ruleUnlimitedNaturalLiteral= ruleUnlimitedNaturalLiteral EOF ;
- public final String entryRuleUnlimitedNaturalLiteral() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleUnlimitedNaturalLiteral = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:4749:2: (iv_ruleUnlimitedNaturalLiteral= ruleUnlimitedNaturalLiteral EOF )
- // InternalAppliedStereotypeProperty.g:4750: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"
- // InternalAppliedStereotypeProperty.g:4757: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 {
- // InternalAppliedStereotypeProperty.g:4760:28: ( (this_NATURAL_VALUE_0= RULE_NATURAL_VALUE | kw= '*' ) )
- // InternalAppliedStereotypeProperty.g:4761:1: (this_NATURAL_VALUE_0= RULE_NATURAL_VALUE | kw= '*' )
- {
- // InternalAppliedStereotypeProperty.g:4761:1: (this_NATURAL_VALUE_0= RULE_NATURAL_VALUE | kw= '*' )
- int alt101=2;
- int LA101_0 = input.LA(1);
-
- if ( (LA101_0==RULE_NATURAL_VALUE) ) {
- alt101=1;
- }
- else if ( (LA101_0==21) ) {
- alt101=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 101, 0, input);
-
- throw nvae;
- }
- switch (alt101) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4761: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 :
- // InternalAppliedStereotypeProperty.g:4770:2: kw= '*'
- {
- kw=(Token)match(input,21,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"
- // InternalAppliedStereotypeProperty.g:4783:1: entryRuleOperationDeclaration returns [EObject current=null] : iv_ruleOperationDeclaration= ruleOperationDeclaration EOF ;
- public final EObject entryRuleOperationDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleOperationDeclaration = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:4784:2: (iv_ruleOperationDeclaration= ruleOperationDeclaration EOF )
- // InternalAppliedStereotypeProperty.g:4785: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"
- // InternalAppliedStereotypeProperty.g:4792: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 {
- // InternalAppliedStereotypeProperty.g:4795: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 ) )? ) )
- // InternalAppliedStereotypeProperty.g:4796: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 ) )? )
- {
- // InternalAppliedStereotypeProperty.g:4796: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 ) )? )
- // InternalAppliedStereotypeProperty.g:4796: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 ) )?
- {
- // InternalAppliedStereotypeProperty.g:4796:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
- int alt102=2;
- int LA102_0 = input.LA(1);
-
- if ( (LA102_0==35) ) {
- alt102=1;
- }
- switch (alt102) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4797:1: (lv_isAbstract_0_0= 'abstract' )
- {
- // InternalAppliedStereotypeProperty.g:4797:1: (lv_isAbstract_0_0= 'abstract' )
- // InternalAppliedStereotypeProperty.g:4798:3: lv_isAbstract_0_0= 'abstract'
- {
- lv_isAbstract_0_0=(Token)match(input,35,FOLLOW_14); 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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:4811:3: ( (lv_name_1_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:4812:1: (lv_name_1_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:4812:1: (lv_name_1_0= ruleName )
- // InternalAppliedStereotypeProperty.g:4813:3: lv_name_1_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getOperationDeclarationAccess().getNameNameParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_44);
- 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,17,FOLLOW_45); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getOperationDeclarationAccess().getLeftParenthesisKeyword_2());
-
- }
- // InternalAppliedStereotypeProperty.g:4833:1: ( ( (lv_ownedMember_3_0= ruleFormalParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )* )?
- int alt104=2;
- int LA104_0 = input.LA(1);
-
- if ( (LA104_0==RULE_DOCUMENTATION_COMMENT||LA104_0==16||(LA104_0>=47 && LA104_0<=49)) ) {
- alt104=1;
- }
- switch (alt104) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4833:2: ( (lv_ownedMember_3_0= ruleFormalParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )*
- {
- // InternalAppliedStereotypeProperty.g:4833:2: ( (lv_ownedMember_3_0= ruleFormalParameter ) )
- // InternalAppliedStereotypeProperty.g:4834:1: (lv_ownedMember_3_0= ruleFormalParameter )
- {
- // InternalAppliedStereotypeProperty.g:4834:1: (lv_ownedMember_3_0= ruleFormalParameter )
- // InternalAppliedStereotypeProperty.g:4835:3: lv_ownedMember_3_0= ruleFormalParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getOperationDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_3_0_0());
-
- }
- pushFollow(FOLLOW_46);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:4851:2: (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )*
- loop103:
- do {
- int alt103=2;
- int LA103_0 = input.LA(1);
-
- if ( (LA103_0==19) ) {
- alt103=1;
- }
-
-
- switch (alt103) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4851:4: otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) )
- {
- otherlv_4=(Token)match(input,19,FOLLOW_47); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getOperationDeclarationAccess().getCommaKeyword_3_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:4855:1: ( (lv_ownedMember_5_0= ruleFormalParameter ) )
- // InternalAppliedStereotypeProperty.g:4856:1: (lv_ownedMember_5_0= ruleFormalParameter )
- {
- // InternalAppliedStereotypeProperty.g:4856:1: (lv_ownedMember_5_0= ruleFormalParameter )
- // InternalAppliedStereotypeProperty.g:4857:3: lv_ownedMember_5_0= ruleFormalParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getOperationDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_3_1_1_0());
-
- }
- pushFollow(FOLLOW_46);
- 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 loop103;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
- otherlv_6=(Token)match(input,18,FOLLOW_59); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_6, grammarAccess.getOperationDeclarationAccess().getRightParenthesisKeyword_4());
-
- }
- // InternalAppliedStereotypeProperty.g:4877:1: ( (lv_ownedMember_7_0= ruleReturnParameter ) )?
- int alt105=2;
- int LA105_0 = input.LA(1);
-
- if ( (LA105_0==46) ) {
- alt105=1;
- }
- switch (alt105) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4878:1: (lv_ownedMember_7_0= ruleReturnParameter )
- {
- // InternalAppliedStereotypeProperty.g:4878:1: (lv_ownedMember_7_0= ruleReturnParameter )
- // InternalAppliedStereotypeProperty.g:4879: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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:4895:3: ( (lv_redefinition_8_0= ruleRedefinitionClause ) )?
- int alt106=2;
- int LA106_0 = input.LA(1);
-
- if ( (LA106_0==58) ) {
- alt106=1;
- }
- switch (alt106) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4896:1: (lv_redefinition_8_0= ruleRedefinitionClause )
- {
- // InternalAppliedStereotypeProperty.g:4896:1: (lv_redefinition_8_0= ruleRedefinitionClause )
- // InternalAppliedStereotypeProperty.g:4897: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"
- // InternalAppliedStereotypeProperty.g:4921:1: entryRuleOperationDefinitionOrStub returns [EObject current=null] : iv_ruleOperationDefinitionOrStub= ruleOperationDefinitionOrStub EOF ;
- public final EObject entryRuleOperationDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleOperationDefinitionOrStub = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:4922:2: (iv_ruleOperationDefinitionOrStub= ruleOperationDefinitionOrStub EOF )
- // InternalAppliedStereotypeProperty.g:4923: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"
- // InternalAppliedStereotypeProperty.g:4930: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 {
- // InternalAppliedStereotypeProperty.g:4933:28: ( (this_OperationDeclaration_0= ruleOperationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) ) )
- // InternalAppliedStereotypeProperty.g:4934:1: (this_OperationDeclaration_0= ruleOperationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) )
- {
- // InternalAppliedStereotypeProperty.g:4934:1: (this_OperationDeclaration_0= ruleOperationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) )
- // InternalAppliedStereotypeProperty.g:4935: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_21);
- this_OperationDeclaration_0=ruleOperationDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_OperationDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAppliedStereotypeProperty.g:4946:1: ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) )
- int alt107=2;
- int LA107_0 = input.LA(1);
-
- if ( (LA107_0==23) ) {
- alt107=1;
- }
- else if ( (LA107_0==32) ) {
- alt107=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 107, 0, input);
-
- throw nvae;
- }
- switch (alt107) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4946:2: ( (lv_isStub_1_0= ';' ) )
- {
- // InternalAppliedStereotypeProperty.g:4946:2: ( (lv_isStub_1_0= ';' ) )
- // InternalAppliedStereotypeProperty.g:4947:1: (lv_isStub_1_0= ';' )
- {
- // InternalAppliedStereotypeProperty.g:4947:1: (lv_isStub_1_0= ';' )
- // InternalAppliedStereotypeProperty.g:4948:3: lv_isStub_1_0= ';'
- {
- lv_isStub_1_0=(Token)match(input,23,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 :
- // InternalAppliedStereotypeProperty.g:4962:6: ( (lv_body_2_0= ruleBlock ) )
- {
- // InternalAppliedStereotypeProperty.g:4962:6: ( (lv_body_2_0= ruleBlock ) )
- // InternalAppliedStereotypeProperty.g:4963:1: (lv_body_2_0= ruleBlock )
- {
- // InternalAppliedStereotypeProperty.g:4963:1: (lv_body_2_0= ruleBlock )
- // InternalAppliedStereotypeProperty.g:4964: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"
- // InternalAppliedStereotypeProperty.g:4988:1: entryRuleRedefinitionClause returns [EObject current=null] : iv_ruleRedefinitionClause= ruleRedefinitionClause EOF ;
- public final EObject entryRuleRedefinitionClause() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleRedefinitionClause = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:4989:2: (iv_ruleRedefinitionClause= ruleRedefinitionClause EOF )
- // InternalAppliedStereotypeProperty.g:4990: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"
- // InternalAppliedStereotypeProperty.g:4997: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 {
- // InternalAppliedStereotypeProperty.g:5000:28: ( (otherlv_0= 'redefines' this_QualifiedNameList_1= ruleQualifiedNameList ) )
- // InternalAppliedStereotypeProperty.g:5001:1: (otherlv_0= 'redefines' this_QualifiedNameList_1= ruleQualifiedNameList )
- {
- // InternalAppliedStereotypeProperty.g:5001:1: (otherlv_0= 'redefines' this_QualifiedNameList_1= ruleQualifiedNameList )
- // InternalAppliedStereotypeProperty.g:5001: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"
- // InternalAppliedStereotypeProperty.g:5025:1: entryRuleReceptionDefinition returns [EObject current=null] : iv_ruleReceptionDefinition= ruleReceptionDefinition EOF ;
- public final EObject entryRuleReceptionDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleReceptionDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:5026:2: (iv_ruleReceptionDefinition= ruleReceptionDefinition EOF )
- // InternalAppliedStereotypeProperty.g:5027: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"
- // InternalAppliedStereotypeProperty.g:5034: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 {
- // InternalAppliedStereotypeProperty.g:5037:28: ( (otherlv_0= 'receive' ( (lv_signalName_1_0= ruleQualifiedName ) ) otherlv_2= ';' ) )
- // InternalAppliedStereotypeProperty.g:5038:1: (otherlv_0= 'receive' ( (lv_signalName_1_0= ruleQualifiedName ) ) otherlv_2= ';' )
- {
- // InternalAppliedStereotypeProperty.g:5038:1: (otherlv_0= 'receive' ( (lv_signalName_1_0= ruleQualifiedName ) ) otherlv_2= ';' )
- // InternalAppliedStereotypeProperty.g:5038: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());
-
- }
- // InternalAppliedStereotypeProperty.g:5042:1: ( (lv_signalName_1_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:5043:1: (lv_signalName_1_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:5043:1: (lv_signalName_1_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:5044: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,23,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"
- // InternalAppliedStereotypeProperty.g:5072:1: entryRuleSignalReceptionDeclaration returns [EObject current=null] : iv_ruleSignalReceptionDeclaration= ruleSignalReceptionDeclaration EOF ;
- public final EObject entryRuleSignalReceptionDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSignalReceptionDeclaration = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:5073:2: (iv_ruleSignalReceptionDeclaration= ruleSignalReceptionDeclaration EOF )
- // InternalAppliedStereotypeProperty.g:5074: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"
- // InternalAppliedStereotypeProperty.g:5081: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 {
- // InternalAppliedStereotypeProperty.g:5084:28: ( (otherlv_0= 'receive' otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) ( (lv_specialization_3_0= ruleSpecializationClause ) )? ) )
- // InternalAppliedStereotypeProperty.g:5085:1: (otherlv_0= 'receive' otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) ( (lv_specialization_3_0= ruleSpecializationClause ) )? )
- {
- // InternalAppliedStereotypeProperty.g:5085:1: (otherlv_0= 'receive' otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) ( (lv_specialization_3_0= ruleSpecializationClause ) )? )
- // InternalAppliedStereotypeProperty.g:5085:3: otherlv_0= 'receive' otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) ( (lv_specialization_3_0= ruleSpecializationClause ) )?
- {
- otherlv_0=(Token)match(input,59,FOLLOW_42); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getSignalReceptionDeclarationAccess().getReceiveKeyword_0());
-
- }
- otherlv_1=(Token)match(input,44,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getSignalReceptionDeclarationAccess().getSignalKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:5093:1: ( (lv_name_2_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:5094:1: (lv_name_2_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:5094:1: (lv_name_2_0= ruleName )
- // InternalAppliedStereotypeProperty.g:5095:3: lv_name_2_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSignalReceptionDeclarationAccess().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.getSignalReceptionDeclarationRule());
- }
- set(
- current,
- "name",
- lv_name_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:5111:2: ( (lv_specialization_3_0= ruleSpecializationClause ) )?
- int alt108=2;
- int LA108_0 = input.LA(1);
-
- if ( (LA108_0==34) ) {
- alt108=1;
- }
- switch (alt108) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:5112:1: (lv_specialization_3_0= ruleSpecializationClause )
- {
- // InternalAppliedStereotypeProperty.g:5112:1: (lv_specialization_3_0= ruleSpecializationClause )
- // InternalAppliedStereotypeProperty.g:5113: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"
- // InternalAppliedStereotypeProperty.g:5137:1: entryRuleSignalReceptionDefinitionOrStub returns [EObject current=null] : iv_ruleSignalReceptionDefinitionOrStub= ruleSignalReceptionDefinitionOrStub EOF ;
- public final EObject entryRuleSignalReceptionDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSignalReceptionDefinitionOrStub = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:5138:2: (iv_ruleSignalReceptionDefinitionOrStub= ruleSignalReceptionDefinitionOrStub EOF )
- // InternalAppliedStereotypeProperty.g:5139: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"
- // InternalAppliedStereotypeProperty.g:5146: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 {
- // InternalAppliedStereotypeProperty.g:5149:28: ( (this_SignalReceptionDeclaration_0= ruleSignalReceptionDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) )
- // InternalAppliedStereotypeProperty.g:5150:1: (this_SignalReceptionDeclaration_0= ruleSignalReceptionDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
- {
- // InternalAppliedStereotypeProperty.g:5150:1: (this_SignalReceptionDeclaration_0= ruleSignalReceptionDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
- // InternalAppliedStereotypeProperty.g:5151: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_21);
- this_SignalReceptionDeclaration_0=ruleSignalReceptionDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_SignalReceptionDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAppliedStereotypeProperty.g:5162:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
- int alt110=2;
- int LA110_0 = input.LA(1);
-
- if ( (LA110_0==23) ) {
- alt110=1;
- }
- else if ( (LA110_0==32) ) {
- alt110=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 110, 0, input);
-
- throw nvae;
- }
- switch (alt110) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:5162:2: ( (lv_isStub_1_0= ';' ) )
- {
- // InternalAppliedStereotypeProperty.g:5162:2: ( (lv_isStub_1_0= ';' ) )
- // InternalAppliedStereotypeProperty.g:5163:1: (lv_isStub_1_0= ';' )
- {
- // InternalAppliedStereotypeProperty.g:5163:1: (lv_isStub_1_0= ';' )
- // InternalAppliedStereotypeProperty.g:5164:3: lv_isStub_1_0= ';'
- {
- lv_isStub_1_0=(Token)match(input,23,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 :
- // InternalAppliedStereotypeProperty.g:5178:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
- {
- // InternalAppliedStereotypeProperty.g:5178:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
- // InternalAppliedStereotypeProperty.g:5178:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}'
- {
- otherlv_2=(Token)match(input,32,FOLLOW_37); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getSignalReceptionDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:5182:1: ( (lv_ownedMember_3_0= ruleStructuredMember ) )*
- loop109:
- do {
- int alt109=2;
- int LA109_0 = input.LA(1);
-
- if ( ((LA109_0>=RULE_DOCUMENTATION_COMMENT && LA109_0<=RULE_UNRESTRICTED_NAME)||LA109_0==16||LA109_0==28) ) {
- alt109=1;
- }
-
-
- switch (alt109) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:5183:1: (lv_ownedMember_3_0= ruleStructuredMember )
- {
- // InternalAppliedStereotypeProperty.g:5183:1: (lv_ownedMember_3_0= ruleStructuredMember )
- // InternalAppliedStereotypeProperty.g:5184:3: lv_ownedMember_3_0= ruleStructuredMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSignalReceptionDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_37);
- 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 loop109;
- }
- } while (true);
-
- otherlv_4=(Token)match(input,33,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"
- // InternalAppliedStereotypeProperty.g:5212:1: entryRuleName returns [String current=null] : iv_ruleName= ruleName EOF ;
- public final String entryRuleName() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleName = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:5213:2: (iv_ruleName= ruleName EOF )
- // InternalAppliedStereotypeProperty.g:5214: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"
- // InternalAppliedStereotypeProperty.g:5221: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 {
- // InternalAppliedStereotypeProperty.g:5224:28: ( (this_ID_0= RULE_ID | this_UNRESTRICTED_NAME_1= RULE_UNRESTRICTED_NAME ) )
- // InternalAppliedStereotypeProperty.g:5225:1: (this_ID_0= RULE_ID | this_UNRESTRICTED_NAME_1= RULE_UNRESTRICTED_NAME )
- {
- // InternalAppliedStereotypeProperty.g:5225:1: (this_ID_0= RULE_ID | this_UNRESTRICTED_NAME_1= RULE_UNRESTRICTED_NAME )
- int alt111=2;
- int LA111_0 = input.LA(1);
-
- if ( (LA111_0==RULE_ID) ) {
- alt111=1;
- }
- else if ( (LA111_0==RULE_UNRESTRICTED_NAME) ) {
- 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 :
- // InternalAppliedStereotypeProperty.g:5225: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 :
- // InternalAppliedStereotypeProperty.g:5233: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"
- // InternalAppliedStereotypeProperty.g:5248:1: entryRuleQualifiedName returns [EObject current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ;
- public final EObject entryRuleQualifiedName() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleQualifiedName = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:5249:2: (iv_ruleQualifiedName= ruleQualifiedName EOF )
- // InternalAppliedStereotypeProperty.g:5250: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"
- // InternalAppliedStereotypeProperty.g:5257: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 {
- // InternalAppliedStereotypeProperty.g:5260:28: ( (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )? ) )
- // InternalAppliedStereotypeProperty.g:5261:1: (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )? )
- {
- // InternalAppliedStereotypeProperty.g:5261:1: (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )? )
- // InternalAppliedStereotypeProperty.g:5262: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();
-
- }
- // InternalAppliedStereotypeProperty.g:5273:1: ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )?
- int alt114=3;
- int LA114_0 = input.LA(1);
-
- if ( (LA114_0==26) ) {
- alt114=1;
- }
- else if ( (LA114_0==27) ) {
- int LA114_2 = input.LA(2);
-
- if ( (LA114_2==RULE_ID) ) {
- int LA114_4 = input.LA(3);
-
- if ( (synpred130_InternalAppliedStereotypeProperty()) ) {
- alt114=2;
- }
- }
- else if ( (LA114_2==RULE_UNRESTRICTED_NAME) ) {
- int LA114_5 = input.LA(3);
-
- if ( (synpred130_InternalAppliedStereotypeProperty()) ) {
- alt114=2;
- }
- }
- }
- switch (alt114) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:5273:2: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+
- {
- // InternalAppliedStereotypeProperty.g:5273:2: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+
- int cnt112=0;
- loop112:
- do {
- int alt112=2;
- int LA112_0 = input.LA(1);
-
- if ( (LA112_0==26) ) {
- alt112=1;
- }
-
-
- switch (alt112) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:5273:4: otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) )
- {
- otherlv_1=(Token)match(input,26,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1_0_0());
-
- }
- // InternalAppliedStereotypeProperty.g:5277:1: ( (lv_nameBinding_2_0= ruleNameBinding ) )
- // InternalAppliedStereotypeProperty.g:5278:1: (lv_nameBinding_2_0= ruleNameBinding )
- {
- // InternalAppliedStereotypeProperty.g:5278:1: (lv_nameBinding_2_0= ruleNameBinding )
- // InternalAppliedStereotypeProperty.g:5279: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 ( cnt112 >= 1 ) break loop112;
- if (state.backtracking>0) {state.failed=true; return current;}
- EarlyExitException eee =
- new EarlyExitException(112, input);
- throw eee;
- }
- cnt112++;
- } while (true);
-
-
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:5296:6: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+
- {
- // InternalAppliedStereotypeProperty.g:5296:6: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+
- int cnt113=0;
- loop113:
- do {
- int alt113=2;
- int LA113_0 = input.LA(1);
-
- if ( (LA113_0==27) ) {
- int LA113_2 = input.LA(2);
-
- if ( (LA113_2==RULE_ID) ) {
- int LA113_3 = input.LA(3);
-
- if ( (synpred129_InternalAppliedStereotypeProperty()) ) {
- alt113=1;
- }
-
-
- }
- else if ( (LA113_2==RULE_UNRESTRICTED_NAME) ) {
- int LA113_4 = input.LA(3);
-
- if ( (synpred129_InternalAppliedStereotypeProperty()) ) {
- alt113=1;
- }
-
-
- }
-
-
- }
-
-
- switch (alt113) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:5296:8: otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) )
- {
- otherlv_3=(Token)match(input,27,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:5300:1: ( (lv_nameBinding_4_0= ruleNameBinding ) )
- // InternalAppliedStereotypeProperty.g:5301:1: (lv_nameBinding_4_0= ruleNameBinding )
- {
- // InternalAppliedStereotypeProperty.g:5301:1: (lv_nameBinding_4_0= ruleNameBinding )
- // InternalAppliedStereotypeProperty.g:5302: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();
-
- }
- }
+ // InternalAppliedStereotypeProperty.g:8407:2: (this_CastExpression_1= ruleCastExpression )
+ // InternalAppliedStereotypeProperty.g:8407:2: this_CastExpression_1= ruleCastExpression
+ {
+ if (state.backtracking == 0) {
+ /* */
- }
+ }
+ pushFollow(FOLLOW_2);
+ this_CastExpression_1 = ruleCastExpression();
+ state._fsp--;
+ if (state.failed)
+ return;
- }
- break;
-
- default :
- if ( cnt113 >= 1 ) break loop113;
- if (state.backtracking>0) {state.failed=true; return current;}
- EarlyExitException eee =
- new EarlyExitException(113, input);
- throw eee;
- }
- cnt113++;
- } while (true);
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleQualifiedName"
-
-
- // $ANTLR start "entryRulePotentiallyAmbiguousQualifiedName"
- // InternalAppliedStereotypeProperty.g:5326:1: entryRulePotentiallyAmbiguousQualifiedName returns [EObject current=null] : iv_rulePotentiallyAmbiguousQualifiedName= rulePotentiallyAmbiguousQualifiedName EOF ;
- public final EObject entryRulePotentiallyAmbiguousQualifiedName() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePotentiallyAmbiguousQualifiedName = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:5327:2: (iv_rulePotentiallyAmbiguousQualifiedName= rulePotentiallyAmbiguousQualifiedName EOF )
- // InternalAppliedStereotypeProperty.g:5328: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"
- // InternalAppliedStereotypeProperty.g:5335: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 {
- // InternalAppliedStereotypeProperty.g:5338: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 ) ) )* ) )? ) )
- // InternalAppliedStereotypeProperty.g:5339: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 ) ) )* ) )? )
- {
- // InternalAppliedStereotypeProperty.g:5339: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 ) ) )* ) )? )
- // InternalAppliedStereotypeProperty.g:5340: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();
-
- }
- // InternalAppliedStereotypeProperty.g:5351: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 alt117=3;
- int LA117_0 = input.LA(1);
-
- if ( (LA117_0==26) ) {
- alt117=1;
- }
- else if ( (LA117_0==27) ) {
- int LA117_2 = input.LA(2);
-
- if ( (LA117_2==RULE_ID) ) {
- int LA117_4 = input.LA(3);
-
- if ( (synpred134_InternalAppliedStereotypeProperty()) ) {
- alt117=2;
- }
- }
- else if ( (LA117_2==RULE_UNRESTRICTED_NAME) ) {
- int LA117_5 = input.LA(3);
-
- if ( (synpred134_InternalAppliedStereotypeProperty()) ) {
- alt117=2;
- }
- }
- }
- switch (alt117) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:5351:2: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+
- {
- // InternalAppliedStereotypeProperty.g:5351:2: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+
- int cnt115=0;
- loop115:
- do {
- int alt115=2;
- int LA115_0 = input.LA(1);
-
- if ( (LA115_0==26) ) {
- alt115=1;
- }
-
-
- switch (alt115) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:5351:4: otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) )
- {
- otherlv_1=(Token)match(input,26,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getColonColonKeyword_1_0_0());
-
- }
- // InternalAppliedStereotypeProperty.g:5355:1: ( (lv_nameBinding_2_0= ruleNameBinding ) )
- // InternalAppliedStereotypeProperty.g:5356:1: (lv_nameBinding_2_0= ruleNameBinding )
- {
- // InternalAppliedStereotypeProperty.g:5356:1: (lv_nameBinding_2_0= ruleNameBinding )
- // InternalAppliedStereotypeProperty.g:5357: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 ( cnt115 >= 1 ) break loop115;
- if (state.backtracking>0) {state.failed=true; return current;}
- EarlyExitException eee =
- new EarlyExitException(115, input);
- throw eee;
- }
- cnt115++;
- } while (true);
-
-
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:5374:6: ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:5374:6: ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* )
- // InternalAppliedStereotypeProperty.g:5374:7: ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
- {
- // InternalAppliedStereotypeProperty.g:5374:7: ( (lv_isAmbiguous_3_0= '.' ) )
- // InternalAppliedStereotypeProperty.g:5375:1: (lv_isAmbiguous_3_0= '.' )
- {
- // InternalAppliedStereotypeProperty.g:5375:1: (lv_isAmbiguous_3_0= '.' )
- // InternalAppliedStereotypeProperty.g:5376:3: lv_isAmbiguous_3_0= '.'
- {
- lv_isAmbiguous_3_0=(Token)match(input,27,FOLLOW_14); 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, ".");
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:5389:2: ( (lv_nameBinding_4_0= ruleNameBinding ) )
- // InternalAppliedStereotypeProperty.g:5390:1: (lv_nameBinding_4_0= ruleNameBinding )
- {
- // InternalAppliedStereotypeProperty.g:5390:1: (lv_nameBinding_4_0= ruleNameBinding )
- // InternalAppliedStereotypeProperty.g:5391: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();
-
- }
-
- }
-
+ }
+ }
+ // $ANTLR end synpred189_InternalAppliedStereotypeProperty
- }
+ // $ANTLR start synpred221_InternalAppliedStereotypeProperty
+ public final void synpred221_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ EObject this_NameLeftHandSide_0 = null;
- // InternalAppliedStereotypeProperty.g:5407:2: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
- loop116:
- do {
- int alt116=2;
- int LA116_0 = input.LA(1);
- if ( (LA116_0==27) ) {
- int LA116_2 = input.LA(2);
+ // InternalAppliedStereotypeProperty.g:10237:2: (this_NameLeftHandSide_0= ruleNameLeftHandSide )
+ // InternalAppliedStereotypeProperty.g:10237:2: this_NameLeftHandSide_0= ruleNameLeftHandSide
+ {
+ if (state.backtracking == 0) {
- if ( (LA116_2==RULE_ID) ) {
- int LA116_3 = input.LA(3);
+ /* */
- if ( (synpred133_InternalAppliedStereotypeProperty()) ) {
- alt116=1;
- }
-
-
- }
- else if ( (LA116_2==RULE_UNRESTRICTED_NAME) ) {
- int LA116_4 = input.LA(3);
-
- if ( (synpred133_InternalAppliedStereotypeProperty()) ) {
- alt116=1;
- }
+ }
+ pushFollow(FOLLOW_2);
+ this_NameLeftHandSide_0 = ruleNameLeftHandSide();
+ state._fsp--;
+ if (state.failed)
+ return;
- }
+ }
+ }
+ // $ANTLR end synpred221_InternalAppliedStereotypeProperty
+ // $ANTLR start synpred237_InternalAppliedStereotypeProperty
+ public final void synpred237_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ EObject this_LocalNameDeclarationStatement_3 = null;
- }
-
-
- switch (alt116) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:5407:4: otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) )
- {
- otherlv_5=(Token)match(input,27,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getFullStopKeyword_1_1_2_0());
-
- }
- // InternalAppliedStereotypeProperty.g:5411:1: ( (lv_nameBinding_6_0= ruleNameBinding ) )
- // InternalAppliedStereotypeProperty.g:5412:1: (lv_nameBinding_6_0= ruleNameBinding )
- {
- // InternalAppliedStereotypeProperty.g:5412:1: (lv_nameBinding_6_0= ruleNameBinding )
- // InternalAppliedStereotypeProperty.g:5413: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 ) {
+ // InternalAppliedStereotypeProperty.g:10557:2: (this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement )
+ // InternalAppliedStereotypeProperty.g:10557:2: this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement
+ {
+ 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();
-
- }
+ /* */
- }
+ }
+ pushFollow(FOLLOW_2);
+ this_LocalNameDeclarationStatement_3 = ruleLocalNameDeclarationStatement();
+ state._fsp--;
+ if (state.failed)
+ return;
- }
+ }
+ }
+ // $ANTLR end synpred237_InternalAppliedStereotypeProperty
+ // $ANTLR start synpred238_InternalAppliedStereotypeProperty
+ public final void synpred238_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ EObject this_ExpressionStatement_4 = null;
- }
- break;
-
- default :
- break loop116;
- }
- } while (true);
-
-
- }
+ // InternalAppliedStereotypeProperty.g:10570:2: (this_ExpressionStatement_4= ruleExpressionStatement )
+ // InternalAppliedStereotypeProperty.g:10570:2: this_ExpressionStatement_4= ruleExpressionStatement
+ {
+ if (state.backtracking == 0) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ExpressionStatement_4 = ruleExpressionStatement();
+
+ state._fsp--;
+ if (state.failed)
+ return;
+
+ }
+ }
+ // $ANTLR end synpred238_InternalAppliedStereotypeProperty
+
+ // $ANTLR start synpred269_InternalAppliedStereotypeProperty
+ public final void synpred269_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
+ Token otherlv_1 = null;
+ EObject lv_acceptBlock_0_0 = null;
+
+
+ // InternalAppliedStereotypeProperty.g:12315:2: ( ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' ) )
+ // InternalAppliedStereotypeProperty.g:12315:2: ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' )
+ {
+ // InternalAppliedStereotypeProperty.g:12315:2: ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' )
+ // InternalAppliedStereotypeProperty.g:12315:3: ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';'
+ {
+ // InternalAppliedStereotypeProperty.g:12315:3: ( (lv_acceptBlock_0_0= ruleAcceptClause ) )
+ // InternalAppliedStereotypeProperty.g:12316:1: (lv_acceptBlock_0_0= ruleAcceptClause )
+ {
+ // InternalAppliedStereotypeProperty.g:12316:1: (lv_acceptBlock_0_0= ruleAcceptClause )
+ // InternalAppliedStereotypeProperty.g:12317: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, 23, FOLLOW_2);
+ if (state.failed)
+ return;
+
+ }
+
+
+ }
+ }
+ // $ANTLR end synpred269_InternalAppliedStereotypeProperty
+
+ // Delegated rules
+
+ public final boolean synpred153_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred153_InternalAppliedStereotypeProperty_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_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred156_InternalAppliedStereotypeProperty_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 synpred237_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred237_InternalAppliedStereotypeProperty_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 synpred130_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred130_InternalAppliedStereotypeProperty_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 synpred171_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred171_InternalAppliedStereotypeProperty_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 synpred129_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred129_InternalAppliedStereotypeProperty_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 synpred115_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred115_InternalAppliedStereotypeProperty_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 synpred151_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred151_InternalAppliedStereotypeProperty_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 synpred178_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred178_InternalAppliedStereotypeProperty_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_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred133_InternalAppliedStereotypeProperty_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 synpred238_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred238_InternalAppliedStereotypeProperty_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 synpred154_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred154_InternalAppliedStereotypeProperty_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 synpred135_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred135_InternalAppliedStereotypeProperty_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_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred155_InternalAppliedStereotypeProperty_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 synpred140_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred140_InternalAppliedStereotypeProperty_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 synpred189_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred189_InternalAppliedStereotypeProperty_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_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred139_InternalAppliedStereotypeProperty_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 synpred168_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred168_InternalAppliedStereotypeProperty_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 synpred221_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred221_InternalAppliedStereotypeProperty_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 synpred141_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred141_InternalAppliedStereotypeProperty_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 synpred188_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred188_InternalAppliedStereotypeProperty_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_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred134_InternalAppliedStereotypeProperty_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 synpred8_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred8_InternalAppliedStereotypeProperty_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 synpred269_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred269_InternalAppliedStereotypeProperty_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 synpred152_InternalAppliedStereotypeProperty() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred152_InternalAppliedStereotypeProperty_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 DFA100 dfa100 = new DFA100(this);
+ protected DFA118 dfa118 = new DFA118(this);
+ protected DFA122 dfa122 = new DFA122(this);
+ protected DFA125 dfa125 = new DFA125(this);
+ protected DFA126 dfa126 = new DFA126(this);
+ protected DFA138 dfa138 = new DFA138(this);
+ protected DFA145 dfa145 = new DFA145(this);
+ protected DFA154 dfa154 = new DFA154(this);
+ protected DFA180 dfa180 = new DFA180(this);
+ static final String dfa_1s = "\12\uffff";
+ static final String dfa_2s = "\1\4\11\uffff";
+ static final String dfa_3s = "\1\17\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\5\1\6\1\3\1\2\1\4\1\1\1\0\1\uffff}>";
+ static final String[] dfa_7s = {
+ "\1\10\2\uffff\1\3\1\2\3\uffff\1\6\10\uffff\1\5\23\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 DFA100 extends DFA {
+
+ public DFA100(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 100;
+ 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 "4599: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 LA100_8 = input.LA(1);
+
+
+ int index100_8 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred115_InternalAppliedStereotypeProperty())) {
+ s = 1;
+ }
+
+ else if ((true)) {
+ s = 9;
+ }
+
+
+ input.seek(index100_8);
+ if (s >= 0)
+ return s;
+ break;
+ case 1:
+ int LA100_7 = input.LA(1);
+
+
+ int index100_7 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred115_InternalAppliedStereotypeProperty())) {
+ s = 1;
+ }
+
+ else if ((true)) {
+ s = 9;
+ }
+
+
+ input.seek(index100_7);
+ if (s >= 0)
+ return s;
+ break;
+ case 2:
+ int LA100_5 = input.LA(1);
+
+
+ int index100_5 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred115_InternalAppliedStereotypeProperty())) {
+ s = 1;
+ }
+
+ else if ((true)) {
+ s = 9;
+ }
+
+
+ input.seek(index100_5);
+ if (s >= 0)
+ return s;
+ break;
+ case 3:
+ int LA100_4 = input.LA(1);
+
+
+ int index100_4 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred115_InternalAppliedStereotypeProperty())) {
+ s = 1;
+ }
+
+ else if ((true)) {
+ s = 9;
+ }
+
+
+ input.seek(index100_4);
+ if (s >= 0)
+ return s;
+ break;
+ case 4:
+ int LA100_6 = input.LA(1);
+
+
+ int index100_6 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred115_InternalAppliedStereotypeProperty())) {
+ s = 1;
+ }
+
+ else if ((true)) {
+ s = 9;
+ }
+
+
+ input.seek(index100_6);
+ if (s >= 0)
+ return s;
+ break;
+ case 5:
+ int LA100_2 = input.LA(1);
+
+
+ int index100_2 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred115_InternalAppliedStereotypeProperty())) {
+ s = 1;
+ }
+
+ else if ((true)) {
+ s = 9;
+ }
+
+
+ input.seek(index100_2);
+ if (s >= 0)
+ return s;
+ break;
+ case 6:
+ int LA100_3 = input.LA(1);
+
+
+ int index100_3 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred115_InternalAppliedStereotypeProperty())) {
+ s = 1;
+ }
+
+ else if ((true)) {
+ s = 9;
+ }
+
+
+ input.seek(index100_3);
+ if (s >= 0)
+ return s;
+ break;
+ }
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return -1;
+ }
+ NoViableAltException nvae = new NoViableAltException(getDescription(), 100, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+
+ static final String dfa_8s = "\115\uffff";
+ static final String dfa_9s = "\1\2\114\uffff";
+ static final String dfa_10s = "\1\10\1\0\113\uffff";
+ static final String dfa_11s = "\1\167\1\0\113\uffff";
+ static final String dfa_12s = "\2\uffff\1\2\111\uffff\1\1";
+ static final String dfa_13s = "\1\uffff\1\0\113\uffff}>";
+ static final String[] dfa_14s = {
+ "\2\2\5\uffff\5\2\1\uffff\1\2\1\uffff\1\2\1\uffff\6\2\1\uffff\2\2\1\uffff\2\2\1\1\2\2\1\uffff\11\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 DFA118 extends DFA {
+
+ public DFA118(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 118;
+ 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 "5511: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 LA118_1 = input.LA(1);
+
+
+ int index118_1 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred135_InternalAppliedStereotypeProperty())) {
+ s = 76;
+ }
+
+ else if ((true)) {
+ s = 2;
+ }
+
+
+ input.seek(index118_1);
+ if (s >= 0)
+ return s;
+ break;
+ }
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return -1;
+ }
+ NoViableAltException nvae = new NoViableAltException(getDescription(), 118, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+
+ static final String dfa_15s = "\25\uffff";
+ static final String dfa_16s = "\1\4\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\uffff\1\1\1\2\7\uffff\1\14\3\uffff\1\5\35\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 DFA122 extends DFA {
+
+ public DFA122(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 122;
+ 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 "5787: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 LA122_1 = input.LA(1);
+
+
+ int index122_1 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred139_InternalAppliedStereotypeProperty())) {
+ s = 20;
+ }
+
+ else if ((true)) {
+ s = 13;
+ }
+
+
+ input.seek(index122_1);
+ if (s >= 0)
+ return s;
+ break;
+ case 1:
+ int LA122_2 = input.LA(1);
+
+
+ int index122_2 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred139_InternalAppliedStereotypeProperty())) {
+ s = 20;
+ }
+
+ else if ((true)) {
+ s = 13;
+ }
+
+
+ input.seek(index122_2);
+ if (s >= 0)
+ return s;
+ break;
+ case 2:
+ int LA122_3 = input.LA(1);
+
+
+ int index122_3 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred139_InternalAppliedStereotypeProperty())) {
+ s = 20;
+ }
+
+ else if ((true)) {
+ s = 13;
+ }
+
+
+ input.seek(index122_3);
+ if (s >= 0)
+ return s;
+ break;
+ case 3:
+ int LA122_4 = input.LA(1);
+
+
+ int index122_4 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred139_InternalAppliedStereotypeProperty())) {
+ s = 20;
+ }
+
+ else if ((true)) {
+ s = 13;
+ }
+
+
+ input.seek(index122_4);
+ if (s >= 0)
+ return s;
+ break;
+ case 4:
+ int LA122_5 = input.LA(1);
+
+
+ int index122_5 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred139_InternalAppliedStereotypeProperty())) {
+ s = 20;
+ }
- }
- break;
+ else if ((true)) {
+ s = 13;
+ }
- }
+ input.seek(index122_5);
+ if (s >= 0)
+ return s;
+ break;
+ case 5:
+ int LA122_6 = input.LA(1);
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePotentiallyAmbiguousQualifiedName"
-
-
- // $ANTLR start "entryRuleUnqualifiedName"
- // InternalAppliedStereotypeProperty.g:5441:1: entryRuleUnqualifiedName returns [EObject current=null] : iv_ruleUnqualifiedName= ruleUnqualifiedName EOF ;
- public final EObject entryRuleUnqualifiedName() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleUnqualifiedName = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:5442:2: (iv_ruleUnqualifiedName= ruleUnqualifiedName EOF )
- // InternalAppliedStereotypeProperty.g:5443: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"
- // InternalAppliedStereotypeProperty.g:5450: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 {
- // InternalAppliedStereotypeProperty.g:5453:28: ( ( (lv_nameBinding_0_0= ruleNameBinding ) ) )
- // InternalAppliedStereotypeProperty.g:5454:1: ( (lv_nameBinding_0_0= ruleNameBinding ) )
- {
- // InternalAppliedStereotypeProperty.g:5454:1: ( (lv_nameBinding_0_0= ruleNameBinding ) )
- // InternalAppliedStereotypeProperty.g:5455:1: (lv_nameBinding_0_0= ruleNameBinding )
- {
- // InternalAppliedStereotypeProperty.g:5455:1: (lv_nameBinding_0_0= ruleNameBinding )
- // InternalAppliedStereotypeProperty.g:5456: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"
- // InternalAppliedStereotypeProperty.g:5480:1: entryRuleNameBinding returns [EObject current=null] : iv_ruleNameBinding= ruleNameBinding EOF ;
- public final EObject entryRuleNameBinding() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNameBinding = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:5481:2: (iv_ruleNameBinding= ruleNameBinding EOF )
- // InternalAppliedStereotypeProperty.g:5482: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"
- // InternalAppliedStereotypeProperty.g:5489: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 {
- // InternalAppliedStereotypeProperty.g:5492:28: ( ( ( (lv_name_0_0= ruleName ) ) ( (lv_binding_1_0= ruleTemplateBinding ) )? ) )
- // InternalAppliedStereotypeProperty.g:5493:1: ( ( (lv_name_0_0= ruleName ) ) ( (lv_binding_1_0= ruleTemplateBinding ) )? )
- {
- // InternalAppliedStereotypeProperty.g:5493:1: ( ( (lv_name_0_0= ruleName ) ) ( (lv_binding_1_0= ruleTemplateBinding ) )? )
- // InternalAppliedStereotypeProperty.g:5493:2: ( (lv_name_0_0= ruleName ) ) ( (lv_binding_1_0= ruleTemplateBinding ) )?
- {
- // InternalAppliedStereotypeProperty.g:5493:2: ( (lv_name_0_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:5494:1: (lv_name_0_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:5494:1: (lv_name_0_0= ruleName )
- // InternalAppliedStereotypeProperty.g:5495: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:5511:2: ( (lv_binding_1_0= ruleTemplateBinding ) )?
- int alt118=2;
- alt118 = dfa118.predict(input);
- switch (alt118) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:5512:1: (lv_binding_1_0= ruleTemplateBinding )
- {
- // InternalAppliedStereotypeProperty.g:5512:1: (lv_binding_1_0= ruleTemplateBinding )
- // InternalAppliedStereotypeProperty.g:5513: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"
- // InternalAppliedStereotypeProperty.g:5537:1: entryRuleTemplateBinding returns [EObject current=null] : iv_ruleTemplateBinding= ruleTemplateBinding EOF ;
- public final EObject entryRuleTemplateBinding() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleTemplateBinding = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:5538:2: (iv_ruleTemplateBinding= ruleTemplateBinding EOF )
- // InternalAppliedStereotypeProperty.g:5539: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"
- // InternalAppliedStereotypeProperty.g:5546: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 {
- // InternalAppliedStereotypeProperty.g:5549:28: ( (otherlv_0= '<' (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding ) otherlv_3= '>' ) )
- // InternalAppliedStereotypeProperty.g:5550:1: (otherlv_0= '<' (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding ) otherlv_3= '>' )
- {
- // InternalAppliedStereotypeProperty.g:5550:1: (otherlv_0= '<' (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding ) otherlv_3= '>' )
- // InternalAppliedStereotypeProperty.g:5550:3: otherlv_0= '<' (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding ) otherlv_3= '>'
- {
- otherlv_0=(Token)match(input,37,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getTemplateBindingAccess().getLessThanSignKeyword_0());
-
- }
- // InternalAppliedStereotypeProperty.g:5554:1: (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding )
- int alt119=2;
- int LA119_0 = input.LA(1);
-
- if ( (LA119_0==RULE_ID) ) {
- int LA119_1 = input.LA(2);
-
- if ( (LA119_1==20) ) {
- alt119=1;
- }
- else if ( (LA119_1==19||(LA119_1>=26 && LA119_1<=27)||(LA119_1>=37 && LA119_1<=38)) ) {
- alt119=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 119, 1, input);
-
- throw nvae;
- }
- }
- else if ( (LA119_0==RULE_UNRESTRICTED_NAME) ) {
- int LA119_2 = input.LA(2);
-
- if ( (LA119_2==20) ) {
- alt119=1;
- }
- else if ( (LA119_2==19||(LA119_2>=26 && LA119_2<=27)||(LA119_2>=37 && LA119_2<=38)) ) {
- alt119=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 119, 2, input);
-
- throw nvae;
- }
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 119, 0, input);
-
- throw nvae;
- }
- switch (alt119) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:5555: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 :
- // InternalAppliedStereotypeProperty.g:5568: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,38,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"
- // InternalAppliedStereotypeProperty.g:5591:1: entryRulePositionalTemplateBinding returns [EObject current=null] : iv_rulePositionalTemplateBinding= rulePositionalTemplateBinding EOF ;
- public final EObject entryRulePositionalTemplateBinding() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePositionalTemplateBinding = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:5592:2: (iv_rulePositionalTemplateBinding= rulePositionalTemplateBinding EOF )
- // InternalAppliedStereotypeProperty.g:5593: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"
- // InternalAppliedStereotypeProperty.g:5600: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 {
- // InternalAppliedStereotypeProperty.g:5603:28: ( ( ( (lv_argumentName_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )* ) )
- // InternalAppliedStereotypeProperty.g:5604:1: ( ( (lv_argumentName_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:5604:1: ( ( (lv_argumentName_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )* )
- // InternalAppliedStereotypeProperty.g:5604:2: ( (lv_argumentName_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )*
- {
- // InternalAppliedStereotypeProperty.g:5604:2: ( (lv_argumentName_0_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:5605:1: (lv_argumentName_0_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:5605:1: (lv_argumentName_0_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:5606: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:5622:2: (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )*
- loop120:
- do {
- int alt120=2;
- int LA120_0 = input.LA(1);
-
- if ( (LA120_0==19) ) {
- alt120=1;
- }
-
-
- switch (alt120) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:5622:4: otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) )
- {
- otherlv_1=(Token)match(input,19,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getPositionalTemplateBindingAccess().getCommaKeyword_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:5626:1: ( (lv_argumentName_2_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:5627:1: (lv_argumentName_2_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:5627:1: (lv_argumentName_2_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:5628: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 loop120;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePositionalTemplateBinding"
-
-
- // $ANTLR start "entryRuleNamedTemplateBinding"
- // InternalAppliedStereotypeProperty.g:5652:1: entryRuleNamedTemplateBinding returns [EObject current=null] : iv_ruleNamedTemplateBinding= ruleNamedTemplateBinding EOF ;
- public final EObject entryRuleNamedTemplateBinding() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNamedTemplateBinding = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:5653:2: (iv_ruleNamedTemplateBinding= ruleNamedTemplateBinding EOF )
- // InternalAppliedStereotypeProperty.g:5654: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"
- // InternalAppliedStereotypeProperty.g:5661: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 {
- // InternalAppliedStereotypeProperty.g:5664:28: ( ( ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) ) (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )* ) )
- // InternalAppliedStereotypeProperty.g:5665:1: ( ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) ) (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:5665:1: ( ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) ) (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )* )
- // InternalAppliedStereotypeProperty.g:5665:2: ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) ) (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )*
- {
- // InternalAppliedStereotypeProperty.g:5665:2: ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) )
- // InternalAppliedStereotypeProperty.g:5666:1: (lv_substitution_0_0= ruleTemplateParameterSubstitution )
- {
- // InternalAppliedStereotypeProperty.g:5666:1: (lv_substitution_0_0= ruleTemplateParameterSubstitution )
- // InternalAppliedStereotypeProperty.g:5667: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:5683:2: (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )*
- loop121:
- do {
- int alt121=2;
- int LA121_0 = input.LA(1);
-
- if ( (LA121_0==19) ) {
- alt121=1;
- }
-
-
- switch (alt121) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:5683:4: otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) )
- {
- otherlv_1=(Token)match(input,19,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getNamedTemplateBindingAccess().getCommaKeyword_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:5687:1: ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) )
- // InternalAppliedStereotypeProperty.g:5688:1: (lv_substitution_2_0= ruleTemplateParameterSubstitution )
- {
- // InternalAppliedStereotypeProperty.g:5688:1: (lv_substitution_2_0= ruleTemplateParameterSubstitution )
- // InternalAppliedStereotypeProperty.g:5689: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 loop121;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleNamedTemplateBinding"
-
-
- // $ANTLR start "entryRuleTemplateParameterSubstitution"
- // InternalAppliedStereotypeProperty.g:5713:1: entryRuleTemplateParameterSubstitution returns [EObject current=null] : iv_ruleTemplateParameterSubstitution= ruleTemplateParameterSubstitution EOF ;
- public final EObject entryRuleTemplateParameterSubstitution() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleTemplateParameterSubstitution = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:5714:2: (iv_ruleTemplateParameterSubstitution= ruleTemplateParameterSubstitution EOF )
- // InternalAppliedStereotypeProperty.g:5715: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"
- // InternalAppliedStereotypeProperty.g:5722: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 {
- // InternalAppliedStereotypeProperty.g:5725:28: ( ( ( (lv_parameterName_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_argumentName_2_0= ruleQualifiedName ) ) ) )
- // InternalAppliedStereotypeProperty.g:5726:1: ( ( (lv_parameterName_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )
- {
- // InternalAppliedStereotypeProperty.g:5726:1: ( ( (lv_parameterName_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )
- // InternalAppliedStereotypeProperty.g:5726:2: ( (lv_parameterName_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_argumentName_2_0= ruleQualifiedName ) )
- {
- // InternalAppliedStereotypeProperty.g:5726:2: ( (lv_parameterName_0_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:5727:1: (lv_parameterName_0_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:5727:1: (lv_parameterName_0_0= ruleName )
- // InternalAppliedStereotypeProperty.g:5728: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,20,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getTemplateParameterSubstitutionAccess().getEqualsSignGreaterThanSignKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:5748:1: ( (lv_argumentName_2_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:5749:1: (lv_argumentName_2_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:5749:1: (lv_argumentName_2_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:5750: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"
- // InternalAppliedStereotypeProperty.g:5774:1: entryRuleExpression returns [EObject current=null] : iv_ruleExpression= ruleExpression EOF ;
- public final EObject entryRuleExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:5775:2: (iv_ruleExpression= ruleExpression EOF )
- // InternalAppliedStereotypeProperty.g:5776: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"
- // InternalAppliedStereotypeProperty.g:5783: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 {
- // InternalAppliedStereotypeProperty.g:5786:28: ( (this_AssignmentExpression_0= ruleAssignmentExpression | this_ConditionalExpression_1= ruleConditionalExpression ) )
- // InternalAppliedStereotypeProperty.g:5787:1: (this_AssignmentExpression_0= ruleAssignmentExpression | this_ConditionalExpression_1= ruleConditionalExpression )
- {
- // InternalAppliedStereotypeProperty.g:5787:1: (this_AssignmentExpression_0= ruleAssignmentExpression | this_ConditionalExpression_1= ruleConditionalExpression )
- int alt122=2;
- alt122 = dfa122.predict(input);
- switch (alt122) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:5788: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 :
- // InternalAppliedStereotypeProperty.g:5801: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"
- // InternalAppliedStereotypeProperty.g:5820:1: entryRulePrimaryExpression returns [EObject current=null] : iv_rulePrimaryExpression= rulePrimaryExpression EOF ;
- public final EObject entryRulePrimaryExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePrimaryExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:5821:2: (iv_rulePrimaryExpression= rulePrimaryExpression EOF )
- // InternalAppliedStereotypeProperty.g:5822: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"
- // InternalAppliedStereotypeProperty.g:5829: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 {
- // InternalAppliedStereotypeProperty.g:5832: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 ) ) ) )* ) )
- // InternalAppliedStereotypeProperty.g:5833: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 ) ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:5833: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 ) ) ) )* )
- // InternalAppliedStereotypeProperty.g:5834: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();
-
- }
- // InternalAppliedStereotypeProperty.g:5845: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 ) ) ) )*
- loop125:
- do {
- int alt125=5;
- alt125 = dfa125.predict(input);
- switch (alt125) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:5845:2: ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) )
- {
- // InternalAppliedStereotypeProperty.g:5845:2: ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) )
- // InternalAppliedStereotypeProperty.g:5845:3: () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) )
- {
- // InternalAppliedStereotypeProperty.g:5845:3: ()
- // InternalAppliedStereotypeProperty.g:5846:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0(),
- current);
-
- }
-
- }
-
- otherlv_2=(Token)match(input,27,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getPrimaryExpressionAccess().getFullStopKeyword_1_0_1());
-
- }
- // InternalAppliedStereotypeProperty.g:5858:1: ( (lv_nameBinding_3_0= ruleNameBinding ) )
- // InternalAppliedStereotypeProperty.g:5859:1: (lv_nameBinding_3_0= ruleNameBinding )
- {
- // InternalAppliedStereotypeProperty.g:5859:1: (lv_nameBinding_3_0= ruleNameBinding )
- // InternalAppliedStereotypeProperty.g:5860:3: lv_nameBinding_3_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_0_2_0());
-
- }
- pushFollow(FOLLOW_44);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:5876:2: ()
- // InternalAppliedStereotypeProperty.g:5877:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getFeatureInvocationExpressionTargetAction_1_0_3(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:5885:2: ( (lv_tuple_5_0= ruleTuple ) )
- // InternalAppliedStereotypeProperty.g:5886:1: (lv_tuple_5_0= ruleTuple )
- {
- // InternalAppliedStereotypeProperty.g:5886:1: (lv_tuple_5_0= ruleTuple )
- // InternalAppliedStereotypeProperty.g:5887: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 :
- // InternalAppliedStereotypeProperty.g:5904:6: ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () )
- {
- // InternalAppliedStereotypeProperty.g:5904:6: ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () )
- // InternalAppliedStereotypeProperty.g:5904:7: () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) ()
- {
- // InternalAppliedStereotypeProperty.g:5904:7: ()
- // InternalAppliedStereotypeProperty.g:5905:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0(),
- current);
-
- }
-
- }
-
- otherlv_7=(Token)match(input,27,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_7, grammarAccess.getPrimaryExpressionAccess().getFullStopKeyword_1_1_1());
-
- }
- // InternalAppliedStereotypeProperty.g:5917:1: ( (lv_nameBinding_8_0= ruleNameBinding ) )
- // InternalAppliedStereotypeProperty.g:5918:1: (lv_nameBinding_8_0= ruleNameBinding )
- {
- // InternalAppliedStereotypeProperty.g:5918:1: (lv_nameBinding_8_0= ruleNameBinding )
- // InternalAppliedStereotypeProperty.g:5919: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:5935:2: ()
- // InternalAppliedStereotypeProperty.g:5936:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getPropertyAccessExpressionFeatureReferenceAction_1_1_3(),
- current);
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 3 :
- // InternalAppliedStereotypeProperty.g:5945: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= ')' ) ) )
- {
- // InternalAppliedStereotypeProperty.g:5945: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= ')' ) ) )
- // InternalAppliedStereotypeProperty.g:5945: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= ')' ) )
- {
- // InternalAppliedStereotypeProperty.g:5945:7: ()
- // InternalAppliedStereotypeProperty.g:5946: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());
-
- }
- // InternalAppliedStereotypeProperty.g:5958: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 alt124=3;
- switch ( input.LA(1) ) {
- case RULE_ID:
- {
- int LA124_1 = input.LA(2);
-
- if ( (LA124_1==17||(LA124_1>=26 && LA124_1<=27)||LA124_1==37) ) {
- alt124=1;
- }
- else if ( ((LA124_1>=RULE_ID && LA124_1<=RULE_UNRESTRICTED_NAME)) ) {
- alt124=3;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 124, 1, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_UNRESTRICTED_NAME:
- {
- alt124=1;
- }
- break;
- case 61:
- {
- alt124=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 124, 0, input);
-
- throw nvae;
- }
-
- switch (alt124) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:5958:2: ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) )
- {
- // InternalAppliedStereotypeProperty.g:5958:2: ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) )
- // InternalAppliedStereotypeProperty.g:5958:3: () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) )
- {
- // InternalAppliedStereotypeProperty.g:5958:3: ()
- // InternalAppliedStereotypeProperty.g:5959:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getSequenceOperationExpressionPrimaryAction_1_2_2_0_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:5967:2: ( (lv_operation_13_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:5968:1: (lv_operation_13_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:5968:1: (lv_operation_13_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:5969:3: lv_operation_13_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getOperationQualifiedNameParserRuleCall_1_2_2_0_1_0());
-
- }
- pushFollow(FOLLOW_44);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:5985:2: ( (lv_tuple_14_0= ruleTuple ) )
- // InternalAppliedStereotypeProperty.g:5986:1: (lv_tuple_14_0= ruleTuple )
- {
- // InternalAppliedStereotypeProperty.g:5986:1: (lv_tuple_14_0= ruleTuple )
- // InternalAppliedStereotypeProperty.g:5987: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 :
- // InternalAppliedStereotypeProperty.g:6004:6: ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) )
- {
- // InternalAppliedStereotypeProperty.g:6004:6: ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) )
- // InternalAppliedStereotypeProperty.g:6004:7: () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) )
- {
- // InternalAppliedStereotypeProperty.g:6004:7: ()
- // InternalAppliedStereotypeProperty.g:6005: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());
-
- }
- // InternalAppliedStereotypeProperty.g:6017:1: ( (lv_isOrdered_17_0= 'ordered' ) )?
- int alt123=2;
- int LA123_0 = input.LA(1);
-
- if ( (LA123_0==55) ) {
- alt123=1;
- }
- switch (alt123) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:6018:1: (lv_isOrdered_17_0= 'ordered' )
- {
- // InternalAppliedStereotypeProperty.g:6018:1: (lv_isOrdered_17_0= 'ordered' )
- // InternalAppliedStereotypeProperty.g:6019: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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:6032:3: ( (lv_behaviorName_18_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:6033:1: (lv_behaviorName_18_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:6033:1: (lv_behaviorName_18_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:6034: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 :
- // InternalAppliedStereotypeProperty.g:6051:6: ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' )
- {
- // InternalAppliedStereotypeProperty.g:6051:6: ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' )
- // InternalAppliedStereotypeProperty.g:6051:7: () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')'
- {
- // InternalAppliedStereotypeProperty.g:6051:7: ()
- // InternalAppliedStereotypeProperty.g:6052:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getSequenceExpansionExpressionPrimaryAction_1_2_2_2_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:6060:2: ( (lv_operation_20_0= RULE_ID ) )
- // InternalAppliedStereotypeProperty.g:6061:1: (lv_operation_20_0= RULE_ID )
- {
- // InternalAppliedStereotypeProperty.g:6061:1: (lv_operation_20_0= RULE_ID )
- // InternalAppliedStereotypeProperty.g:6062:3: lv_operation_20_0= RULE_ID
- {
- lv_operation_20_0=(Token)match(input,RULE_ID,FOLLOW_14); 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");
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:6078:2: ( (lv_variable_21_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:6079:1: (lv_variable_21_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:6079:1: (lv_variable_21_0= ruleName )
- // InternalAppliedStereotypeProperty.g:6080:3: lv_variable_21_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getVariableNameParserRuleCall_1_2_2_2_2_0());
-
- }
- pushFollow(FOLLOW_44);
- 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,17,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_22, grammarAccess.getPrimaryExpressionAccess().getLeftParenthesisKeyword_1_2_2_2_3());
-
- }
- // InternalAppliedStereotypeProperty.g:6100:1: ( (lv_argument_23_0= ruleExpression ) )
- // InternalAppliedStereotypeProperty.g:6101:1: (lv_argument_23_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:6101:1: (lv_argument_23_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:6102: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,18,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 :
- // InternalAppliedStereotypeProperty.g:6123:6: ( () ( (lv_index_26_0= ruleIndex ) ) )
- {
- // InternalAppliedStereotypeProperty.g:6123:6: ( () ( (lv_index_26_0= ruleIndex ) ) )
- // InternalAppliedStereotypeProperty.g:6123:7: () ( (lv_index_26_0= ruleIndex ) )
- {
- // InternalAppliedStereotypeProperty.g:6123:7: ()
- // InternalAppliedStereotypeProperty.g:6124:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:6132:2: ( (lv_index_26_0= ruleIndex ) )
- // InternalAppliedStereotypeProperty.g:6133:1: (lv_index_26_0= ruleIndex )
- {
- // InternalAppliedStereotypeProperty.g:6133:1: (lv_index_26_0= ruleIndex )
- // InternalAppliedStereotypeProperty.g:6134: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();
-
- }
-
- }
+ int index122_6 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred139_InternalAppliedStereotypeProperty())) {
+ s = 20;
+ }
- }
+ else if ((true)) {
+ s = 13;
+ }
- }
+ input.seek(index122_6);
+ if (s >= 0)
+ return s;
+ break;
+ case 6:
+ int LA122_7 = input.LA(1);
- }
- break;
+ int index122_7 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred139_InternalAppliedStereotypeProperty())) {
+ s = 20;
+ }
- default :
- break loop125;
- }
- } while (true);
+ else if ((true)) {
+ s = 13;
+ }
- }
+ input.seek(index122_7);
+ if (s >= 0)
+ return s;
+ break;
+ case 7:
+ int LA122_8 = input.LA(1);
- }
+ int index122_8 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred139_InternalAppliedStereotypeProperty())) {
+ s = 20;
+ }
+
+ else if ((true)) {
+ s = 13;
+ }
+
+
+ input.seek(index122_8);
+ if (s >= 0)
+ return s;
+ break;
+ case 8:
+ int LA122_9 = input.LA(1);
+
+
+ int index122_9 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred139_InternalAppliedStereotypeProperty())) {
+ s = 20;
+ }
+
+ else if ((true)) {
+ s = 13;
+ }
+
+
+ input.seek(index122_9);
+ if (s >= 0)
+ return s;
+ break;
+ case 9:
+ int LA122_10 = input.LA(1);
+
+
+ int index122_10 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred139_InternalAppliedStereotypeProperty())) {
+ s = 20;
+ }
+
+ else if ((true)) {
+ s = 13;
+ }
+
+
+ input.seek(index122_10);
+ if (s >= 0)
+ return s;
+ break;
+ case 10:
+ int LA122_11 = input.LA(1);
+
+
+ int index122_11 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred139_InternalAppliedStereotypeProperty())) {
+ s = 20;
+ }
+
+ else if ((true)) {
+ s = 13;
+ }
+
+
+ input.seek(index122_11);
+ if (s >= 0)
+ return s;
+ break;
+ case 11:
+ int LA122_12 = input.LA(1);
+
+
+ int index122_12 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred139_InternalAppliedStereotypeProperty())) {
+ s = 20;
+ }
+
+ else if ((true)) {
+ s = 13;
+ }
+
+
+ input.seek(index122_12);
+ 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_21s = "\64\uffff";
+ static final String dfa_22s = "\1\1\63\uffff";
+ static final String dfa_23s = "\1\17\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 = {
+ "\1\1\2\uffff\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\5\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 DFA125 extends DFA {
+
+ public DFA125(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 125;
+ 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 5845: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 LA125_47 = input.LA(1);
+
+
+ int index125_47 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred140_InternalAppliedStereotypeProperty())) {
+ s = 50;
+ }
+
+ else if ((synpred141_InternalAppliedStereotypeProperty())) {
+ s = 51;
+ }
+
+
+ input.seek(index125_47);
+ if (s >= 0)
+ return s;
+ break;
+ }
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return -1;
+ }
+ NoViableAltException nvae = new NoViableAltException(getDescription(), 125, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+
+ static final String dfa_28s = "\22\uffff";
+ static final String dfa_29s = "\1\4\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\uffff\1\10\1\11\7\uffff\1\14\3\uffff\1\1\35\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 DFA126 extends DFA {
+
+ public DFA126(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 126;
+ 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 "6171: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 LA126_8 = input.LA(1);
+
+
+ int index126_8 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred151_InternalAppliedStereotypeProperty())) {
+ s = 13;
+ }
+
+ else if ((synpred152_InternalAppliedStereotypeProperty())) {
+ s = 14;
+ }
+
+ else if ((synpred153_InternalAppliedStereotypeProperty())) {
+ s = 10;
+ }
+
+ else if ((synpred154_InternalAppliedStereotypeProperty())) {
+ s = 15;
+ }
+
+ else if ((synpred155_InternalAppliedStereotypeProperty())) {
+ s = 16;
+ }
+
+ else if ((synpred156_InternalAppliedStereotypeProperty())) {
+ s = 17;
+ }
+
+
+ input.seek(index126_8);
+ if (s >= 0)
+ return s;
+ break;
+ case 1:
+ int LA126_9 = input.LA(1);
+
+
+ int index126_9 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred151_InternalAppliedStereotypeProperty())) {
+ s = 13;
+ }
+
+ else if ((synpred152_InternalAppliedStereotypeProperty())) {
+ s = 14;
+ }
+
+ else if ((synpred153_InternalAppliedStereotypeProperty())) {
+ s = 10;
+ }
+
+ else if ((synpred154_InternalAppliedStereotypeProperty())) {
+ s = 15;
+ }
+
+ else if ((synpred155_InternalAppliedStereotypeProperty())) {
+ s = 16;
+ }
+
+ else if ((synpred156_InternalAppliedStereotypeProperty())) {
+ s = 17;
+ }
+
+
+ input.seek(index126_9);
+ 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_34s = "\26\uffff";
+ static final String dfa_35s = "\1\4\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\uffff\1\1\1\2\7\uffff\2\3\2\uffff\1\3\35\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 DFA138 extends DFA {
+
+ public DFA138(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 138;
+ 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 "7337: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 LA138_1 = input.LA(1);
+
+
+ int index138_1 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred171_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
+
+ else if ((true)) {
+ s = 3;
+ }
+
+
+ input.seek(index138_1);
+ if (s >= 0)
+ return s;
+ break;
+ case 1:
+ int LA138_2 = input.LA(1);
+
+
+ int index138_2 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred171_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
+
+ else if ((true)) {
+ s = 3;
+ }
+
+
+ input.seek(index138_2);
+ if (s >= 0)
+ return s;
+ break;
+ }
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return -1;
+ }
+ NoViableAltException nvae = new NoViableAltException(getDescription(), 138, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+
+ static final String dfa_40s = "\1\4\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\uffff\1\1\1\2\7\uffff\1\14\3\uffff\1\5\12\uffff\1\24\22\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 DFA145 extends DFA {
+
+ public DFA145(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 145;
+ 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 "7730: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 LA145_1 = input.LA(1);
+
+
+ int index145_1 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred178_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
+
+ else if ((true)) {
+ s = 20;
+ }
+
+
+ input.seek(index145_1);
+ if (s >= 0)
+ return s;
+ break;
+ case 1:
+ int LA145_2 = input.LA(1);
+
+
+ int index145_2 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred178_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
+
+ else if ((true)) {
+ s = 20;
+ }
+
+
+ input.seek(index145_2);
+ if (s >= 0)
+ return s;
+ break;
+ case 2:
+ int LA145_3 = input.LA(1);
+
+
+ int index145_3 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred178_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
+
+ else if ((true)) {
+ s = 20;
+ }
+
+
+ input.seek(index145_3);
+ if (s >= 0)
+ return s;
+ break;
+ case 3:
+ int LA145_4 = input.LA(1);
+
+
+ int index145_4 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred178_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
+
+ else if ((true)) {
+ s = 20;
+ }
+
+
+ input.seek(index145_4);
+ if (s >= 0)
+ return s;
+ break;
+ case 4:
+ int LA145_5 = input.LA(1);
+
+
+ int index145_5 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred178_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
+
+ else if ((true)) {
+ s = 20;
+ }
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePrimaryExpression"
-
-
- // $ANTLR start "entryRuleBaseExpression"
- // InternalAppliedStereotypeProperty.g:6158:1: entryRuleBaseExpression returns [EObject current=null] : iv_ruleBaseExpression= ruleBaseExpression EOF ;
- public final EObject entryRuleBaseExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBaseExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:6159:2: (iv_ruleBaseExpression= ruleBaseExpression EOF )
- // InternalAppliedStereotypeProperty.g:6160: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"
- // InternalAppliedStereotypeProperty.g:6167: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 {
- // InternalAppliedStereotypeProperty.g:6170: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 ) )
- // InternalAppliedStereotypeProperty.g:6171: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 )
- {
- // InternalAppliedStereotypeProperty.g:6171: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 alt126=11;
- alt126 = dfa126.predict(input);
- switch (alt126) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:6172: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 :
- // InternalAppliedStereotypeProperty.g:6185: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 :
- // InternalAppliedStereotypeProperty.g:6198: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 :
- // InternalAppliedStereotypeProperty.g:6211: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 :
- // InternalAppliedStereotypeProperty.g:6224: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 :
- // InternalAppliedStereotypeProperty.g:6237: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 :
- // InternalAppliedStereotypeProperty.g:6250: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 :
- // InternalAppliedStereotypeProperty.g:6263: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 :
- // InternalAppliedStereotypeProperty.g:6276: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 :
- // InternalAppliedStereotypeProperty.g:6289: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 :
- // InternalAppliedStereotypeProperty.g:6302: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"
- // InternalAppliedStereotypeProperty.g:6321:1: entryRuleLiteralExpression returns [EObject current=null] : iv_ruleLiteralExpression= ruleLiteralExpression EOF ;
- public final EObject entryRuleLiteralExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleLiteralExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:6322:2: (iv_ruleLiteralExpression= ruleLiteralExpression EOF )
- // InternalAppliedStereotypeProperty.g:6323: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"
- // InternalAppliedStereotypeProperty.g:6330: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 {
- // InternalAppliedStereotypeProperty.g:6333:28: ( (this_BooleanLiteralExpression_0= ruleBooleanLiteralExpression | this_NaturalLiteralExpression_1= ruleNaturalLiteralExpression | this_UnboundedLiteralExpression_2= ruleUnboundedLiteralExpression | this_StringLiteralExpression_3= ruleStringLiteralExpression ) )
- // InternalAppliedStereotypeProperty.g:6334:1: (this_BooleanLiteralExpression_0= ruleBooleanLiteralExpression | this_NaturalLiteralExpression_1= ruleNaturalLiteralExpression | this_UnboundedLiteralExpression_2= ruleUnboundedLiteralExpression | this_StringLiteralExpression_3= ruleStringLiteralExpression )
- {
- // InternalAppliedStereotypeProperty.g:6334:1: (this_BooleanLiteralExpression_0= ruleBooleanLiteralExpression | this_NaturalLiteralExpression_1= ruleNaturalLiteralExpression | this_UnboundedLiteralExpression_2= ruleUnboundedLiteralExpression | this_StringLiteralExpression_3= ruleStringLiteralExpression )
- int alt127=4;
- switch ( input.LA(1) ) {
- case RULE_BOOLEAN_VALUE:
- {
- alt127=1;
- }
- break;
- case RULE_NATURAL_VALUE:
- {
- alt127=2;
- }
- break;
- case 21:
- {
- alt127=3;
- }
- break;
- case RULE_STRING:
- {
- alt127=4;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 127, 0, input);
-
- throw nvae;
- }
-
- switch (alt127) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:6335: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 :
- // InternalAppliedStereotypeProperty.g:6348: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 :
- // InternalAppliedStereotypeProperty.g:6361: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 :
- // InternalAppliedStereotypeProperty.g:6374: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"
- // InternalAppliedStereotypeProperty.g:6393:1: entryRuleBooleanLiteralExpression returns [EObject current=null] : iv_ruleBooleanLiteralExpression= ruleBooleanLiteralExpression EOF ;
- public final EObject entryRuleBooleanLiteralExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBooleanLiteralExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:6394:2: (iv_ruleBooleanLiteralExpression= ruleBooleanLiteralExpression EOF )
- // InternalAppliedStereotypeProperty.g:6395: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"
- // InternalAppliedStereotypeProperty.g:6402: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 {
- // InternalAppliedStereotypeProperty.g:6405:28: ( ( (lv_image_0_0= RULE_BOOLEAN_VALUE ) ) )
- // InternalAppliedStereotypeProperty.g:6406:1: ( (lv_image_0_0= RULE_BOOLEAN_VALUE ) )
- {
- // InternalAppliedStereotypeProperty.g:6406:1: ( (lv_image_0_0= RULE_BOOLEAN_VALUE ) )
- // InternalAppliedStereotypeProperty.g:6407:1: (lv_image_0_0= RULE_BOOLEAN_VALUE )
- {
- // InternalAppliedStereotypeProperty.g:6407:1: (lv_image_0_0= RULE_BOOLEAN_VALUE )
- // InternalAppliedStereotypeProperty.g:6408: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"
- // InternalAppliedStereotypeProperty.g:6432:1: entryRuleNaturalLiteralExpression returns [EObject current=null] : iv_ruleNaturalLiteralExpression= ruleNaturalLiteralExpression EOF ;
- public final EObject entryRuleNaturalLiteralExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNaturalLiteralExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:6433:2: (iv_ruleNaturalLiteralExpression= ruleNaturalLiteralExpression EOF )
- // InternalAppliedStereotypeProperty.g:6434: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"
- // InternalAppliedStereotypeProperty.g:6441: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 {
- // InternalAppliedStereotypeProperty.g:6444:28: ( ( (lv_image_0_0= RULE_NATURAL_VALUE ) ) )
- // InternalAppliedStereotypeProperty.g:6445:1: ( (lv_image_0_0= RULE_NATURAL_VALUE ) )
- {
- // InternalAppliedStereotypeProperty.g:6445:1: ( (lv_image_0_0= RULE_NATURAL_VALUE ) )
- // InternalAppliedStereotypeProperty.g:6446:1: (lv_image_0_0= RULE_NATURAL_VALUE )
- {
- // InternalAppliedStereotypeProperty.g:6446:1: (lv_image_0_0= RULE_NATURAL_VALUE )
- // InternalAppliedStereotypeProperty.g:6447: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"
- // InternalAppliedStereotypeProperty.g:6471:1: entryRuleUnboundedLiteralExpression returns [EObject current=null] : iv_ruleUnboundedLiteralExpression= ruleUnboundedLiteralExpression EOF ;
- public final EObject entryRuleUnboundedLiteralExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleUnboundedLiteralExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:6472:2: (iv_ruleUnboundedLiteralExpression= ruleUnboundedLiteralExpression EOF )
- // InternalAppliedStereotypeProperty.g:6473: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"
- // InternalAppliedStereotypeProperty.g:6480:1: ruleUnboundedLiteralExpression returns [EObject current=null] : ( () otherlv_1= '*' ) ;
- public final EObject ruleUnboundedLiteralExpression() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
-
- enterRule();
-
- try {
- // InternalAppliedStereotypeProperty.g:6483:28: ( ( () otherlv_1= '*' ) )
- // InternalAppliedStereotypeProperty.g:6484:1: ( () otherlv_1= '*' )
- {
- // InternalAppliedStereotypeProperty.g:6484:1: ( () otherlv_1= '*' )
- // InternalAppliedStereotypeProperty.g:6484:2: () otherlv_1= '*'
- {
- // InternalAppliedStereotypeProperty.g:6484:2: ()
- // InternalAppliedStereotypeProperty.g:6485:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElement(
- grammarAccess.getUnboundedLiteralExpressionAccess().getUnboundedLiteralExpressionAction_0(),
- current);
-
- }
-
- }
-
- otherlv_1=(Token)match(input,21,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"
- // InternalAppliedStereotypeProperty.g:6505:1: entryRuleStringLiteralExpression returns [EObject current=null] : iv_ruleStringLiteralExpression= ruleStringLiteralExpression EOF ;
- public final EObject entryRuleStringLiteralExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleStringLiteralExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:6506:2: (iv_ruleStringLiteralExpression= ruleStringLiteralExpression EOF )
- // InternalAppliedStereotypeProperty.g:6507: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"
- // InternalAppliedStereotypeProperty.g:6514: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 {
- // InternalAppliedStereotypeProperty.g:6517:28: ( ( (lv_image_0_0= RULE_STRING ) ) )
- // InternalAppliedStereotypeProperty.g:6518:1: ( (lv_image_0_0= RULE_STRING ) )
- {
- // InternalAppliedStereotypeProperty.g:6518:1: ( (lv_image_0_0= RULE_STRING ) )
- // InternalAppliedStereotypeProperty.g:6519:1: (lv_image_0_0= RULE_STRING )
- {
- // InternalAppliedStereotypeProperty.g:6519:1: (lv_image_0_0= RULE_STRING )
- // InternalAppliedStereotypeProperty.g:6520: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"
- // InternalAppliedStereotypeProperty.g:6544:1: entryRuleNameExpression returns [EObject current=null] : iv_ruleNameExpression= ruleNameExpression EOF ;
- public final EObject entryRuleNameExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNameExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:6545:2: (iv_ruleNameExpression= ruleNameExpression EOF )
- // InternalAppliedStereotypeProperty.g:6546: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"
- // InternalAppliedStereotypeProperty.g:6553: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 {
- // InternalAppliedStereotypeProperty.g:6556:28: ( ( (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName ) ) )
- // InternalAppliedStereotypeProperty.g:6557:1: ( (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName ) )
- {
- // InternalAppliedStereotypeProperty.g:6557:1: ( (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:6558:1: (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:6558:1: (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName )
- // InternalAppliedStereotypeProperty.g:6559: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"
- // InternalAppliedStereotypeProperty.g:6583:1: entryRuleThisExpression returns [EObject current=null] : iv_ruleThisExpression= ruleThisExpression EOF ;
- public final EObject entryRuleThisExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleThisExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:6584:2: (iv_ruleThisExpression= ruleThisExpression EOF )
- // InternalAppliedStereotypeProperty.g:6585: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"
- // InternalAppliedStereotypeProperty.g:6592: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 {
- // InternalAppliedStereotypeProperty.g:6595:28: ( ( ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) ) | ( () otherlv_4= 'this' ) ) )
- // InternalAppliedStereotypeProperty.g:6596:1: ( ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) ) | ( () otherlv_4= 'this' ) )
- {
- // InternalAppliedStereotypeProperty.g:6596:1: ( ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) ) | ( () otherlv_4= 'this' ) )
- int alt128=2;
- int LA128_0 = input.LA(1);
-
- if ( (LA128_0==62) ) {
- int LA128_1 = input.LA(2);
-
- if ( (LA128_1==17) ) {
- alt128=1;
- }
- else if ( (LA128_1==EOF||LA128_1==15||(LA128_1>=18 && LA128_1<=19)||LA128_1==21||LA128_1==23||LA128_1==27||LA128_1==33||(LA128_1>=37 && LA128_1<=38)||LA128_1==46||(LA128_1>=52 && LA128_1<=54)||LA128_1==60||(LA128_1>=70 && LA128_1<=71)||(LA128_1>=74 && LA128_1<=75)||(LA128_1>=77 && LA128_1<=104)||(LA128_1>=118 && LA128_1<=119)) ) {
- alt128=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 128, 1, input);
-
- throw nvae;
- }
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 128, 0, input);
-
- throw nvae;
- }
- switch (alt128) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:6596:2: ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) )
- {
- // InternalAppliedStereotypeProperty.g:6596:2: ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) )
- // InternalAppliedStereotypeProperty.g:6596:3: () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) )
- {
- // InternalAppliedStereotypeProperty.g:6596:3: ()
- // InternalAppliedStereotypeProperty.g:6597:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElement(
- grammarAccess.getThisExpressionAccess().getFeatureInvocationExpressionAction_0_0(),
- current);
-
- }
-
- }
-
- otherlv_1=(Token)match(input,62,FOLLOW_44); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getThisExpressionAccess().getThisKeyword_0_1());
-
- }
- // InternalAppliedStereotypeProperty.g:6609:1: ( (lv_tuple_2_0= ruleTuple ) )
- // InternalAppliedStereotypeProperty.g:6610:1: (lv_tuple_2_0= ruleTuple )
- {
- // InternalAppliedStereotypeProperty.g:6610:1: (lv_tuple_2_0= ruleTuple )
- // InternalAppliedStereotypeProperty.g:6611: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 :
- // InternalAppliedStereotypeProperty.g:6628:6: ( () otherlv_4= 'this' )
- {
- // InternalAppliedStereotypeProperty.g:6628:6: ( () otherlv_4= 'this' )
- // InternalAppliedStereotypeProperty.g:6628:7: () otherlv_4= 'this'
- {
- // InternalAppliedStereotypeProperty.g:6628:7: ()
- // InternalAppliedStereotypeProperty.g:6629: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"
- // InternalAppliedStereotypeProperty.g:6649:1: entryRuleParenthesizedExpression returns [EObject current=null] : iv_ruleParenthesizedExpression= ruleParenthesizedExpression EOF ;
- public final EObject entryRuleParenthesizedExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleParenthesizedExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:6650:2: (iv_ruleParenthesizedExpression= ruleParenthesizedExpression EOF )
- // InternalAppliedStereotypeProperty.g:6651: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"
- // InternalAppliedStereotypeProperty.g:6658: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 {
- // InternalAppliedStereotypeProperty.g:6661:28: ( (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' ) )
- // InternalAppliedStereotypeProperty.g:6662:1: (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' )
- {
- // InternalAppliedStereotypeProperty.g:6662:1: (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' )
- // InternalAppliedStereotypeProperty.g:6662:3: otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')'
- {
- otherlv_0=(Token)match(input,17,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,18,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"
- // InternalAppliedStereotypeProperty.g:6690:1: entryRuleBehaviorInvocationExpression returns [EObject current=null] : iv_ruleBehaviorInvocationExpression= ruleBehaviorInvocationExpression EOF ;
- public final EObject entryRuleBehaviorInvocationExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBehaviorInvocationExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:6691:2: (iv_ruleBehaviorInvocationExpression= ruleBehaviorInvocationExpression EOF )
- // InternalAppliedStereotypeProperty.g:6692: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"
- // InternalAppliedStereotypeProperty.g:6699: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 {
- // InternalAppliedStereotypeProperty.g:6702:28: ( ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_tuple_1_0= ruleTuple ) ) ) )
- // InternalAppliedStereotypeProperty.g:6703:1: ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_tuple_1_0= ruleTuple ) ) )
- {
- // InternalAppliedStereotypeProperty.g:6703:1: ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_tuple_1_0= ruleTuple ) ) )
- // InternalAppliedStereotypeProperty.g:6703:2: ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_tuple_1_0= ruleTuple ) )
- {
- // InternalAppliedStereotypeProperty.g:6703:2: ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:6704:1: (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:6704:1: (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName )
- // InternalAppliedStereotypeProperty.g:6705:3: lv_target_0_0= rulePotentiallyAmbiguousQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBehaviorInvocationExpressionAccess().getTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_44);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:6721:2: ( (lv_tuple_1_0= ruleTuple ) )
- // InternalAppliedStereotypeProperty.g:6722:1: (lv_tuple_1_0= ruleTuple )
- {
- // InternalAppliedStereotypeProperty.g:6722:1: (lv_tuple_1_0= ruleTuple )
- // InternalAppliedStereotypeProperty.g:6723: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"
- // InternalAppliedStereotypeProperty.g:6747:1: entryRuleTuple returns [EObject current=null] : iv_ruleTuple= ruleTuple EOF ;
- public final EObject entryRuleTuple() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleTuple = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:6748:2: (iv_ruleTuple= ruleTuple EOF )
- // InternalAppliedStereotypeProperty.g:6749: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"
- // InternalAppliedStereotypeProperty.g:6756: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 {
- // InternalAppliedStereotypeProperty.g:6759:28: ( (otherlv_0= '(' (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' ) )
- // InternalAppliedStereotypeProperty.g:6760:1: (otherlv_0= '(' (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' )
- {
- // InternalAppliedStereotypeProperty.g:6760:1: (otherlv_0= '(' (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' )
- // InternalAppliedStereotypeProperty.g:6760:3: otherlv_0= '(' (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')'
- {
- otherlv_0=(Token)match(input,17,FOLLOW_70); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getTupleAccess().getLeftParenthesisKeyword_0());
-
- }
- // InternalAppliedStereotypeProperty.g:6764:1: (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList )
- int alt129=2;
- switch ( input.LA(1) ) {
- case RULE_ID:
- {
- int LA129_1 = input.LA(2);
-
- if ( (LA129_1==15||(LA129_1>=17 && LA129_1<=19)||LA129_1==21||(LA129_1>=26 && LA129_1<=27)||LA129_1==32||(LA129_1>=37 && LA129_1<=38)||LA129_1==52||LA129_1==60||(LA129_1>=70 && LA129_1<=71)||(LA129_1>=74 && LA129_1<=75)||(LA129_1>=77 && LA129_1<=104)) ) {
- alt129=2;
- }
- else if ( (LA129_1==20) ) {
- alt129=1;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 129, 1, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_UNRESTRICTED_NAME:
- {
- int LA129_2 = input.LA(2);
-
- if ( (LA129_2==15||(LA129_2>=17 && LA129_2<=19)||LA129_2==21||(LA129_2>=26 && LA129_2<=27)||LA129_2==32||(LA129_2>=37 && LA129_2<=38)||LA129_2==52||LA129_2==60||(LA129_2>=70 && LA129_2<=71)||(LA129_2>=74 && LA129_2<=75)||(LA129_2>=77 && LA129_2<=104)) ) {
- alt129=2;
- }
- else if ( (LA129_2==20) ) {
- alt129=1;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 129, 2, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_BOOLEAN_VALUE:
- case RULE_NATURAL_VALUE:
- case RULE_STRING:
- case 17:
- case 18:
- case 21:
- case 51:
- case 62:
- case 63:
- case 64:
- case 69:
- case 70:
- case 71:
- case 72:
- case 73:
- case 74:
- case 75:
- case 76:
- {
- alt129=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 129, 0, input);
-
- throw nvae;
- }
-
- switch (alt129) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:6765: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 :
- // InternalAppliedStereotypeProperty.g:6778: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,18,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"
- // InternalAppliedStereotypeProperty.g:6801:1: entryRulePositionalTupleExpressionList returns [EObject current=null] : iv_rulePositionalTupleExpressionList= rulePositionalTupleExpressionList EOF ;
- public final EObject entryRulePositionalTupleExpressionList() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePositionalTupleExpressionList = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:6802:2: (iv_rulePositionalTupleExpressionList= rulePositionalTupleExpressionList EOF )
- // InternalAppliedStereotypeProperty.g:6803: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"
- // InternalAppliedStereotypeProperty.g:6810: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 {
- // InternalAppliedStereotypeProperty.g:6813:28: ( ( () ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )? ) )
- // InternalAppliedStereotypeProperty.g:6814:1: ( () ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )? )
- {
- // InternalAppliedStereotypeProperty.g:6814:1: ( () ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )? )
- // InternalAppliedStereotypeProperty.g:6814:2: () ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )?
- {
- // InternalAppliedStereotypeProperty.g:6814:2: ()
- // InternalAppliedStereotypeProperty.g:6815:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElement(
- grammarAccess.getPositionalTupleExpressionListAccess().getPositionalTupleAction_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:6823:2: ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )?
- int alt131=2;
- int LA131_0 = input.LA(1);
-
- if ( ((LA131_0>=RULE_BOOLEAN_VALUE && LA131_0<=RULE_STRING)||(LA131_0>=RULE_ID && LA131_0<=RULE_UNRESTRICTED_NAME)||LA131_0==17||LA131_0==21||LA131_0==51||(LA131_0>=62 && LA131_0<=64)||(LA131_0>=69 && LA131_0<=76)) ) {
- alt131=1;
- }
- switch (alt131) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:6823:3: ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )*
- {
- // InternalAppliedStereotypeProperty.g:6823:3: ( (lv_expression_1_0= ruleExpression ) )
- // InternalAppliedStereotypeProperty.g:6824:1: (lv_expression_1_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:6824:1: (lv_expression_1_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:6825: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:6841:2: (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )*
- loop130:
- do {
- int alt130=2;
- int LA130_0 = input.LA(1);
-
- if ( (LA130_0==19) ) {
- alt130=1;
- }
-
-
- switch (alt130) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:6841:4: otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) )
- {
- otherlv_2=(Token)match(input,19,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getPositionalTupleExpressionListAccess().getCommaKeyword_1_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:6845:1: ( (lv_expression_3_0= ruleExpression ) )
- // InternalAppliedStereotypeProperty.g:6846:1: (lv_expression_3_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:6846:1: (lv_expression_3_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:6847: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 loop130;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePositionalTupleExpressionList"
-
-
- // $ANTLR start "entryRuleNamedTupleExpressionList"
- // InternalAppliedStereotypeProperty.g:6871:1: entryRuleNamedTupleExpressionList returns [EObject current=null] : iv_ruleNamedTupleExpressionList= ruleNamedTupleExpressionList EOF ;
- public final EObject entryRuleNamedTupleExpressionList() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNamedTupleExpressionList = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:6872:2: (iv_ruleNamedTupleExpressionList= ruleNamedTupleExpressionList EOF )
- // InternalAppliedStereotypeProperty.g:6873: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"
- // InternalAppliedStereotypeProperty.g:6880: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 {
- // InternalAppliedStereotypeProperty.g:6883:28: ( ( ( (lv_namedExpression_0_0= ruleNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )* ) )
- // InternalAppliedStereotypeProperty.g:6884:1: ( ( (lv_namedExpression_0_0= ruleNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:6884:1: ( ( (lv_namedExpression_0_0= ruleNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )* )
- // InternalAppliedStereotypeProperty.g:6884:2: ( (lv_namedExpression_0_0= ruleNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )*
- {
- // InternalAppliedStereotypeProperty.g:6884:2: ( (lv_namedExpression_0_0= ruleNamedExpression ) )
- // InternalAppliedStereotypeProperty.g:6885:1: (lv_namedExpression_0_0= ruleNamedExpression )
- {
- // InternalAppliedStereotypeProperty.g:6885:1: (lv_namedExpression_0_0= ruleNamedExpression )
- // InternalAppliedStereotypeProperty.g:6886: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:6902:2: (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )*
- loop132:
- do {
- int alt132=2;
- int LA132_0 = input.LA(1);
-
- if ( (LA132_0==19) ) {
- alt132=1;
- }
-
-
- switch (alt132) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:6902:4: otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) )
- {
- otherlv_1=(Token)match(input,19,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getNamedTupleExpressionListAccess().getCommaKeyword_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:6906:1: ( (lv_namedExpression_2_0= ruleNamedExpression ) )
- // InternalAppliedStereotypeProperty.g:6907:1: (lv_namedExpression_2_0= ruleNamedExpression )
- {
- // InternalAppliedStereotypeProperty.g:6907:1: (lv_namedExpression_2_0= ruleNamedExpression )
- // InternalAppliedStereotypeProperty.g:6908: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 loop132;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleNamedTupleExpressionList"
-
-
- // $ANTLR start "entryRuleNamedExpression"
- // InternalAppliedStereotypeProperty.g:6932:1: entryRuleNamedExpression returns [EObject current=null] : iv_ruleNamedExpression= ruleNamedExpression EOF ;
- public final EObject entryRuleNamedExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNamedExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:6933:2: (iv_ruleNamedExpression= ruleNamedExpression EOF )
- // InternalAppliedStereotypeProperty.g:6934: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"
- // InternalAppliedStereotypeProperty.g:6941: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 {
- // InternalAppliedStereotypeProperty.g:6944:28: ( ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_expression_2_0= ruleExpression ) ) ) )
- // InternalAppliedStereotypeProperty.g:6945:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_expression_2_0= ruleExpression ) ) )
- {
- // InternalAppliedStereotypeProperty.g:6945:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_expression_2_0= ruleExpression ) ) )
- // InternalAppliedStereotypeProperty.g:6945:2: ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_expression_2_0= ruleExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:6945:2: ( (lv_name_0_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:6946:1: (lv_name_0_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:6946:1: (lv_name_0_0= ruleName )
- // InternalAppliedStereotypeProperty.g:6947: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,20,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getNamedExpressionAccess().getEqualsSignGreaterThanSignKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:6967:1: ( (lv_expression_2_0= ruleExpression ) )
- // InternalAppliedStereotypeProperty.g:6968:1: (lv_expression_2_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:6968:1: (lv_expression_2_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:6969: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"
- // InternalAppliedStereotypeProperty.g:6993:1: entryRuleSuperInvocationExpression returns [EObject current=null] : iv_ruleSuperInvocationExpression= ruleSuperInvocationExpression EOF ;
- public final EObject entryRuleSuperInvocationExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSuperInvocationExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:6994:2: (iv_ruleSuperInvocationExpression= ruleSuperInvocationExpression EOF )
- // InternalAppliedStereotypeProperty.g:6995: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"
- // InternalAppliedStereotypeProperty.g:7002: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 {
- // InternalAppliedStereotypeProperty.g:7005:28: ( (otherlv_0= 'super' (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )? ( (lv_tuple_3_0= ruleTuple ) ) ) )
- // InternalAppliedStereotypeProperty.g:7006:1: (otherlv_0= 'super' (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )? ( (lv_tuple_3_0= ruleTuple ) ) )
- {
- // InternalAppliedStereotypeProperty.g:7006:1: (otherlv_0= 'super' (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )? ( (lv_tuple_3_0= ruleTuple ) ) )
- // InternalAppliedStereotypeProperty.g:7006: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());
-
- }
- // InternalAppliedStereotypeProperty.g:7010:1: (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )?
- int alt133=2;
- int LA133_0 = input.LA(1);
-
- if ( (LA133_0==27) ) {
- alt133=1;
- }
- switch (alt133) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:7010:3: otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) )
- {
- otherlv_1=(Token)match(input,27,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getSuperInvocationExpressionAccess().getFullStopKeyword_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:7014:1: ( (lv_target_2_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:7015:1: (lv_target_2_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:7015:1: (lv_target_2_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:7016:3: lv_target_2_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSuperInvocationExpressionAccess().getTargetQualifiedNameParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_44);
- 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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:7032:4: ( (lv_tuple_3_0= ruleTuple ) )
- // InternalAppliedStereotypeProperty.g:7033:1: (lv_tuple_3_0= ruleTuple )
- {
- // InternalAppliedStereotypeProperty.g:7033:1: (lv_tuple_3_0= ruleTuple )
- // InternalAppliedStereotypeProperty.g:7034: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"
- // InternalAppliedStereotypeProperty.g:7058:1: entryRuleInstanceCreationOrSequenceConstructionExpression returns [EObject current=null] : iv_ruleInstanceCreationOrSequenceConstructionExpression= ruleInstanceCreationOrSequenceConstructionExpression EOF ;
- public final EObject entryRuleInstanceCreationOrSequenceConstructionExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleInstanceCreationOrSequenceConstructionExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:7059:2: (iv_ruleInstanceCreationOrSequenceConstructionExpression= ruleInstanceCreationOrSequenceConstructionExpression EOF )
- // InternalAppliedStereotypeProperty.g:7060: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"
- // InternalAppliedStereotypeProperty.g:7067: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 {
- // InternalAppliedStereotypeProperty.g:7070: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 ) ) ) ) ) )
- // InternalAppliedStereotypeProperty.g:7071: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 ) ) ) ) )
- {
- // InternalAppliedStereotypeProperty.g:7071: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 ) ) ) ) )
- // InternalAppliedStereotypeProperty.g:7071: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());
-
- }
- // InternalAppliedStereotypeProperty.g:7075: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 alt136=2;
- int LA136_0 = input.LA(1);
-
- if ( (LA136_0==RULE_ID) ) {
- int LA136_1 = input.LA(2);
-
- if ( (synpred168_InternalAppliedStereotypeProperty()) ) {
- alt136=1;
- }
- else if ( (true) ) {
- alt136=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 136, 1, input);
-
- throw nvae;
- }
- }
- else if ( (LA136_0==RULE_UNRESTRICTED_NAME) ) {
- int LA136_2 = input.LA(2);
-
- if ( (synpred168_InternalAppliedStereotypeProperty()) ) {
- alt136=1;
- }
- else if ( (true) ) {
- alt136=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 136, 2, input);
-
- throw nvae;
- }
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 136, 0, input);
-
- throw nvae;
- }
- switch (alt136) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:7075:2: ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' )
- {
- // InternalAppliedStereotypeProperty.g:7075:2: ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' )
- // InternalAppliedStereotypeProperty.g:7075:3: () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}'
- {
- // InternalAppliedStereotypeProperty.g:7075:3: ()
- // InternalAppliedStereotypeProperty.g:7076:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElement(
- grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getSequenceConstructionExpressionAction_1_0_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:7084:2: ( (lv_typeName_2_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:7085:1: (lv_typeName_2_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:7085:1: (lv_typeName_2_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:7086: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:7102:2: ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )?
- int alt134=2;
- int LA134_0 = input.LA(1);
-
- if ( (LA134_0==52) ) {
- alt134=1;
- }
- switch (alt134) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:7103:1: (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator )
- {
- // InternalAppliedStereotypeProperty.g:7103:1: (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator )
- // InternalAppliedStereotypeProperty.g:7104:3: lv_hasMultiplicity_3_0= ruleMultiplicityIndicator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_1_0_2_0());
-
- }
- pushFollow(FOLLOW_19);
- 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,32,FOLLOW_73); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getLeftCurlyBracketKeyword_1_0_3());
-
- }
- // InternalAppliedStereotypeProperty.g:7124:1: ( (lv_elements_5_0= ruleSequenceElements ) )?
- int alt135=2;
- int LA135_0 = input.LA(1);
-
- if ( ((LA135_0>=RULE_BOOLEAN_VALUE && LA135_0<=RULE_STRING)||(LA135_0>=RULE_ID && LA135_0<=RULE_UNRESTRICTED_NAME)||LA135_0==17||LA135_0==21||LA135_0==32||LA135_0==51||(LA135_0>=62 && LA135_0<=64)||(LA135_0>=69 && LA135_0<=76)) ) {
- alt135=1;
- }
- switch (alt135) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:7125:1: (lv_elements_5_0= ruleSequenceElements )
- {
- // InternalAppliedStereotypeProperty.g:7125:1: (lv_elements_5_0= ruleSequenceElements )
- // InternalAppliedStereotypeProperty.g:7126: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,33,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_6, grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getRightCurlyBracketKeyword_1_0_5());
-
- }
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:7147:6: ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) )
- {
- // InternalAppliedStereotypeProperty.g:7147:6: ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) )
- // InternalAppliedStereotypeProperty.g:7147:7: () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) )
- {
- // InternalAppliedStereotypeProperty.g:7147:7: ()
- // InternalAppliedStereotypeProperty.g:7148:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElement(
- grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getInstanceCreationExpressionAction_1_1_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:7156:2: ( (lv_constructor_8_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:7157:1: (lv_constructor_8_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:7157:1: (lv_constructor_8_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:7158:3: lv_constructor_8_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getConstructorQualifiedNameParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_44);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:7174:2: ( (lv_tuple_9_0= ruleTuple ) )
- // InternalAppliedStereotypeProperty.g:7175:1: (lv_tuple_9_0= ruleTuple )
- {
- // InternalAppliedStereotypeProperty.g:7175:1: (lv_tuple_9_0= ruleTuple )
- // InternalAppliedStereotypeProperty.g:7176: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"
- // InternalAppliedStereotypeProperty.g:7200:1: entryRuleLinkOperationExpression returns [EObject current=null] : iv_ruleLinkOperationExpression= ruleLinkOperationExpression EOF ;
- public final EObject entryRuleLinkOperationExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleLinkOperationExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:7201:2: (iv_ruleLinkOperationExpression= ruleLinkOperationExpression EOF )
- // InternalAppliedStereotypeProperty.g:7202: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"
- // InternalAppliedStereotypeProperty.g:7209: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 {
- // InternalAppliedStereotypeProperty.g:7212:28: ( ( ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' ( (lv_operation_2_0= ruleLinkOperation ) ) ( (lv_tuple_3_0= ruleLinkOperationTuple ) ) ) )
- // InternalAppliedStereotypeProperty.g:7213:1: ( ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' ( (lv_operation_2_0= ruleLinkOperation ) ) ( (lv_tuple_3_0= ruleLinkOperationTuple ) ) )
- {
- // InternalAppliedStereotypeProperty.g:7213:1: ( ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' ( (lv_operation_2_0= ruleLinkOperation ) ) ( (lv_tuple_3_0= ruleLinkOperationTuple ) ) )
- // InternalAppliedStereotypeProperty.g:7213:2: ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' ( (lv_operation_2_0= ruleLinkOperation ) ) ( (lv_tuple_3_0= ruleLinkOperationTuple ) )
- {
- // InternalAppliedStereotypeProperty.g:7213:2: ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:7214:1: (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:7214:1: (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName )
- // InternalAppliedStereotypeProperty.g:7215:3: lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLinkOperationExpressionAccess().getAssociationNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_18);
- 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,27,FOLLOW_75); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getLinkOperationExpressionAccess().getFullStopKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:7235:1: ( (lv_operation_2_0= ruleLinkOperation ) )
- // InternalAppliedStereotypeProperty.g:7236:1: (lv_operation_2_0= ruleLinkOperation )
- {
- // InternalAppliedStereotypeProperty.g:7236:1: (lv_operation_2_0= ruleLinkOperation )
- // InternalAppliedStereotypeProperty.g:7237:3: lv_operation_2_0= ruleLinkOperation
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLinkOperationExpressionAccess().getOperationLinkOperationParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_44);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:7253:2: ( (lv_tuple_3_0= ruleLinkOperationTuple ) )
- // InternalAppliedStereotypeProperty.g:7254:1: (lv_tuple_3_0= ruleLinkOperationTuple )
- {
- // InternalAppliedStereotypeProperty.g:7254:1: (lv_tuple_3_0= ruleLinkOperationTuple )
- // InternalAppliedStereotypeProperty.g:7255: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"
- // InternalAppliedStereotypeProperty.g:7279:1: entryRuleLinkOperation returns [String current=null] : iv_ruleLinkOperation= ruleLinkOperation EOF ;
- public final String entryRuleLinkOperation() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleLinkOperation = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:7280:2: (iv_ruleLinkOperation= ruleLinkOperation EOF )
- // InternalAppliedStereotypeProperty.g:7281: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"
- // InternalAppliedStereotypeProperty.g:7288: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 {
- // InternalAppliedStereotypeProperty.g:7291:28: ( (kw= 'createLink' | kw= 'destroyLink' | kw= 'clearAssoc' ) )
- // InternalAppliedStereotypeProperty.g:7292:1: (kw= 'createLink' | kw= 'destroyLink' | kw= 'clearAssoc' )
- {
- // InternalAppliedStereotypeProperty.g:7292:1: (kw= 'createLink' | kw= 'destroyLink' | kw= 'clearAssoc' )
- int alt137=3;
- switch ( input.LA(1) ) {
- case 65:
- {
- alt137=1;
- }
- break;
- case 66:
- {
- alt137=2;
- }
- break;
- case 67:
- {
- alt137=3;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 137, 0, input);
-
- throw nvae;
- }
-
- switch (alt137) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:7293: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 :
- // InternalAppliedStereotypeProperty.g:7300: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 :
- // InternalAppliedStereotypeProperty.g:7307: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"
- // InternalAppliedStereotypeProperty.g:7320:1: entryRuleLinkOperationTuple returns [EObject current=null] : iv_ruleLinkOperationTuple= ruleLinkOperationTuple EOF ;
- public final EObject entryRuleLinkOperationTuple() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleLinkOperationTuple = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:7321:2: (iv_ruleLinkOperationTuple= ruleLinkOperationTuple EOF )
- // InternalAppliedStereotypeProperty.g:7322: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"
- // InternalAppliedStereotypeProperty.g:7329: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 {
- // InternalAppliedStereotypeProperty.g:7332:28: ( (otherlv_0= '(' (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' ) )
- // InternalAppliedStereotypeProperty.g:7333:1: (otherlv_0= '(' (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' )
- {
- // InternalAppliedStereotypeProperty.g:7333:1: (otherlv_0= '(' (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' )
- // InternalAppliedStereotypeProperty.g:7333:3: otherlv_0= '(' (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')'
- {
- otherlv_0=(Token)match(input,17,FOLLOW_70); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getLinkOperationTupleAccess().getLeftParenthesisKeyword_0());
-
- }
- // InternalAppliedStereotypeProperty.g:7337:1: (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList )
- int alt138=2;
- alt138 = dfa138.predict(input);
- switch (alt138) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:7338: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 :
- // InternalAppliedStereotypeProperty.g:7351: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,18,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"
- // InternalAppliedStereotypeProperty.g:7374:1: entryRuleIndexedNamedTupleExpressionList returns [EObject current=null] : iv_ruleIndexedNamedTupleExpressionList= ruleIndexedNamedTupleExpressionList EOF ;
- public final EObject entryRuleIndexedNamedTupleExpressionList() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleIndexedNamedTupleExpressionList = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:7375:2: (iv_ruleIndexedNamedTupleExpressionList= ruleIndexedNamedTupleExpressionList EOF )
- // InternalAppliedStereotypeProperty.g:7376: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"
- // InternalAppliedStereotypeProperty.g:7383: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 {
- // InternalAppliedStereotypeProperty.g:7386:28: ( ( ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )* ) )
- // InternalAppliedStereotypeProperty.g:7387:1: ( ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:7387:1: ( ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )* )
- // InternalAppliedStereotypeProperty.g:7387:2: ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )*
- {
- // InternalAppliedStereotypeProperty.g:7387:2: ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) )
- // InternalAppliedStereotypeProperty.g:7388:1: (lv_namedExpression_0_0= ruleIndexedNamedExpression )
- {
- // InternalAppliedStereotypeProperty.g:7388:1: (lv_namedExpression_0_0= ruleIndexedNamedExpression )
- // InternalAppliedStereotypeProperty.g:7389: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:7405:2: (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )*
- loop139:
- do {
- int alt139=2;
- int LA139_0 = input.LA(1);
-
- if ( (LA139_0==19) ) {
- alt139=1;
- }
-
-
- switch (alt139) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:7405:4: otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) )
- {
- otherlv_1=(Token)match(input,19,FOLLOW_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getIndexedNamedTupleExpressionListAccess().getCommaKeyword_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:7409:1: ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) )
- // InternalAppliedStereotypeProperty.g:7410:1: (lv_namedExpression_2_0= ruleIndexedNamedExpression )
- {
- // InternalAppliedStereotypeProperty.g:7410:1: (lv_namedExpression_2_0= ruleIndexedNamedExpression )
- // InternalAppliedStereotypeProperty.g:7411: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 loop139;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleIndexedNamedTupleExpressionList"
-
-
- // $ANTLR start "entryRuleIndexedNamedExpression"
- // InternalAppliedStereotypeProperty.g:7435:1: entryRuleIndexedNamedExpression returns [EObject current=null] : iv_ruleIndexedNamedExpression= ruleIndexedNamedExpression EOF ;
- public final EObject entryRuleIndexedNamedExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleIndexedNamedExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:7436:2: (iv_ruleIndexedNamedExpression= ruleIndexedNamedExpression EOF )
- // InternalAppliedStereotypeProperty.g:7437: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"
- // InternalAppliedStereotypeProperty.g:7444: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 {
- // InternalAppliedStereotypeProperty.g:7447:28: ( ( ( (lv_name_0_0= ruleName ) ) ( (lv_index_1_0= ruleIndex ) )? otherlv_2= '=>' ( (lv_expression_3_0= ruleExpression ) ) ) )
- // InternalAppliedStereotypeProperty.g:7448:1: ( ( (lv_name_0_0= ruleName ) ) ( (lv_index_1_0= ruleIndex ) )? otherlv_2= '=>' ( (lv_expression_3_0= ruleExpression ) ) )
- {
- // InternalAppliedStereotypeProperty.g:7448:1: ( ( (lv_name_0_0= ruleName ) ) ( (lv_index_1_0= ruleIndex ) )? otherlv_2= '=>' ( (lv_expression_3_0= ruleExpression ) ) )
- // InternalAppliedStereotypeProperty.g:7448:2: ( (lv_name_0_0= ruleName ) ) ( (lv_index_1_0= ruleIndex ) )? otherlv_2= '=>' ( (lv_expression_3_0= ruleExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:7448:2: ( (lv_name_0_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:7449:1: (lv_name_0_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:7449:1: (lv_name_0_0= ruleName )
- // InternalAppliedStereotypeProperty.g:7450: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:7466:2: ( (lv_index_1_0= ruleIndex ) )?
- int alt140=2;
- int LA140_0 = input.LA(1);
-
- if ( (LA140_0==52) ) {
- alt140=1;
- }
- switch (alt140) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:7467:1: (lv_index_1_0= ruleIndex )
- {
- // InternalAppliedStereotypeProperty.g:7467:1: (lv_index_1_0= ruleIndex )
- // InternalAppliedStereotypeProperty.g:7468: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,20,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getIndexedNamedExpressionAccess().getEqualsSignGreaterThanSignKeyword_2());
-
- }
- // InternalAppliedStereotypeProperty.g:7488:1: ( (lv_expression_3_0= ruleExpression ) )
- // InternalAppliedStereotypeProperty.g:7489:1: (lv_expression_3_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:7489:1: (lv_expression_3_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:7490: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"
- // InternalAppliedStereotypeProperty.g:7514:1: entryRuleClassExtentExpression returns [EObject current=null] : iv_ruleClassExtentExpression= ruleClassExtentExpression EOF ;
- public final EObject entryRuleClassExtentExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassExtentExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:7515:2: (iv_ruleClassExtentExpression= ruleClassExtentExpression EOF )
- // InternalAppliedStereotypeProperty.g:7516: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"
- // InternalAppliedStereotypeProperty.g:7523: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 {
- // InternalAppliedStereotypeProperty.g:7526:28: ( ( ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' otherlv_2= 'allInstances' otherlv_3= '(' otherlv_4= ')' ) )
- // InternalAppliedStereotypeProperty.g:7527:1: ( ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' otherlv_2= 'allInstances' otherlv_3= '(' otherlv_4= ')' )
- {
- // InternalAppliedStereotypeProperty.g:7527:1: ( ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' otherlv_2= 'allInstances' otherlv_3= '(' otherlv_4= ')' )
- // InternalAppliedStereotypeProperty.g:7527:2: ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' otherlv_2= 'allInstances' otherlv_3= '(' otherlv_4= ')'
- {
- // InternalAppliedStereotypeProperty.g:7527:2: ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:7528:1: (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:7528:1: (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName )
- // InternalAppliedStereotypeProperty.g:7529:3: lv_className_0_0= rulePotentiallyAmbiguousQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassExtentExpressionAccess().getClassNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_18);
- 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,27,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_44); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getClassExtentExpressionAccess().getAllInstancesKeyword_2());
-
- }
- otherlv_3=(Token)match(input,17,FOLLOW_6); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getClassExtentExpressionAccess().getLeftParenthesisKeyword_3());
-
- }
- otherlv_4=(Token)match(input,18,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"
- // InternalAppliedStereotypeProperty.g:7569:1: entryRuleSequenceConstructionExpression returns [EObject current=null] : iv_ruleSequenceConstructionExpression= ruleSequenceConstructionExpression EOF ;
- public final EObject entryRuleSequenceConstructionExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSequenceConstructionExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:7570:2: (iv_ruleSequenceConstructionExpression= ruleSequenceConstructionExpression EOF )
- // InternalAppliedStereotypeProperty.g:7571: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"
- // InternalAppliedStereotypeProperty.g:7578: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 {
- // InternalAppliedStereotypeProperty.g:7581: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' ) ) ) )
- // InternalAppliedStereotypeProperty.g:7582: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' ) ) )
- {
- // InternalAppliedStereotypeProperty.g:7582: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 alt144=2;
- int LA144_0 = input.LA(1);
-
- if ( ((LA144_0>=RULE_ID && LA144_0<=RULE_UNRESTRICTED_NAME)||LA144_0==51) ) {
- alt144=1;
- }
- else if ( (LA144_0==69) ) {
- alt144=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 144, 0, input);
-
- throw nvae;
- }
- switch (alt144) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:7582: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= '}' )
- {
- // InternalAppliedStereotypeProperty.g:7582: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= '}' )
- // InternalAppliedStereotypeProperty.g:7582: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= '}'
- {
- // InternalAppliedStereotypeProperty.g:7582:3: ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) )
- int alt141=2;
- int LA141_0 = input.LA(1);
-
- if ( (LA141_0==51) ) {
- alt141=1;
- }
- else if ( ((LA141_0>=RULE_ID && LA141_0<=RULE_UNRESTRICTED_NAME)) ) {
- alt141=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 141, 0, input);
-
- throw nvae;
- }
- switch (alt141) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:7582:4: ( (lv_isAny_0_0= 'any' ) )
- {
- // InternalAppliedStereotypeProperty.g:7582:4: ( (lv_isAny_0_0= 'any' ) )
- // InternalAppliedStereotypeProperty.g:7583:1: (lv_isAny_0_0= 'any' )
- {
- // InternalAppliedStereotypeProperty.g:7583:1: (lv_isAny_0_0= 'any' )
- // InternalAppliedStereotypeProperty.g:7584: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 :
- // InternalAppliedStereotypeProperty.g:7598:6: ( (lv_typeName_1_0= ruleQualifiedName ) )
- {
- // InternalAppliedStereotypeProperty.g:7598:6: ( (lv_typeName_1_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:7599:1: (lv_typeName_1_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:7599:1: (lv_typeName_1_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:7600: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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:7616:3: ( (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator ) )?
- int alt142=2;
- int LA142_0 = input.LA(1);
-
- if ( (LA142_0==52) ) {
- alt142=1;
- }
- switch (alt142) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:7617:1: (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator )
- {
- // InternalAppliedStereotypeProperty.g:7617:1: (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator )
- // InternalAppliedStereotypeProperty.g:7618:3: lv_hasMultiplicity_2_0= ruleMultiplicityIndicator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceConstructionExpressionAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_0());
-
- }
- pushFollow(FOLLOW_19);
- 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,32,FOLLOW_73); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getSequenceConstructionExpressionAccess().getLeftCurlyBracketKeyword_0_2());
-
- }
- // InternalAppliedStereotypeProperty.g:7638:1: ( (lv_elements_4_0= ruleSequenceElements ) )?
- int alt143=2;
- int LA143_0 = input.LA(1);
-
- if ( ((LA143_0>=RULE_BOOLEAN_VALUE && LA143_0<=RULE_STRING)||(LA143_0>=RULE_ID && LA143_0<=RULE_UNRESTRICTED_NAME)||LA143_0==17||LA143_0==21||LA143_0==32||LA143_0==51||(LA143_0>=62 && LA143_0<=64)||(LA143_0>=69 && LA143_0<=76)) ) {
- alt143=1;
- }
- switch (alt143) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:7639:1: (lv_elements_4_0= ruleSequenceElements )
- {
- // InternalAppliedStereotypeProperty.g:7639:1: (lv_elements_4_0= ruleSequenceElements )
- // InternalAppliedStereotypeProperty.g:7640: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,33,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getSequenceConstructionExpressionAccess().getRightCurlyBracketKeyword_0_4());
-
- }
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:7661:6: ( (lv_hasMultiplicity_6_0= 'null' ) )
- {
- // InternalAppliedStereotypeProperty.g:7661:6: ( (lv_hasMultiplicity_6_0= 'null' ) )
- // InternalAppliedStereotypeProperty.g:7662:1: (lv_hasMultiplicity_6_0= 'null' )
- {
- // InternalAppliedStereotypeProperty.g:7662:1: (lv_hasMultiplicity_6_0= 'null' )
- // InternalAppliedStereotypeProperty.g:7663: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"
- // InternalAppliedStereotypeProperty.g:7684:1: entryRuleMultiplicityIndicator returns [String current=null] : iv_ruleMultiplicityIndicator= ruleMultiplicityIndicator EOF ;
- public final String entryRuleMultiplicityIndicator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleMultiplicityIndicator = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:7685:2: (iv_ruleMultiplicityIndicator= ruleMultiplicityIndicator EOF )
- // InternalAppliedStereotypeProperty.g:7686: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"
- // InternalAppliedStereotypeProperty.g:7693:1: ruleMultiplicityIndicator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '[' kw= ']' ) ;
- public final AntlrDatatypeRuleToken ruleMultiplicityIndicator() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAppliedStereotypeProperty.g:7696:28: ( (kw= '[' kw= ']' ) )
- // InternalAppliedStereotypeProperty.g:7697:1: (kw= '[' kw= ']' )
- {
- // InternalAppliedStereotypeProperty.g:7697:1: (kw= '[' kw= ']' )
- // InternalAppliedStereotypeProperty.g:7698: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"
- // InternalAppliedStereotypeProperty.g:7717:1: entryRuleSequenceElements returns [EObject current=null] : iv_ruleSequenceElements= ruleSequenceElements EOF ;
- public final EObject entryRuleSequenceElements() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSequenceElements = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:7718:2: (iv_ruleSequenceElements= ruleSequenceElements EOF )
- // InternalAppliedStereotypeProperty.g:7719: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"
- // InternalAppliedStereotypeProperty.g:7726: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 {
- // InternalAppliedStereotypeProperty.g:7729:28: ( (this_SequenceRange_0= ruleSequenceRange | this_SequenceExpressionList_1= ruleSequenceExpressionList ) )
- // InternalAppliedStereotypeProperty.g:7730:1: (this_SequenceRange_0= ruleSequenceRange | this_SequenceExpressionList_1= ruleSequenceExpressionList )
- {
- // InternalAppliedStereotypeProperty.g:7730:1: (this_SequenceRange_0= ruleSequenceRange | this_SequenceExpressionList_1= ruleSequenceExpressionList )
- int alt145=2;
- alt145 = dfa145.predict(input);
- switch (alt145) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:7731: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 :
- // InternalAppliedStereotypeProperty.g:7744: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"
- // InternalAppliedStereotypeProperty.g:7763:1: entryRuleSequenceRange returns [EObject current=null] : iv_ruleSequenceRange= ruleSequenceRange EOF ;
- public final EObject entryRuleSequenceRange() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSequenceRange = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:7764:2: (iv_ruleSequenceRange= ruleSequenceRange EOF )
- // InternalAppliedStereotypeProperty.g:7765: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"
- // InternalAppliedStereotypeProperty.g:7772: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 {
- // InternalAppliedStereotypeProperty.g:7775:28: ( ( ( (lv_rangeLower_0_0= ruleExpression ) ) otherlv_1= '..' ( (lv_rangeUpper_2_0= ruleExpression ) ) ) )
- // InternalAppliedStereotypeProperty.g:7776:1: ( ( (lv_rangeLower_0_0= ruleExpression ) ) otherlv_1= '..' ( (lv_rangeUpper_2_0= ruleExpression ) ) )
- {
- // InternalAppliedStereotypeProperty.g:7776:1: ( ( (lv_rangeLower_0_0= ruleExpression ) ) otherlv_1= '..' ( (lv_rangeUpper_2_0= ruleExpression ) ) )
- // InternalAppliedStereotypeProperty.g:7776:2: ( (lv_rangeLower_0_0= ruleExpression ) ) otherlv_1= '..' ( (lv_rangeUpper_2_0= ruleExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:7776:2: ( (lv_rangeLower_0_0= ruleExpression ) )
- // InternalAppliedStereotypeProperty.g:7777:1: (lv_rangeLower_0_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:7777:1: (lv_rangeLower_0_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:7778: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());
-
- }
- // InternalAppliedStereotypeProperty.g:7798:1: ( (lv_rangeUpper_2_0= ruleExpression ) )
- // InternalAppliedStereotypeProperty.g:7799:1: (lv_rangeUpper_2_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:7799:1: (lv_rangeUpper_2_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:7800: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"
- // InternalAppliedStereotypeProperty.g:7824:1: entryRuleSequenceExpressionList returns [EObject current=null] : iv_ruleSequenceExpressionList= ruleSequenceExpressionList EOF ;
- public final EObject entryRuleSequenceExpressionList() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSequenceExpressionList = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:7825:2: (iv_ruleSequenceExpressionList= ruleSequenceExpressionList EOF )
- // InternalAppliedStereotypeProperty.g:7826: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"
- // InternalAppliedStereotypeProperty.g:7833: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 {
- // InternalAppliedStereotypeProperty.g:7836:28: ( ( ( (lv_element_0_0= ruleSequenceElement ) ) (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )* (otherlv_3= ',' )? ) )
- // InternalAppliedStereotypeProperty.g:7837:1: ( ( (lv_element_0_0= ruleSequenceElement ) ) (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )* (otherlv_3= ',' )? )
- {
- // InternalAppliedStereotypeProperty.g:7837:1: ( ( (lv_element_0_0= ruleSequenceElement ) ) (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )* (otherlv_3= ',' )? )
- // InternalAppliedStereotypeProperty.g:7837:2: ( (lv_element_0_0= ruleSequenceElement ) ) (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )* (otherlv_3= ',' )?
- {
- // InternalAppliedStereotypeProperty.g:7837:2: ( (lv_element_0_0= ruleSequenceElement ) )
- // InternalAppliedStereotypeProperty.g:7838:1: (lv_element_0_0= ruleSequenceElement )
- {
- // InternalAppliedStereotypeProperty.g:7838:1: (lv_element_0_0= ruleSequenceElement )
- // InternalAppliedStereotypeProperty.g:7839: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:7855:2: (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )*
- loop146:
- do {
- int alt146=2;
- int LA146_0 = input.LA(1);
-
- if ( (LA146_0==19) ) {
- int LA146_1 = input.LA(2);
-
- if ( ((LA146_1>=RULE_BOOLEAN_VALUE && LA146_1<=RULE_STRING)||(LA146_1>=RULE_ID && LA146_1<=RULE_UNRESTRICTED_NAME)||LA146_1==17||LA146_1==21||LA146_1==32||LA146_1==51||(LA146_1>=62 && LA146_1<=64)||(LA146_1>=69 && LA146_1<=76)) ) {
- alt146=1;
- }
-
-
- }
-
-
- switch (alt146) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:7855:4: otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) )
- {
- otherlv_1=(Token)match(input,19,FOLLOW_3); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getSequenceExpressionListAccess().getCommaKeyword_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:7859:1: ( (lv_element_2_0= ruleSequenceElement ) )
- // InternalAppliedStereotypeProperty.g:7860:1: (lv_element_2_0= ruleSequenceElement )
- {
- // InternalAppliedStereotypeProperty.g:7860:1: (lv_element_2_0= ruleSequenceElement )
- // InternalAppliedStereotypeProperty.g:7861: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 loop146;
- }
- } while (true);
-
- // InternalAppliedStereotypeProperty.g:7877:4: (otherlv_3= ',' )?
- int alt147=2;
- int LA147_0 = input.LA(1);
-
- if ( (LA147_0==19) ) {
- alt147=1;
- }
- switch (alt147) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:7877:6: otherlv_3= ','
- {
- otherlv_3=(Token)match(input,19,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"
- // InternalAppliedStereotypeProperty.g:7889:1: entryRuleSequenceElement returns [EObject current=null] : iv_ruleSequenceElement= ruleSequenceElement EOF ;
- public final EObject entryRuleSequenceElement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSequenceElement = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:7890:2: (iv_ruleSequenceElement= ruleSequenceElement EOF )
- // InternalAppliedStereotypeProperty.g:7891: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"
- // InternalAppliedStereotypeProperty.g:7898: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 {
- // InternalAppliedStereotypeProperty.g:7901:28: ( (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression ) )
- // InternalAppliedStereotypeProperty.g:7902:1: (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression )
- {
- // InternalAppliedStereotypeProperty.g:7902:1: (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression )
- int alt148=2;
- switch ( input.LA(1) ) {
- case RULE_BOOLEAN_VALUE:
- case RULE_NATURAL_VALUE:
- case RULE_STRING:
- case RULE_ID:
- case RULE_UNRESTRICTED_NAME:
- case 17:
- case 21:
- case 51:
- case 62:
- case 63:
- case 69:
- case 70:
- case 71:
- case 72:
- case 73:
- case 74:
- case 75:
- case 76:
- {
- alt148=1;
- }
- break;
- case 64:
- {
- int LA148_2 = input.LA(2);
-
- if ( ((LA148_2>=RULE_ID && LA148_2<=RULE_UNRESTRICTED_NAME)) ) {
- alt148=1;
- }
- else if ( (LA148_2==32) ) {
- alt148=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 148, 2, input);
-
- throw nvae;
- }
- }
- break;
- case 32:
- {
- alt148=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 148, 0, input);
-
- throw nvae;
- }
-
- switch (alt148) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:7903: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 :
- // InternalAppliedStereotypeProperty.g:7916: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"
- // InternalAppliedStereotypeProperty.g:7935:1: entryRuleSequenceInitializationExpression returns [EObject current=null] : iv_ruleSequenceInitializationExpression= ruleSequenceInitializationExpression EOF ;
- public final EObject entryRuleSequenceInitializationExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSequenceInitializationExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:7936:2: (iv_ruleSequenceInitializationExpression= ruleSequenceInitializationExpression EOF )
- // InternalAppliedStereotypeProperty.g:7937: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"
- // InternalAppliedStereotypeProperty.g:7944: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 {
- // InternalAppliedStereotypeProperty.g:7947:28: ( ( (otherlv_0= 'new' )? otherlv_1= '{' ( (lv_elements_2_0= ruleSequenceElements ) ) otherlv_3= '}' ) )
- // InternalAppliedStereotypeProperty.g:7948:1: ( (otherlv_0= 'new' )? otherlv_1= '{' ( (lv_elements_2_0= ruleSequenceElements ) ) otherlv_3= '}' )
- {
- // InternalAppliedStereotypeProperty.g:7948:1: ( (otherlv_0= 'new' )? otherlv_1= '{' ( (lv_elements_2_0= ruleSequenceElements ) ) otherlv_3= '}' )
- // InternalAppliedStereotypeProperty.g:7948:2: (otherlv_0= 'new' )? otherlv_1= '{' ( (lv_elements_2_0= ruleSequenceElements ) ) otherlv_3= '}'
- {
- // InternalAppliedStereotypeProperty.g:7948:2: (otherlv_0= 'new' )?
- int alt149=2;
- int LA149_0 = input.LA(1);
-
- if ( (LA149_0==64) ) {
- alt149=1;
- }
- switch (alt149) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:7948:4: otherlv_0= 'new'
- {
- otherlv_0=(Token)match(input,64,FOLLOW_19); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getSequenceInitializationExpressionAccess().getNewKeyword_0());
-
- }
-
- }
- break;
-
- }
-
- otherlv_1=(Token)match(input,32,FOLLOW_3); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getSequenceInitializationExpressionAccess().getLeftCurlyBracketKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:7956:1: ( (lv_elements_2_0= ruleSequenceElements ) )
- // InternalAppliedStereotypeProperty.g:7957:1: (lv_elements_2_0= ruleSequenceElements )
- {
- // InternalAppliedStereotypeProperty.g:7957:1: (lv_elements_2_0= ruleSequenceElements )
- // InternalAppliedStereotypeProperty.g:7958: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,33,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"
- // InternalAppliedStereotypeProperty.g:7986:1: entryRuleIndex returns [EObject current=null] : iv_ruleIndex= ruleIndex EOF ;
- public final EObject entryRuleIndex() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleIndex = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:7987:2: (iv_ruleIndex= ruleIndex EOF )
- // InternalAppliedStereotypeProperty.g:7988: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"
- // InternalAppliedStereotypeProperty.g:7995: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 {
- // InternalAppliedStereotypeProperty.g:7998:28: ( (otherlv_0= '[' this_Expression_1= ruleExpression otherlv_2= ']' ) )
- // InternalAppliedStereotypeProperty.g:7999:1: (otherlv_0= '[' this_Expression_1= ruleExpression otherlv_2= ']' )
- {
- // InternalAppliedStereotypeProperty.g:7999:1: (otherlv_0= '[' this_Expression_1= ruleExpression otherlv_2= ']' )
- // InternalAppliedStereotypeProperty.g:7999: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"
- // InternalAppliedStereotypeProperty.g:8027:1: entryRuleSequenceOperationOrReductionOrExpansionExpression returns [EObject current=null] : iv_ruleSequenceOperationOrReductionOrExpansionExpression= ruleSequenceOperationOrReductionOrExpansionExpression EOF ;
- public final EObject entryRuleSequenceOperationOrReductionOrExpansionExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSequenceOperationOrReductionOrExpansionExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:8028:2: (iv_ruleSequenceOperationOrReductionOrExpansionExpression= ruleSequenceOperationOrReductionOrExpansionExpression EOF )
- // InternalAppliedStereotypeProperty.g:8029: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"
- // InternalAppliedStereotypeProperty.g:8036: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 {
- // InternalAppliedStereotypeProperty.g:8039: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= ')' ) ) ) )
- // InternalAppliedStereotypeProperty.g:8040: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= ')' ) ) )
- {
- // InternalAppliedStereotypeProperty.g:8040: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= ')' ) ) )
- // InternalAppliedStereotypeProperty.g:8040: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= ')' ) )
- {
- // InternalAppliedStereotypeProperty.g:8040:2: ()
- // InternalAppliedStereotypeProperty.g:8041:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElement(
- grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getExtentOrExpressionAction_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:8049:2: ( (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:8050:1: (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:8050:1: (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName )
- // InternalAppliedStereotypeProperty.g:8051: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());
-
- }
- // InternalAppliedStereotypeProperty.g:8071: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 alt151=3;
- switch ( input.LA(1) ) {
- case RULE_ID:
- {
- int LA151_1 = input.LA(2);
-
- if ( (LA151_1==17||(LA151_1>=26 && LA151_1<=27)||LA151_1==37) ) {
- alt151=1;
- }
- else if ( ((LA151_1>=RULE_ID && LA151_1<=RULE_UNRESTRICTED_NAME)) ) {
- alt151=3;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 151, 1, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_UNRESTRICTED_NAME:
- {
- alt151=1;
- }
- break;
- case 61:
- {
- alt151=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 151, 0, input);
-
- throw nvae;
- }
-
- switch (alt151) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:8071:2: ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) )
- {
- // InternalAppliedStereotypeProperty.g:8071:2: ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) )
- // InternalAppliedStereotypeProperty.g:8071:3: () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) )
- {
- // InternalAppliedStereotypeProperty.g:8071:3: ()
- // InternalAppliedStereotypeProperty.g:8072:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceOperationExpressionPrimaryAction_3_0_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:8080:2: ( (lv_operation_4_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:8081:1: (lv_operation_4_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:8081:1: (lv_operation_4_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:8082:3: lv_operation_4_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getOperationQualifiedNameParserRuleCall_3_0_1_0());
-
- }
- pushFollow(FOLLOW_44);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:8098:2: ( (lv_tuple_5_0= ruleTuple ) )
- // InternalAppliedStereotypeProperty.g:8099:1: (lv_tuple_5_0= ruleTuple )
- {
- // InternalAppliedStereotypeProperty.g:8099:1: (lv_tuple_5_0= ruleTuple )
- // InternalAppliedStereotypeProperty.g:8100: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 :
- // InternalAppliedStereotypeProperty.g:8117:6: ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) )
- {
- // InternalAppliedStereotypeProperty.g:8117:6: ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) )
- // InternalAppliedStereotypeProperty.g:8117:7: () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) )
- {
- // InternalAppliedStereotypeProperty.g:8117:7: ()
- // InternalAppliedStereotypeProperty.g:8118: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());
-
- }
- // InternalAppliedStereotypeProperty.g:8130:1: ( (lv_isOrdered_8_0= 'ordered' ) )?
- int alt150=2;
- int LA150_0 = input.LA(1);
-
- if ( (LA150_0==55) ) {
- alt150=1;
- }
- switch (alt150) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:8131:1: (lv_isOrdered_8_0= 'ordered' )
- {
- // InternalAppliedStereotypeProperty.g:8131:1: (lv_isOrdered_8_0= 'ordered' )
- // InternalAppliedStereotypeProperty.g:8132: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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:8145:3: ( (lv_behaviorName_9_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:8146:1: (lv_behaviorName_9_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:8146:1: (lv_behaviorName_9_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:8147: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 :
- // InternalAppliedStereotypeProperty.g:8164:6: ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' )
- {
- // InternalAppliedStereotypeProperty.g:8164:6: ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' )
- // InternalAppliedStereotypeProperty.g:8164:7: () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')'
- {
- // InternalAppliedStereotypeProperty.g:8164:7: ()
- // InternalAppliedStereotypeProperty.g:8165:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceExpansionExpressionPrimaryAction_3_2_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:8173:2: ( (lv_operation_11_0= RULE_ID ) )
- // InternalAppliedStereotypeProperty.g:8174:1: (lv_operation_11_0= RULE_ID )
- {
- // InternalAppliedStereotypeProperty.g:8174:1: (lv_operation_11_0= RULE_ID )
- // InternalAppliedStereotypeProperty.g:8175:3: lv_operation_11_0= RULE_ID
- {
- lv_operation_11_0=(Token)match(input,RULE_ID,FOLLOW_14); 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");
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:8191:2: ( (lv_variable_12_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:8192:1: (lv_variable_12_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:8192:1: (lv_variable_12_0= ruleName )
- // InternalAppliedStereotypeProperty.g:8193:3: lv_variable_12_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getVariableNameParserRuleCall_3_2_2_0());
-
- }
- pushFollow(FOLLOW_44);
- 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,17,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_13, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getLeftParenthesisKeyword_3_2_3());
-
- }
- // InternalAppliedStereotypeProperty.g:8213:1: ( (lv_argument_14_0= ruleExpression ) )
- // InternalAppliedStereotypeProperty.g:8214:1: (lv_argument_14_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:8214:1: (lv_argument_14_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:8215: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,18,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"
- // InternalAppliedStereotypeProperty.g:8243:1: entryRulePrefixExpression returns [EObject current=null] : iv_rulePrefixExpression= rulePrefixExpression EOF ;
- public final EObject entryRulePrefixExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePrefixExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:8244:2: (iv_rulePrefixExpression= rulePrefixExpression EOF )
- // InternalAppliedStereotypeProperty.g:8245: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"
- // InternalAppliedStereotypeProperty.g:8252: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 {
- // InternalAppliedStereotypeProperty.g:8255:28: ( ( ( (lv_operator_0_0= ruleAffixOperator ) ) ( (lv_operand_1_0= ruleLeftHandSide ) ) ) )
- // InternalAppliedStereotypeProperty.g:8256:1: ( ( (lv_operator_0_0= ruleAffixOperator ) ) ( (lv_operand_1_0= ruleLeftHandSide ) ) )
- {
- // InternalAppliedStereotypeProperty.g:8256:1: ( ( (lv_operator_0_0= ruleAffixOperator ) ) ( (lv_operand_1_0= ruleLeftHandSide ) ) )
- // InternalAppliedStereotypeProperty.g:8256:2: ( (lv_operator_0_0= ruleAffixOperator ) ) ( (lv_operand_1_0= ruleLeftHandSide ) )
- {
- // InternalAppliedStereotypeProperty.g:8256:2: ( (lv_operator_0_0= ruleAffixOperator ) )
- // InternalAppliedStereotypeProperty.g:8257:1: (lv_operator_0_0= ruleAffixOperator )
- {
- // InternalAppliedStereotypeProperty.g:8257:1: (lv_operator_0_0= ruleAffixOperator )
- // InternalAppliedStereotypeProperty.g:8258: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:8274:2: ( (lv_operand_1_0= ruleLeftHandSide ) )
- // InternalAppliedStereotypeProperty.g:8275:1: (lv_operand_1_0= ruleLeftHandSide )
- {
- // InternalAppliedStereotypeProperty.g:8275:1: (lv_operand_1_0= ruleLeftHandSide )
- // InternalAppliedStereotypeProperty.g:8276: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"
- // InternalAppliedStereotypeProperty.g:8300:1: entryRuleAffixOperator returns [String current=null] : iv_ruleAffixOperator= ruleAffixOperator EOF ;
- public final String entryRuleAffixOperator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleAffixOperator = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:8301:2: (iv_ruleAffixOperator= ruleAffixOperator EOF )
- // InternalAppliedStereotypeProperty.g:8302: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"
- // InternalAppliedStereotypeProperty.g:8309:1: ruleAffixOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '++' | kw= '--' ) ;
- public final AntlrDatatypeRuleToken ruleAffixOperator() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAppliedStereotypeProperty.g:8312:28: ( (kw= '++' | kw= '--' ) )
- // InternalAppliedStereotypeProperty.g:8313:1: (kw= '++' | kw= '--' )
- {
- // InternalAppliedStereotypeProperty.g:8313:1: (kw= '++' | kw= '--' )
- int alt152=2;
- int LA152_0 = input.LA(1);
-
- if ( (LA152_0==70) ) {
- alt152=1;
- }
- else if ( (LA152_0==71) ) {
- alt152=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 152, 0, input);
-
- throw nvae;
- }
- switch (alt152) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:8314: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 :
- // InternalAppliedStereotypeProperty.g:8321: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"
- // InternalAppliedStereotypeProperty.g:8334:1: entryRuleUnaryExpression returns [EObject current=null] : iv_ruleUnaryExpression= ruleUnaryExpression EOF ;
- public final EObject entryRuleUnaryExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleUnaryExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:8335:2: (iv_ruleUnaryExpression= ruleUnaryExpression EOF )
- // InternalAppliedStereotypeProperty.g:8336: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"
- // InternalAppliedStereotypeProperty.g:8343: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 {
- // InternalAppliedStereotypeProperty.g:8346:28: ( (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_NonPostfixNonCastUnaryExpression_1= ruleNonPostfixNonCastUnaryExpression ) )
- // InternalAppliedStereotypeProperty.g:8347:1: (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_NonPostfixNonCastUnaryExpression_1= ruleNonPostfixNonCastUnaryExpression )
- {
- // InternalAppliedStereotypeProperty.g:8347:1: (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_NonPostfixNonCastUnaryExpression_1= ruleNonPostfixNonCastUnaryExpression )
- int alt153=2;
- int LA153_0 = input.LA(1);
-
- if ( ((LA153_0>=RULE_BOOLEAN_VALUE && LA153_0<=RULE_STRING)||(LA153_0>=RULE_ID && LA153_0<=RULE_UNRESTRICTED_NAME)||LA153_0==17||LA153_0==21||LA153_0==51||(LA153_0>=62 && LA153_0<=64)||LA153_0==69) ) {
- alt153=1;
- }
- else if ( ((LA153_0>=70 && LA153_0<=76)) ) {
- alt153=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 153, 0, input);
-
- throw nvae;
- }
- switch (alt153) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:8348: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 :
- // InternalAppliedStereotypeProperty.g:8361: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"
- // InternalAppliedStereotypeProperty.g:8380:1: entryRulePostfixOrCastExpression returns [EObject current=null] : iv_rulePostfixOrCastExpression= rulePostfixOrCastExpression EOF ;
- public final EObject entryRulePostfixOrCastExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePostfixOrCastExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:8381:2: (iv_rulePostfixOrCastExpression= rulePostfixOrCastExpression EOF )
- // InternalAppliedStereotypeProperty.g:8382: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"
- // InternalAppliedStereotypeProperty.g:8389: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 {
- // InternalAppliedStereotypeProperty.g:8392:28: ( (this_PostfixExpression_0= rulePostfixExpression | this_CastExpression_1= ruleCastExpression | this_PrimaryExpression_2= rulePrimaryExpression ) )
- // InternalAppliedStereotypeProperty.g:8393:1: (this_PostfixExpression_0= rulePostfixExpression | this_CastExpression_1= ruleCastExpression | this_PrimaryExpression_2= rulePrimaryExpression )
- {
- // InternalAppliedStereotypeProperty.g:8393:1: (this_PostfixExpression_0= rulePostfixExpression | this_CastExpression_1= ruleCastExpression | this_PrimaryExpression_2= rulePrimaryExpression )
- int alt154=3;
- alt154 = dfa154.predict(input);
- switch (alt154) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:8394: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 :
- // InternalAppliedStereotypeProperty.g:8407: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 :
- // InternalAppliedStereotypeProperty.g:8420: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"
- // InternalAppliedStereotypeProperty.g:8439:1: entryRulePostfixExpression returns [EObject current=null] : iv_rulePostfixExpression= rulePostfixExpression EOF ;
- public final EObject entryRulePostfixExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePostfixExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:8440:2: (iv_rulePostfixExpression= rulePostfixExpression EOF )
- // InternalAppliedStereotypeProperty.g:8441: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"
- // InternalAppliedStereotypeProperty.g:8448: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 {
- // InternalAppliedStereotypeProperty.g:8451:28: ( ( ( (lv_operand_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAffixOperator ) ) ) )
- // InternalAppliedStereotypeProperty.g:8452:1: ( ( (lv_operand_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAffixOperator ) ) )
- {
- // InternalAppliedStereotypeProperty.g:8452:1: ( ( (lv_operand_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAffixOperator ) ) )
- // InternalAppliedStereotypeProperty.g:8452:2: ( (lv_operand_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAffixOperator ) )
- {
- // InternalAppliedStereotypeProperty.g:8452:2: ( (lv_operand_0_0= ruleLeftHandSide ) )
- // InternalAppliedStereotypeProperty.g:8453:1: (lv_operand_0_0= ruleLeftHandSide )
- {
- // InternalAppliedStereotypeProperty.g:8453:1: (lv_operand_0_0= ruleLeftHandSide )
- // InternalAppliedStereotypeProperty.g:8454: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:8470:2: ( (lv_operator_1_0= ruleAffixOperator ) )
- // InternalAppliedStereotypeProperty.g:8471:1: (lv_operator_1_0= ruleAffixOperator )
- {
- // InternalAppliedStereotypeProperty.g:8471:1: (lv_operator_1_0= ruleAffixOperator )
- // InternalAppliedStereotypeProperty.g:8472: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"
- // InternalAppliedStereotypeProperty.g:8496:1: entryRuleNonPostfixNonCastUnaryExpression returns [EObject current=null] : iv_ruleNonPostfixNonCastUnaryExpression= ruleNonPostfixNonCastUnaryExpression EOF ;
- public final EObject entryRuleNonPostfixNonCastUnaryExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNonPostfixNonCastUnaryExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:8497:2: (iv_ruleNonPostfixNonCastUnaryExpression= ruleNonPostfixNonCastUnaryExpression EOF )
- // InternalAppliedStereotypeProperty.g:8498: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"
- // InternalAppliedStereotypeProperty.g:8505: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 {
- // InternalAppliedStereotypeProperty.g:8508:28: ( (this_PrefixExpression_0= rulePrefixExpression | this_NumericUnaryExpression_1= ruleNumericUnaryExpression | this_BooleanUnaryExpression_2= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_3= ruleBitStringUnaryExpression | this_IsolationExpression_4= ruleIsolationExpression ) )
- // InternalAppliedStereotypeProperty.g:8509:1: (this_PrefixExpression_0= rulePrefixExpression | this_NumericUnaryExpression_1= ruleNumericUnaryExpression | this_BooleanUnaryExpression_2= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_3= ruleBitStringUnaryExpression | this_IsolationExpression_4= ruleIsolationExpression )
- {
- // InternalAppliedStereotypeProperty.g:8509:1: (this_PrefixExpression_0= rulePrefixExpression | this_NumericUnaryExpression_1= ruleNumericUnaryExpression | this_BooleanUnaryExpression_2= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_3= ruleBitStringUnaryExpression | this_IsolationExpression_4= ruleIsolationExpression )
- int alt155=5;
- switch ( input.LA(1) ) {
- case 70:
- case 71:
- {
- alt155=1;
- }
- break;
- case 74:
- case 75:
- {
- alt155=2;
- }
- break;
- case 72:
- {
- alt155=3;
- }
- break;
- case 73:
- {
- alt155=4;
- }
- break;
- case 76:
- {
- alt155=5;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 155, 0, input);
-
- throw nvae;
- }
-
- switch (alt155) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:8510: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 :
- // InternalAppliedStereotypeProperty.g:8523: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 :
- // InternalAppliedStereotypeProperty.g:8536: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 :
- // InternalAppliedStereotypeProperty.g:8549: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 :
- // InternalAppliedStereotypeProperty.g:8562: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"
- // InternalAppliedStereotypeProperty.g:8581:1: entryRuleBooleanUnaryExpression returns [EObject current=null] : iv_ruleBooleanUnaryExpression= ruleBooleanUnaryExpression EOF ;
- public final EObject entryRuleBooleanUnaryExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBooleanUnaryExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:8582:2: (iv_ruleBooleanUnaryExpression= ruleBooleanUnaryExpression EOF )
- // InternalAppliedStereotypeProperty.g:8583: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"
- // InternalAppliedStereotypeProperty.g:8590: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 {
- // InternalAppliedStereotypeProperty.g:8593:28: ( ( ( (lv_operator_0_0= '!' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) )
- // InternalAppliedStereotypeProperty.g:8594:1: ( ( (lv_operator_0_0= '!' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
- {
- // InternalAppliedStereotypeProperty.g:8594:1: ( ( (lv_operator_0_0= '!' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
- // InternalAppliedStereotypeProperty.g:8594:2: ( (lv_operator_0_0= '!' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:8594:2: ( (lv_operator_0_0= '!' ) )
- // InternalAppliedStereotypeProperty.g:8595:1: (lv_operator_0_0= '!' )
- {
- // InternalAppliedStereotypeProperty.g:8595:1: (lv_operator_0_0= '!' )
- // InternalAppliedStereotypeProperty.g:8596: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, "!");
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:8609:2: ( (lv_operand_1_0= ruleUnaryExpression ) )
- // InternalAppliedStereotypeProperty.g:8610:1: (lv_operand_1_0= ruleUnaryExpression )
- {
- // InternalAppliedStereotypeProperty.g:8610:1: (lv_operand_1_0= ruleUnaryExpression )
- // InternalAppliedStereotypeProperty.g:8611: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"
- // InternalAppliedStereotypeProperty.g:8635:1: entryRuleBitStringUnaryExpression returns [EObject current=null] : iv_ruleBitStringUnaryExpression= ruleBitStringUnaryExpression EOF ;
- public final EObject entryRuleBitStringUnaryExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBitStringUnaryExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:8636:2: (iv_ruleBitStringUnaryExpression= ruleBitStringUnaryExpression EOF )
- // InternalAppliedStereotypeProperty.g:8637: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"
- // InternalAppliedStereotypeProperty.g:8644: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 {
- // InternalAppliedStereotypeProperty.g:8647:28: ( ( ( (lv_operator_0_0= '~' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) )
- // InternalAppliedStereotypeProperty.g:8648:1: ( ( (lv_operator_0_0= '~' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
- {
- // InternalAppliedStereotypeProperty.g:8648:1: ( ( (lv_operator_0_0= '~' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
- // InternalAppliedStereotypeProperty.g:8648:2: ( (lv_operator_0_0= '~' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:8648:2: ( (lv_operator_0_0= '~' ) )
- // InternalAppliedStereotypeProperty.g:8649:1: (lv_operator_0_0= '~' )
- {
- // InternalAppliedStereotypeProperty.g:8649:1: (lv_operator_0_0= '~' )
- // InternalAppliedStereotypeProperty.g:8650: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, "~");
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:8663:2: ( (lv_operand_1_0= ruleUnaryExpression ) )
- // InternalAppliedStereotypeProperty.g:8664:1: (lv_operand_1_0= ruleUnaryExpression )
- {
- // InternalAppliedStereotypeProperty.g:8664:1: (lv_operand_1_0= ruleUnaryExpression )
- // InternalAppliedStereotypeProperty.g:8665: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"
- // InternalAppliedStereotypeProperty.g:8689:1: entryRuleNumericUnaryExpression returns [EObject current=null] : iv_ruleNumericUnaryExpression= ruleNumericUnaryExpression EOF ;
- public final EObject entryRuleNumericUnaryExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNumericUnaryExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:8690:2: (iv_ruleNumericUnaryExpression= ruleNumericUnaryExpression EOF )
- // InternalAppliedStereotypeProperty.g:8691: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"
- // InternalAppliedStereotypeProperty.g:8698: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 {
- // InternalAppliedStereotypeProperty.g:8701:28: ( ( ( (lv_operator_0_0= ruleNumericUnaryOperator ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) )
- // InternalAppliedStereotypeProperty.g:8702:1: ( ( (lv_operator_0_0= ruleNumericUnaryOperator ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
- {
- // InternalAppliedStereotypeProperty.g:8702:1: ( ( (lv_operator_0_0= ruleNumericUnaryOperator ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
- // InternalAppliedStereotypeProperty.g:8702:2: ( (lv_operator_0_0= ruleNumericUnaryOperator ) ) ( (lv_operand_1_0= ruleUnaryExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:8702:2: ( (lv_operator_0_0= ruleNumericUnaryOperator ) )
- // InternalAppliedStereotypeProperty.g:8703:1: (lv_operator_0_0= ruleNumericUnaryOperator )
- {
- // InternalAppliedStereotypeProperty.g:8703:1: (lv_operator_0_0= ruleNumericUnaryOperator )
- // InternalAppliedStereotypeProperty.g:8704: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:8720:2: ( (lv_operand_1_0= ruleUnaryExpression ) )
- // InternalAppliedStereotypeProperty.g:8721:1: (lv_operand_1_0= ruleUnaryExpression )
- {
- // InternalAppliedStereotypeProperty.g:8721:1: (lv_operand_1_0= ruleUnaryExpression )
- // InternalAppliedStereotypeProperty.g:8722: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"
- // InternalAppliedStereotypeProperty.g:8746:1: entryRuleNumericUnaryOperator returns [String current=null] : iv_ruleNumericUnaryOperator= ruleNumericUnaryOperator EOF ;
- public final String entryRuleNumericUnaryOperator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleNumericUnaryOperator = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:8747:2: (iv_ruleNumericUnaryOperator= ruleNumericUnaryOperator EOF )
- // InternalAppliedStereotypeProperty.g:8748: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"
- // InternalAppliedStereotypeProperty.g:8755:1: ruleNumericUnaryOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+' | kw= '-' ) ;
- public final AntlrDatatypeRuleToken ruleNumericUnaryOperator() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAppliedStereotypeProperty.g:8758:28: ( (kw= '+' | kw= '-' ) )
- // InternalAppliedStereotypeProperty.g:8759:1: (kw= '+' | kw= '-' )
- {
- // InternalAppliedStereotypeProperty.g:8759:1: (kw= '+' | kw= '-' )
- int alt156=2;
- int LA156_0 = input.LA(1);
-
- if ( (LA156_0==74) ) {
- alt156=1;
- }
- else if ( (LA156_0==75) ) {
- 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 :
- // InternalAppliedStereotypeProperty.g:8760: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 :
- // InternalAppliedStereotypeProperty.g:8767: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"
- // InternalAppliedStereotypeProperty.g:8780:1: entryRuleIsolationExpression returns [EObject current=null] : iv_ruleIsolationExpression= ruleIsolationExpression EOF ;
- public final EObject entryRuleIsolationExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleIsolationExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:8781:2: (iv_ruleIsolationExpression= ruleIsolationExpression EOF )
- // InternalAppliedStereotypeProperty.g:8782: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"
- // InternalAppliedStereotypeProperty.g:8789: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 {
- // InternalAppliedStereotypeProperty.g:8792:28: ( ( ( (lv_operator_0_0= '$' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) )
- // InternalAppliedStereotypeProperty.g:8793:1: ( ( (lv_operator_0_0= '$' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
- {
- // InternalAppliedStereotypeProperty.g:8793:1: ( ( (lv_operator_0_0= '$' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
- // InternalAppliedStereotypeProperty.g:8793:2: ( (lv_operator_0_0= '$' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:8793:2: ( (lv_operator_0_0= '$' ) )
- // InternalAppliedStereotypeProperty.g:8794:1: (lv_operator_0_0= '$' )
- {
- // InternalAppliedStereotypeProperty.g:8794:1: (lv_operator_0_0= '$' )
- // InternalAppliedStereotypeProperty.g:8795: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, "$");
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:8808:2: ( (lv_operand_1_0= ruleUnaryExpression ) )
- // InternalAppliedStereotypeProperty.g:8809:1: (lv_operand_1_0= ruleUnaryExpression )
- {
- // InternalAppliedStereotypeProperty.g:8809:1: (lv_operand_1_0= ruleUnaryExpression )
- // InternalAppliedStereotypeProperty.g:8810: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"
- // InternalAppliedStereotypeProperty.g:8834:1: entryRuleCastExpression returns [EObject current=null] : iv_ruleCastExpression= ruleCastExpression EOF ;
- public final EObject entryRuleCastExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleCastExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:8835:2: (iv_ruleCastExpression= ruleCastExpression EOF )
- // InternalAppliedStereotypeProperty.g:8836: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"
- // InternalAppliedStereotypeProperty.g:8843: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 {
- // InternalAppliedStereotypeProperty.g:8846:28: ( (otherlv_0= '(' ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) ) otherlv_3= ')' ( (lv_operand_4_0= ruleCastCompletion ) ) ) )
- // InternalAppliedStereotypeProperty.g:8847:1: (otherlv_0= '(' ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) ) otherlv_3= ')' ( (lv_operand_4_0= ruleCastCompletion ) ) )
- {
- // InternalAppliedStereotypeProperty.g:8847:1: (otherlv_0= '(' ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) ) otherlv_3= ')' ( (lv_operand_4_0= ruleCastCompletion ) ) )
- // InternalAppliedStereotypeProperty.g:8847: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,17,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getCastExpressionAccess().getLeftParenthesisKeyword_0());
-
- }
- // InternalAppliedStereotypeProperty.g:8851:1: ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) )
- int alt157=2;
- int LA157_0 = input.LA(1);
-
- if ( (LA157_0==51) ) {
- alt157=1;
- }
- else if ( ((LA157_0>=RULE_ID && LA157_0<=RULE_UNRESTRICTED_NAME)) ) {
- 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 :
- // InternalAppliedStereotypeProperty.g:8851:2: ( (lv_isAny_1_0= 'any' ) )
- {
- // InternalAppliedStereotypeProperty.g:8851:2: ( (lv_isAny_1_0= 'any' ) )
- // InternalAppliedStereotypeProperty.g:8852:1: (lv_isAny_1_0= 'any' )
- {
- // InternalAppliedStereotypeProperty.g:8852:1: (lv_isAny_1_0= 'any' )
- // InternalAppliedStereotypeProperty.g:8853: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 :
- // InternalAppliedStereotypeProperty.g:8867:6: ( (lv_typeName_2_0= ruleQualifiedName ) )
- {
- // InternalAppliedStereotypeProperty.g:8867:6: ( (lv_typeName_2_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:8868:1: (lv_typeName_2_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:8868:1: (lv_typeName_2_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:8869: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,18,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getCastExpressionAccess().getRightParenthesisKeyword_2());
-
- }
- // InternalAppliedStereotypeProperty.g:8889:1: ( (lv_operand_4_0= ruleCastCompletion ) )
- // InternalAppliedStereotypeProperty.g:8890:1: (lv_operand_4_0= ruleCastCompletion )
- {
- // InternalAppliedStereotypeProperty.g:8890:1: (lv_operand_4_0= ruleCastCompletion )
- // InternalAppliedStereotypeProperty.g:8891: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"
- // InternalAppliedStereotypeProperty.g:8915:1: entryRuleCastCompletion returns [EObject current=null] : iv_ruleCastCompletion= ruleCastCompletion EOF ;
- public final EObject entryRuleCastCompletion() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleCastCompletion = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:8916:2: (iv_ruleCastCompletion= ruleCastCompletion EOF )
- // InternalAppliedStereotypeProperty.g:8917: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"
- // InternalAppliedStereotypeProperty.g:8924: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 {
- // InternalAppliedStereotypeProperty.g:8927:28: ( (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_BooleanUnaryExpression_1= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_2= ruleBitStringUnaryExpression | this_IsolationExpression_3= ruleIsolationExpression ) )
- // InternalAppliedStereotypeProperty.g:8928:1: (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_BooleanUnaryExpression_1= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_2= ruleBitStringUnaryExpression | this_IsolationExpression_3= ruleIsolationExpression )
- {
- // InternalAppliedStereotypeProperty.g:8928:1: (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_BooleanUnaryExpression_1= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_2= ruleBitStringUnaryExpression | this_IsolationExpression_3= ruleIsolationExpression )
- int alt158=4;
- switch ( input.LA(1) ) {
- case RULE_BOOLEAN_VALUE:
- case RULE_NATURAL_VALUE:
- case RULE_STRING:
- case RULE_ID:
- case RULE_UNRESTRICTED_NAME:
- case 17:
- case 21:
- case 51:
- case 62:
- case 63:
- case 64:
- case 69:
- {
- alt158=1;
- }
- break;
- case 72:
- {
- alt158=2;
- }
- break;
- case 73:
- {
- alt158=3;
- }
- break;
- case 76:
- {
- alt158=4;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 158, 0, input);
-
- throw nvae;
- }
-
- switch (alt158) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:8929: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 :
- // InternalAppliedStereotypeProperty.g:8942: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 :
- // InternalAppliedStereotypeProperty.g:8955: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 :
- // InternalAppliedStereotypeProperty.g:8968: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"
- // InternalAppliedStereotypeProperty.g:8987:1: entryRuleMultiplicativeExpression returns [EObject current=null] : iv_ruleMultiplicativeExpression= ruleMultiplicativeExpression EOF ;
- public final EObject entryRuleMultiplicativeExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleMultiplicativeExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:8988:2: (iv_ruleMultiplicativeExpression= ruleMultiplicativeExpression EOF )
- // InternalAppliedStereotypeProperty.g:8989: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"
- // InternalAppliedStereotypeProperty.g:8996: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 {
- // InternalAppliedStereotypeProperty.g:8999:28: ( (this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )* ) )
- // InternalAppliedStereotypeProperty.g:9000:1: (this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:9000:1: (this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )* )
- // InternalAppliedStereotypeProperty.g:9001: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();
-
- }
- // InternalAppliedStereotypeProperty.g:9012:1: ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )*
- loop159:
- do {
- int alt159=2;
- int LA159_0 = input.LA(1);
-
- if ( (LA159_0==21||(LA159_0>=77 && LA159_0<=78)) ) {
- alt159=1;
- }
-
-
- switch (alt159) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:9012:2: () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:9012:2: ()
- // InternalAppliedStereotypeProperty.g:9013:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:9021:2: ( (lv_operator_2_0= ruleMultiplicativeOperator ) )
- // InternalAppliedStereotypeProperty.g:9022:1: (lv_operator_2_0= ruleMultiplicativeOperator )
- {
- // InternalAppliedStereotypeProperty.g:9022:1: (lv_operator_2_0= ruleMultiplicativeOperator )
- // InternalAppliedStereotypeProperty.g:9023: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:9039:2: ( (lv_operand2_3_0= ruleUnaryExpression ) )
- // InternalAppliedStereotypeProperty.g:9040:1: (lv_operand2_3_0= ruleUnaryExpression )
- {
- // InternalAppliedStereotypeProperty.g:9040:1: (lv_operand2_3_0= ruleUnaryExpression )
- // InternalAppliedStereotypeProperty.g:9041: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 loop159;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleMultiplicativeExpression"
-
-
- // $ANTLR start "entryRuleMultiplicativeOperator"
- // InternalAppliedStereotypeProperty.g:9065:1: entryRuleMultiplicativeOperator returns [String current=null] : iv_ruleMultiplicativeOperator= ruleMultiplicativeOperator EOF ;
- public final String entryRuleMultiplicativeOperator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleMultiplicativeOperator = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:9066:2: (iv_ruleMultiplicativeOperator= ruleMultiplicativeOperator EOF )
- // InternalAppliedStereotypeProperty.g:9067: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"
- // InternalAppliedStereotypeProperty.g:9074: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 {
- // InternalAppliedStereotypeProperty.g:9077:28: ( (kw= '*' | kw= '/' | kw= '%' ) )
- // InternalAppliedStereotypeProperty.g:9078:1: (kw= '*' | kw= '/' | kw= '%' )
- {
- // InternalAppliedStereotypeProperty.g:9078:1: (kw= '*' | kw= '/' | kw= '%' )
- int alt160=3;
- switch ( input.LA(1) ) {
- case 21:
- {
- alt160=1;
- }
- break;
- case 77:
- {
- alt160=2;
- }
- break;
- case 78:
- {
- alt160=3;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 160, 0, input);
-
- throw nvae;
- }
-
- switch (alt160) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:9079:2: kw= '*'
- {
- kw=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getMultiplicativeOperatorAccess().getAsteriskKeyword_0());
-
- }
-
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:9086: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 :
- // InternalAppliedStereotypeProperty.g:9093: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"
- // InternalAppliedStereotypeProperty.g:9106:1: entryRuleAdditiveExpression returns [EObject current=null] : iv_ruleAdditiveExpression= ruleAdditiveExpression EOF ;
- public final EObject entryRuleAdditiveExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAdditiveExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:9107:2: (iv_ruleAdditiveExpression= ruleAdditiveExpression EOF )
- // InternalAppliedStereotypeProperty.g:9108: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"
- // InternalAppliedStereotypeProperty.g:9115: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 {
- // InternalAppliedStereotypeProperty.g:9118:28: ( (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )* ) )
- // InternalAppliedStereotypeProperty.g:9119:1: (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:9119:1: (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )* )
- // InternalAppliedStereotypeProperty.g:9120: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();
-
- }
- // InternalAppliedStereotypeProperty.g:9131:1: ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )*
- loop161:
- do {
- int alt161=2;
- int LA161_0 = input.LA(1);
-
- if ( ((LA161_0>=74 && LA161_0<=75)) ) {
- alt161=1;
- }
-
-
- switch (alt161) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:9131:2: () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:9131:2: ()
- // InternalAppliedStereotypeProperty.g:9132:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:9140:2: ( (lv_operator_2_0= ruleAdditiveOperator ) )
- // InternalAppliedStereotypeProperty.g:9141:1: (lv_operator_2_0= ruleAdditiveOperator )
- {
- // InternalAppliedStereotypeProperty.g:9141:1: (lv_operator_2_0= ruleAdditiveOperator )
- // InternalAppliedStereotypeProperty.g:9142: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:9158:2: ( (lv_operand2_3_0= ruleMultiplicativeExpression ) )
- // InternalAppliedStereotypeProperty.g:9159:1: (lv_operand2_3_0= ruleMultiplicativeExpression )
- {
- // InternalAppliedStereotypeProperty.g:9159:1: (lv_operand2_3_0= ruleMultiplicativeExpression )
- // InternalAppliedStereotypeProperty.g:9160: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 loop161;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleAdditiveExpression"
-
-
- // $ANTLR start "entryRuleAdditiveOperator"
- // InternalAppliedStereotypeProperty.g:9184:1: entryRuleAdditiveOperator returns [String current=null] : iv_ruleAdditiveOperator= ruleAdditiveOperator EOF ;
- public final String entryRuleAdditiveOperator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleAdditiveOperator = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:9185:2: (iv_ruleAdditiveOperator= ruleAdditiveOperator EOF )
- // InternalAppliedStereotypeProperty.g:9186: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"
- // InternalAppliedStereotypeProperty.g:9193:1: ruleAdditiveOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+' | kw= '-' ) ;
- public final AntlrDatatypeRuleToken ruleAdditiveOperator() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAppliedStereotypeProperty.g:9196:28: ( (kw= '+' | kw= '-' ) )
- // InternalAppliedStereotypeProperty.g:9197:1: (kw= '+' | kw= '-' )
- {
- // InternalAppliedStereotypeProperty.g:9197:1: (kw= '+' | kw= '-' )
- int alt162=2;
- int LA162_0 = input.LA(1);
-
- if ( (LA162_0==74) ) {
- alt162=1;
- }
- else if ( (LA162_0==75) ) {
- alt162=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 162, 0, input);
-
- throw nvae;
- }
- switch (alt162) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:9198: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 :
- // InternalAppliedStereotypeProperty.g:9205: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"
- // InternalAppliedStereotypeProperty.g:9218:1: entryRuleShiftExpression returns [EObject current=null] : iv_ruleShiftExpression= ruleShiftExpression EOF ;
- public final EObject entryRuleShiftExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleShiftExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:9219:2: (iv_ruleShiftExpression= ruleShiftExpression EOF )
- // InternalAppliedStereotypeProperty.g:9220: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"
- // InternalAppliedStereotypeProperty.g:9227: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 {
- // InternalAppliedStereotypeProperty.g:9230:28: ( (this_AdditiveExpression_0= ruleAdditiveExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )* ) )
- // InternalAppliedStereotypeProperty.g:9231:1: (this_AdditiveExpression_0= ruleAdditiveExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:9231:1: (this_AdditiveExpression_0= ruleAdditiveExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )* )
- // InternalAppliedStereotypeProperty.g:9232: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();
-
- }
- // InternalAppliedStereotypeProperty.g:9243:1: ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )*
- loop163:
- do {
- int alt163=2;
- int LA163_0 = input.LA(1);
-
- if ( ((LA163_0>=79 && LA163_0<=81)) ) {
- alt163=1;
- }
-
-
- switch (alt163) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:9243:2: () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:9243:2: ()
- // InternalAppliedStereotypeProperty.g:9244:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:9252:2: ( (lv_operator_2_0= ruleShiftOperator ) )
- // InternalAppliedStereotypeProperty.g:9253:1: (lv_operator_2_0= ruleShiftOperator )
- {
- // InternalAppliedStereotypeProperty.g:9253:1: (lv_operator_2_0= ruleShiftOperator )
- // InternalAppliedStereotypeProperty.g:9254: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:9270:2: ( (lv_operand2_3_0= ruleAdditiveExpression ) )
- // InternalAppliedStereotypeProperty.g:9271:1: (lv_operand2_3_0= ruleAdditiveExpression )
- {
- // InternalAppliedStereotypeProperty.g:9271:1: (lv_operand2_3_0= ruleAdditiveExpression )
- // InternalAppliedStereotypeProperty.g:9272: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 loop163;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleShiftExpression"
-
-
- // $ANTLR start "entryRuleShiftOperator"
- // InternalAppliedStereotypeProperty.g:9296:1: entryRuleShiftOperator returns [String current=null] : iv_ruleShiftOperator= ruleShiftOperator EOF ;
- public final String entryRuleShiftOperator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleShiftOperator = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:9297:2: (iv_ruleShiftOperator= ruleShiftOperator EOF )
- // InternalAppliedStereotypeProperty.g:9298: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"
- // InternalAppliedStereotypeProperty.g:9305: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 {
- // InternalAppliedStereotypeProperty.g:9308:28: ( (kw= '<<' | kw= '>>' | kw= '>>>' ) )
- // InternalAppliedStereotypeProperty.g:9309:1: (kw= '<<' | kw= '>>' | kw= '>>>' )
- {
- // InternalAppliedStereotypeProperty.g:9309:1: (kw= '<<' | kw= '>>' | kw= '>>>' )
- int alt164=3;
- switch ( input.LA(1) ) {
- case 79:
- {
- alt164=1;
- }
- break;
- case 80:
- {
- alt164=2;
- }
- break;
- case 81:
- {
- 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 :
- // InternalAppliedStereotypeProperty.g:9310: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 :
- // InternalAppliedStereotypeProperty.g:9317: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 :
- // InternalAppliedStereotypeProperty.g:9324: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"
- // InternalAppliedStereotypeProperty.g:9337:1: entryRuleRelationalExpression returns [EObject current=null] : iv_ruleRelationalExpression= ruleRelationalExpression EOF ;
- public final EObject entryRuleRelationalExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleRelationalExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:9338:2: (iv_ruleRelationalExpression= ruleRelationalExpression EOF )
- // InternalAppliedStereotypeProperty.g:9339: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"
- // InternalAppliedStereotypeProperty.g:9346: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 {
- // InternalAppliedStereotypeProperty.g:9349:28: ( (this_ShiftExpression_0= ruleShiftExpression ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )? ) )
- // InternalAppliedStereotypeProperty.g:9350:1: (this_ShiftExpression_0= ruleShiftExpression ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )? )
- {
- // InternalAppliedStereotypeProperty.g:9350:1: (this_ShiftExpression_0= ruleShiftExpression ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )? )
- // InternalAppliedStereotypeProperty.g:9351: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();
-
- }
- // InternalAppliedStereotypeProperty.g:9362:1: ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )?
- int alt165=2;
- int LA165_0 = input.LA(1);
-
- if ( ((LA165_0>=37 && LA165_0<=38)||(LA165_0>=82 && LA165_0<=83)) ) {
- alt165=1;
- }
- switch (alt165) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:9362:2: () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:9362:2: ()
- // InternalAppliedStereotypeProperty.g:9363:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:9371:2: ( (lv_operator_2_0= ruleRelationalOperator ) )
- // InternalAppliedStereotypeProperty.g:9372:1: (lv_operator_2_0= ruleRelationalOperator )
- {
- // InternalAppliedStereotypeProperty.g:9372:1: (lv_operator_2_0= ruleRelationalOperator )
- // InternalAppliedStereotypeProperty.g:9373: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:9389:2: ( (lv_operand2_3_0= ruleShiftExpression ) )
- // InternalAppliedStereotypeProperty.g:9390:1: (lv_operand2_3_0= ruleShiftExpression )
- {
- // InternalAppliedStereotypeProperty.g:9390:1: (lv_operand2_3_0= ruleShiftExpression )
- // InternalAppliedStereotypeProperty.g:9391: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"
- // InternalAppliedStereotypeProperty.g:9415:1: entryRuleRelationalOperator returns [String current=null] : iv_ruleRelationalOperator= ruleRelationalOperator EOF ;
- public final String entryRuleRelationalOperator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleRelationalOperator = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:9416:2: (iv_ruleRelationalOperator= ruleRelationalOperator EOF )
- // InternalAppliedStereotypeProperty.g:9417: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"
- // InternalAppliedStereotypeProperty.g:9424: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 {
- // InternalAppliedStereotypeProperty.g:9427:28: ( (kw= '<' | kw= '>' | kw= '<=' | kw= '>=' ) )
- // InternalAppliedStereotypeProperty.g:9428:1: (kw= '<' | kw= '>' | kw= '<=' | kw= '>=' )
- {
- // InternalAppliedStereotypeProperty.g:9428:1: (kw= '<' | kw= '>' | kw= '<=' | kw= '>=' )
- int alt166=4;
- switch ( input.LA(1) ) {
- case 37:
- {
- alt166=1;
- }
- break;
- case 38:
- {
- alt166=2;
- }
- break;
- case 82:
- {
- alt166=3;
- }
- break;
- case 83:
- {
- alt166=4;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 166, 0, input);
-
- throw nvae;
- }
-
- switch (alt166) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:9429: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().getLessThanSignKeyword_0());
-
- }
-
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:9436:2: kw= '>'
- {
- kw=(Token)match(input,38,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getRelationalOperatorAccess().getGreaterThanSignKeyword_1());
-
- }
-
- }
- break;
- case 3 :
- // InternalAppliedStereotypeProperty.g:9443: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 :
- // InternalAppliedStereotypeProperty.g:9450: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"
- // InternalAppliedStereotypeProperty.g:9463:1: entryRuleClassificationExpression returns [EObject current=null] : iv_ruleClassificationExpression= ruleClassificationExpression EOF ;
- public final EObject entryRuleClassificationExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassificationExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:9464:2: (iv_ruleClassificationExpression= ruleClassificationExpression EOF )
- // InternalAppliedStereotypeProperty.g:9465: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"
- // InternalAppliedStereotypeProperty.g:9472: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 {
- // InternalAppliedStereotypeProperty.g:9475:28: ( (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )? ) )
- // InternalAppliedStereotypeProperty.g:9476:1: (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )? )
- {
- // InternalAppliedStereotypeProperty.g:9476:1: (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )? )
- // InternalAppliedStereotypeProperty.g:9477: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();
-
- }
- // InternalAppliedStereotypeProperty.g:9488:1: ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )?
- int alt167=2;
- int LA167_0 = input.LA(1);
-
- if ( ((LA167_0>=84 && LA167_0<=85)) ) {
- alt167=1;
- }
- switch (alt167) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:9488:2: () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) )
- {
- // InternalAppliedStereotypeProperty.g:9488:2: ()
- // InternalAppliedStereotypeProperty.g:9489:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:9497:2: ( (lv_operator_2_0= ruleClassificationOperator ) )
- // InternalAppliedStereotypeProperty.g:9498:1: (lv_operator_2_0= ruleClassificationOperator )
- {
- // InternalAppliedStereotypeProperty.g:9498:1: (lv_operator_2_0= ruleClassificationOperator )
- // InternalAppliedStereotypeProperty.g:9499: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:9515:2: ( (lv_typeName_3_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:9516:1: (lv_typeName_3_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:9516:1: (lv_typeName_3_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:9517: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"
- // InternalAppliedStereotypeProperty.g:9541:1: entryRuleClassificationOperator returns [String current=null] : iv_ruleClassificationOperator= ruleClassificationOperator EOF ;
- public final String entryRuleClassificationOperator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleClassificationOperator = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:9542:2: (iv_ruleClassificationOperator= ruleClassificationOperator EOF )
- // InternalAppliedStereotypeProperty.g:9543: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"
- // InternalAppliedStereotypeProperty.g:9550: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 {
- // InternalAppliedStereotypeProperty.g:9553:28: ( (kw= 'instanceof' | kw= 'hastype' ) )
- // InternalAppliedStereotypeProperty.g:9554:1: (kw= 'instanceof' | kw= 'hastype' )
- {
- // InternalAppliedStereotypeProperty.g:9554:1: (kw= 'instanceof' | kw= 'hastype' )
- int alt168=2;
- int LA168_0 = input.LA(1);
-
- if ( (LA168_0==84) ) {
- alt168=1;
- }
- else if ( (LA168_0==85) ) {
- alt168=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 168, 0, input);
-
- throw nvae;
- }
- switch (alt168) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:9555: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 :
- // InternalAppliedStereotypeProperty.g:9562: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"
- // InternalAppliedStereotypeProperty.g:9575:1: entryRuleEqualityExpression returns [EObject current=null] : iv_ruleEqualityExpression= ruleEqualityExpression EOF ;
- public final EObject entryRuleEqualityExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleEqualityExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:9576:2: (iv_ruleEqualityExpression= ruleEqualityExpression EOF )
- // InternalAppliedStereotypeProperty.g:9577: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"
- // InternalAppliedStereotypeProperty.g:9584: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 {
- // InternalAppliedStereotypeProperty.g:9587:28: ( (this_ClassificationExpression_0= ruleClassificationExpression ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )* ) )
- // InternalAppliedStereotypeProperty.g:9588:1: (this_ClassificationExpression_0= ruleClassificationExpression ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:9588:1: (this_ClassificationExpression_0= ruleClassificationExpression ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )* )
- // InternalAppliedStereotypeProperty.g:9589: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();
-
- }
- // InternalAppliedStereotypeProperty.g:9600:1: ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )*
- loop169:
- do {
- int alt169=2;
- int LA169_0 = input.LA(1);
-
- if ( ((LA169_0>=86 && LA169_0<=87)) ) {
- alt169=1;
- }
-
-
- switch (alt169) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:9600:2: () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:9600:2: ()
- // InternalAppliedStereotypeProperty.g:9601:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:9609:2: ( (lv_operator_2_0= ruleEqualityOperator ) )
- // InternalAppliedStereotypeProperty.g:9610:1: (lv_operator_2_0= ruleEqualityOperator )
- {
- // InternalAppliedStereotypeProperty.g:9610:1: (lv_operator_2_0= ruleEqualityOperator )
- // InternalAppliedStereotypeProperty.g:9611: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:9627:2: ( (lv_operand2_3_0= ruleClassificationExpression ) )
- // InternalAppliedStereotypeProperty.g:9628:1: (lv_operand2_3_0= ruleClassificationExpression )
- {
- // InternalAppliedStereotypeProperty.g:9628:1: (lv_operand2_3_0= ruleClassificationExpression )
- // InternalAppliedStereotypeProperty.g:9629: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 loop169;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleEqualityExpression"
-
-
- // $ANTLR start "entryRuleEqualityOperator"
- // InternalAppliedStereotypeProperty.g:9653:1: entryRuleEqualityOperator returns [String current=null] : iv_ruleEqualityOperator= ruleEqualityOperator EOF ;
- public final String entryRuleEqualityOperator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleEqualityOperator = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:9654:2: (iv_ruleEqualityOperator= ruleEqualityOperator EOF )
- // InternalAppliedStereotypeProperty.g:9655: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"
- // InternalAppliedStereotypeProperty.g:9662:1: ruleEqualityOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '==' | kw= '!=' ) ;
- public final AntlrDatatypeRuleToken ruleEqualityOperator() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAppliedStereotypeProperty.g:9665:28: ( (kw= '==' | kw= '!=' ) )
- // InternalAppliedStereotypeProperty.g:9666:1: (kw= '==' | kw= '!=' )
- {
- // InternalAppliedStereotypeProperty.g:9666:1: (kw= '==' | kw= '!=' )
- int alt170=2;
- int LA170_0 = input.LA(1);
-
- if ( (LA170_0==86) ) {
- alt170=1;
- }
- else if ( (LA170_0==87) ) {
- alt170=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 170, 0, input);
-
- throw nvae;
- }
- switch (alt170) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:9667: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 :
- // InternalAppliedStereotypeProperty.g:9674: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"
- // InternalAppliedStereotypeProperty.g:9687:1: entryRuleAndExpression returns [EObject current=null] : iv_ruleAndExpression= ruleAndExpression EOF ;
- public final EObject entryRuleAndExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAndExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:9688:2: (iv_ruleAndExpression= ruleAndExpression EOF )
- // InternalAppliedStereotypeProperty.g:9689: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"
- // InternalAppliedStereotypeProperty.g:9696: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 {
- // InternalAppliedStereotypeProperty.g:9699:28: ( (this_EqualityExpression_0= ruleEqualityExpression ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )* ) )
- // InternalAppliedStereotypeProperty.g:9700:1: (this_EqualityExpression_0= ruleEqualityExpression ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:9700:1: (this_EqualityExpression_0= ruleEqualityExpression ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )* )
- // InternalAppliedStereotypeProperty.g:9701: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();
-
- }
- // InternalAppliedStereotypeProperty.g:9712:1: ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )*
- loop171:
- do {
- int alt171=2;
- int LA171_0 = input.LA(1);
-
- if ( (LA171_0==88) ) {
- alt171=1;
- }
-
-
- switch (alt171) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:9712:2: () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:9712:2: ()
- // InternalAppliedStereotypeProperty.g:9713:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:9721:2: ( (lv_operator_2_0= '&' ) )
- // InternalAppliedStereotypeProperty.g:9722:1: (lv_operator_2_0= '&' )
- {
- // InternalAppliedStereotypeProperty.g:9722:1: (lv_operator_2_0= '&' )
- // InternalAppliedStereotypeProperty.g:9723: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, "&");
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:9736:2: ( (lv_operand2_3_0= ruleEqualityExpression ) )
- // InternalAppliedStereotypeProperty.g:9737:1: (lv_operand2_3_0= ruleEqualityExpression )
- {
- // InternalAppliedStereotypeProperty.g:9737:1: (lv_operand2_3_0= ruleEqualityExpression )
- // InternalAppliedStereotypeProperty.g:9738: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 loop171;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleAndExpression"
-
-
- // $ANTLR start "entryRuleExclusiveOrExpression"
- // InternalAppliedStereotypeProperty.g:9762:1: entryRuleExclusiveOrExpression returns [EObject current=null] : iv_ruleExclusiveOrExpression= ruleExclusiveOrExpression EOF ;
- public final EObject entryRuleExclusiveOrExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleExclusiveOrExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:9763:2: (iv_ruleExclusiveOrExpression= ruleExclusiveOrExpression EOF )
- // InternalAppliedStereotypeProperty.g:9764: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"
- // InternalAppliedStereotypeProperty.g:9771: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 {
- // InternalAppliedStereotypeProperty.g:9774:28: ( (this_AndExpression_0= ruleAndExpression ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )* ) )
- // InternalAppliedStereotypeProperty.g:9775:1: (this_AndExpression_0= ruleAndExpression ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:9775:1: (this_AndExpression_0= ruleAndExpression ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )* )
- // InternalAppliedStereotypeProperty.g:9776: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();
-
- }
- // InternalAppliedStereotypeProperty.g:9787:1: ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )*
- loop172:
- do {
- int alt172=2;
- int LA172_0 = input.LA(1);
-
- if ( (LA172_0==89) ) {
- alt172=1;
- }
-
-
- switch (alt172) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:9787:2: () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:9787:2: ()
- // InternalAppliedStereotypeProperty.g:9788:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:9796:2: ( (lv_operator_2_0= '^' ) )
- // InternalAppliedStereotypeProperty.g:9797:1: (lv_operator_2_0= '^' )
- {
- // InternalAppliedStereotypeProperty.g:9797:1: (lv_operator_2_0= '^' )
- // InternalAppliedStereotypeProperty.g:9798: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, "^");
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:9811:2: ( (lv_operand2_3_0= ruleAndExpression ) )
- // InternalAppliedStereotypeProperty.g:9812:1: (lv_operand2_3_0= ruleAndExpression )
- {
- // InternalAppliedStereotypeProperty.g:9812:1: (lv_operand2_3_0= ruleAndExpression )
- // InternalAppliedStereotypeProperty.g:9813: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 loop172;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleExclusiveOrExpression"
-
-
- // $ANTLR start "entryRuleInclusiveOrExpression"
- // InternalAppliedStereotypeProperty.g:9837:1: entryRuleInclusiveOrExpression returns [EObject current=null] : iv_ruleInclusiveOrExpression= ruleInclusiveOrExpression EOF ;
- public final EObject entryRuleInclusiveOrExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleInclusiveOrExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:9838:2: (iv_ruleInclusiveOrExpression= ruleInclusiveOrExpression EOF )
- // InternalAppliedStereotypeProperty.g:9839: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"
- // InternalAppliedStereotypeProperty.g:9846: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 {
- // InternalAppliedStereotypeProperty.g:9849:28: ( (this_ExclusiveOrExpression_0= ruleExclusiveOrExpression ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )* ) )
- // InternalAppliedStereotypeProperty.g:9850:1: (this_ExclusiveOrExpression_0= ruleExclusiveOrExpression ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:9850:1: (this_ExclusiveOrExpression_0= ruleExclusiveOrExpression ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )* )
- // InternalAppliedStereotypeProperty.g:9851: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();
-
- }
- // InternalAppliedStereotypeProperty.g:9862:1: ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )*
- loop173:
- do {
- int alt173=2;
- int LA173_0 = input.LA(1);
-
- if ( (LA173_0==90) ) {
- alt173=1;
- }
-
-
- switch (alt173) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:9862:2: () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:9862:2: ()
- // InternalAppliedStereotypeProperty.g:9863:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:9871:2: ( (lv_operator_2_0= '|' ) )
- // InternalAppliedStereotypeProperty.g:9872:1: (lv_operator_2_0= '|' )
- {
- // InternalAppliedStereotypeProperty.g:9872:1: (lv_operator_2_0= '|' )
- // InternalAppliedStereotypeProperty.g:9873: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, "|");
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:9886:2: ( (lv_operand2_3_0= ruleExclusiveOrExpression ) )
- // InternalAppliedStereotypeProperty.g:9887:1: (lv_operand2_3_0= ruleExclusiveOrExpression )
- {
- // InternalAppliedStereotypeProperty.g:9887:1: (lv_operand2_3_0= ruleExclusiveOrExpression )
- // InternalAppliedStereotypeProperty.g:9888: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 loop173;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleInclusiveOrExpression"
-
-
- // $ANTLR start "entryRuleConditionalAndExpression"
- // InternalAppliedStereotypeProperty.g:9912:1: entryRuleConditionalAndExpression returns [EObject current=null] : iv_ruleConditionalAndExpression= ruleConditionalAndExpression EOF ;
- public final EObject entryRuleConditionalAndExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleConditionalAndExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:9913:2: (iv_ruleConditionalAndExpression= ruleConditionalAndExpression EOF )
- // InternalAppliedStereotypeProperty.g:9914: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"
- // InternalAppliedStereotypeProperty.g:9921: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 {
- // InternalAppliedStereotypeProperty.g:9924:28: ( (this_InclusiveOrExpression_0= ruleInclusiveOrExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )* ) )
- // InternalAppliedStereotypeProperty.g:9925:1: (this_InclusiveOrExpression_0= ruleInclusiveOrExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:9925:1: (this_InclusiveOrExpression_0= ruleInclusiveOrExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )* )
- // InternalAppliedStereotypeProperty.g:9926: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();
-
- }
- // InternalAppliedStereotypeProperty.g:9937:1: ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )*
- loop174:
- do {
- int alt174=2;
- int LA174_0 = input.LA(1);
-
- if ( (LA174_0==91) ) {
- alt174=1;
- }
-
-
- switch (alt174) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:9937:2: () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:9937:2: ()
- // InternalAppliedStereotypeProperty.g:9938:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:9946:2: ( (lv_operator_2_0= '&&' ) )
- // InternalAppliedStereotypeProperty.g:9947:1: (lv_operator_2_0= '&&' )
- {
- // InternalAppliedStereotypeProperty.g:9947:1: (lv_operator_2_0= '&&' )
- // InternalAppliedStereotypeProperty.g:9948: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, "&&");
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:9961:2: ( (lv_operand2_3_0= ruleInclusiveOrExpression ) )
- // InternalAppliedStereotypeProperty.g:9962:1: (lv_operand2_3_0= ruleInclusiveOrExpression )
- {
- // InternalAppliedStereotypeProperty.g:9962:1: (lv_operand2_3_0= ruleInclusiveOrExpression )
- // InternalAppliedStereotypeProperty.g:9963: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 loop174;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleConditionalAndExpression"
-
-
- // $ANTLR start "entryRuleConditionalOrExpression"
- // InternalAppliedStereotypeProperty.g:9987:1: entryRuleConditionalOrExpression returns [EObject current=null] : iv_ruleConditionalOrExpression= ruleConditionalOrExpression EOF ;
- public final EObject entryRuleConditionalOrExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleConditionalOrExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:9988:2: (iv_ruleConditionalOrExpression= ruleConditionalOrExpression EOF )
- // InternalAppliedStereotypeProperty.g:9989: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"
- // InternalAppliedStereotypeProperty.g:9996: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 {
- // InternalAppliedStereotypeProperty.g:9999:28: ( (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )* ) )
- // InternalAppliedStereotypeProperty.g:10000:1: (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:10000:1: (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )* )
- // InternalAppliedStereotypeProperty.g:10001: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();
-
- }
- // InternalAppliedStereotypeProperty.g:10012:1: ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )*
- loop175:
- do {
- int alt175=2;
- int LA175_0 = input.LA(1);
-
- if ( (LA175_0==92) ) {
- alt175=1;
- }
-
-
- switch (alt175) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:10012:2: () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:10012:2: ()
- // InternalAppliedStereotypeProperty.g:10013:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:10021:2: ( (lv_operator_2_0= '||' ) )
- // InternalAppliedStereotypeProperty.g:10022:1: (lv_operator_2_0= '||' )
- {
- // InternalAppliedStereotypeProperty.g:10022:1: (lv_operator_2_0= '||' )
- // InternalAppliedStereotypeProperty.g:10023: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, "||");
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:10036:2: ( (lv_operand2_3_0= ruleConditionalAndExpression ) )
- // InternalAppliedStereotypeProperty.g:10037:1: (lv_operand2_3_0= ruleConditionalAndExpression )
- {
- // InternalAppliedStereotypeProperty.g:10037:1: (lv_operand2_3_0= ruleConditionalAndExpression )
- // InternalAppliedStereotypeProperty.g:10038: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 loop175;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleConditionalOrExpression"
-
-
- // $ANTLR start "entryRuleConditionalExpression"
- // InternalAppliedStereotypeProperty.g:10062:1: entryRuleConditionalExpression returns [EObject current=null] : iv_ruleConditionalExpression= ruleConditionalExpression EOF ;
- public final EObject entryRuleConditionalExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleConditionalExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:10063:2: (iv_ruleConditionalExpression= ruleConditionalExpression EOF )
- // InternalAppliedStereotypeProperty.g:10064: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"
- // InternalAppliedStereotypeProperty.g:10071: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 {
- // InternalAppliedStereotypeProperty.g:10074:28: ( (this_ConditionalOrExpression_0= ruleConditionalOrExpression ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )? ) )
- // InternalAppliedStereotypeProperty.g:10075:1: (this_ConditionalOrExpression_0= ruleConditionalOrExpression ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )? )
- {
- // InternalAppliedStereotypeProperty.g:10075:1: (this_ConditionalOrExpression_0= ruleConditionalOrExpression ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )? )
- // InternalAppliedStereotypeProperty.g:10076: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();
-
- }
- // InternalAppliedStereotypeProperty.g:10087:1: ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )?
- int alt176=2;
- int LA176_0 = input.LA(1);
-
- if ( (LA176_0==93) ) {
- alt176=1;
- }
- switch (alt176) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:10087:2: () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:10087:2: ()
- // InternalAppliedStereotypeProperty.g:10088: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());
-
- }
- // InternalAppliedStereotypeProperty.g:10100:1: ( (lv_operand2_3_0= ruleExpression ) )
- // InternalAppliedStereotypeProperty.g:10101:1: (lv_operand2_3_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:10101:1: (lv_operand2_3_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:10102:3: lv_operand2_3_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getConditionalExpressionAccess().getOperand2ExpressionParserRuleCall_1_2_0());
-
- }
- pushFollow(FOLLOW_49);
- 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,46,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getConditionalExpressionAccess().getColonKeyword_1_3());
-
- }
- // InternalAppliedStereotypeProperty.g:10122:1: ( (lv_operand3_5_0= ruleConditionalExpression ) )
- // InternalAppliedStereotypeProperty.g:10123:1: (lv_operand3_5_0= ruleConditionalExpression )
- {
- // InternalAppliedStereotypeProperty.g:10123:1: (lv_operand3_5_0= ruleConditionalExpression )
- // InternalAppliedStereotypeProperty.g:10124: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"
- // InternalAppliedStereotypeProperty.g:10148:1: entryRuleAssignmentExpression returns [EObject current=null] : iv_ruleAssignmentExpression= ruleAssignmentExpression EOF ;
- public final EObject entryRuleAssignmentExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAssignmentExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:10149:2: (iv_ruleAssignmentExpression= ruleAssignmentExpression EOF )
- // InternalAppliedStereotypeProperty.g:10150: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"
- // InternalAppliedStereotypeProperty.g:10157: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 {
- // InternalAppliedStereotypeProperty.g:10160:28: ( ( ( (lv_leftHandSide_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_rightHandSide_2_0= ruleExpression ) ) ) )
- // InternalAppliedStereotypeProperty.g:10161:1: ( ( (lv_leftHandSide_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_rightHandSide_2_0= ruleExpression ) ) )
- {
- // InternalAppliedStereotypeProperty.g:10161:1: ( ( (lv_leftHandSide_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_rightHandSide_2_0= ruleExpression ) ) )
- // InternalAppliedStereotypeProperty.g:10161:2: ( (lv_leftHandSide_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_rightHandSide_2_0= ruleExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:10161:2: ( (lv_leftHandSide_0_0= ruleLeftHandSide ) )
- // InternalAppliedStereotypeProperty.g:10162:1: (lv_leftHandSide_0_0= ruleLeftHandSide )
- {
- // InternalAppliedStereotypeProperty.g:10162:1: (lv_leftHandSide_0_0= ruleLeftHandSide )
- // InternalAppliedStereotypeProperty.g:10163: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:10179:2: ( (lv_operator_1_0= ruleAssignmentOperator ) )
- // InternalAppliedStereotypeProperty.g:10180:1: (lv_operator_1_0= ruleAssignmentOperator )
- {
- // InternalAppliedStereotypeProperty.g:10180:1: (lv_operator_1_0= ruleAssignmentOperator )
- // InternalAppliedStereotypeProperty.g:10181: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:10197:2: ( (lv_rightHandSide_2_0= ruleExpression ) )
- // InternalAppliedStereotypeProperty.g:10198:1: (lv_rightHandSide_2_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:10198:1: (lv_rightHandSide_2_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:10199: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"
- // InternalAppliedStereotypeProperty.g:10223:1: entryRuleLeftHandSide returns [EObject current=null] : iv_ruleLeftHandSide= ruleLeftHandSide EOF ;
- public final EObject entryRuleLeftHandSide() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleLeftHandSide = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:10224:2: (iv_ruleLeftHandSide= ruleLeftHandSide EOF )
- // InternalAppliedStereotypeProperty.g:10225: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"
- // InternalAppliedStereotypeProperty.g:10232: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 {
- // InternalAppliedStereotypeProperty.g:10235:28: ( (this_NameLeftHandSide_0= ruleNameLeftHandSide | this_FeatureLeftHandSide_1= ruleFeatureLeftHandSide ) )
- // InternalAppliedStereotypeProperty.g:10236:1: (this_NameLeftHandSide_0= ruleNameLeftHandSide | this_FeatureLeftHandSide_1= ruleFeatureLeftHandSide )
- {
- // InternalAppliedStereotypeProperty.g:10236:1: (this_NameLeftHandSide_0= ruleNameLeftHandSide | this_FeatureLeftHandSide_1= ruleFeatureLeftHandSide )
- int alt177=2;
- switch ( input.LA(1) ) {
- case RULE_ID:
- {
- int LA177_1 = input.LA(2);
-
- if ( (synpred221_InternalAppliedStereotypeProperty()) ) {
- alt177=1;
- }
- else if ( (true) ) {
- alt177=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 177, 1, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_UNRESTRICTED_NAME:
- {
- int LA177_2 = input.LA(2);
-
- if ( (synpred221_InternalAppliedStereotypeProperty()) ) {
- alt177=1;
- }
- else if ( (true) ) {
- alt177=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 177, 2, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_BOOLEAN_VALUE:
- case RULE_NATURAL_VALUE:
- case RULE_STRING:
- case 17:
- case 21:
- case 51:
- case 62:
- case 63:
- case 64:
- case 69:
- {
- alt177=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 177, 0, input);
-
- throw nvae;
- }
-
- switch (alt177) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:10237: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 :
- // InternalAppliedStereotypeProperty.g:10250: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"
- // InternalAppliedStereotypeProperty.g:10269:1: entryRuleNameLeftHandSide returns [EObject current=null] : iv_ruleNameLeftHandSide= ruleNameLeftHandSide EOF ;
- public final EObject entryRuleNameLeftHandSide() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNameLeftHandSide = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:10270:2: (iv_ruleNameLeftHandSide= ruleNameLeftHandSide EOF )
- // InternalAppliedStereotypeProperty.g:10271: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"
- // InternalAppliedStereotypeProperty.g:10278: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 {
- // InternalAppliedStereotypeProperty.g:10281:28: ( ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_index_1_0= ruleIndex ) )? ) )
- // InternalAppliedStereotypeProperty.g:10282:1: ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_index_1_0= ruleIndex ) )? )
- {
- // InternalAppliedStereotypeProperty.g:10282:1: ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_index_1_0= ruleIndex ) )? )
- // InternalAppliedStereotypeProperty.g:10282:2: ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_index_1_0= ruleIndex ) )?
- {
- // InternalAppliedStereotypeProperty.g:10282:2: ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:10283:1: (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:10283:1: (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName )
- // InternalAppliedStereotypeProperty.g:10284: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:10300:2: ( (lv_index_1_0= ruleIndex ) )?
- int alt178=2;
- int LA178_0 = input.LA(1);
-
- if ( (LA178_0==52) ) {
- alt178=1;
- }
- switch (alt178) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:10301:1: (lv_index_1_0= ruleIndex )
- {
- // InternalAppliedStereotypeProperty.g:10301:1: (lv_index_1_0= ruleIndex )
- // InternalAppliedStereotypeProperty.g:10302: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"
- // InternalAppliedStereotypeProperty.g:10326:1: entryRuleFeatureLeftHandSide returns [EObject current=null] : iv_ruleFeatureLeftHandSide= ruleFeatureLeftHandSide EOF ;
- public final EObject entryRuleFeatureLeftHandSide() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleFeatureLeftHandSide = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:10327:2: (iv_ruleFeatureLeftHandSide= ruleFeatureLeftHandSide EOF )
- // InternalAppliedStereotypeProperty.g:10328: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"
- // InternalAppliedStereotypeProperty.g:10335: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 {
- // InternalAppliedStereotypeProperty.g:10338:28: ( ( (lv_expression_0_0= rulePrimaryExpression ) ) )
- // InternalAppliedStereotypeProperty.g:10339:1: ( (lv_expression_0_0= rulePrimaryExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:10339:1: ( (lv_expression_0_0= rulePrimaryExpression ) )
- // InternalAppliedStereotypeProperty.g:10340:1: (lv_expression_0_0= rulePrimaryExpression )
- {
- // InternalAppliedStereotypeProperty.g:10340:1: (lv_expression_0_0= rulePrimaryExpression )
- // InternalAppliedStereotypeProperty.g:10341: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"
- // InternalAppliedStereotypeProperty.g:10365:1: entryRuleAssignmentOperator returns [String current=null] : iv_ruleAssignmentOperator= ruleAssignmentOperator EOF ;
- public final String entryRuleAssignmentOperator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleAssignmentOperator = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:10366:2: (iv_ruleAssignmentOperator= ruleAssignmentOperator EOF )
- // InternalAppliedStereotypeProperty.g:10367: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"
- // InternalAppliedStereotypeProperty.g:10374: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 {
- // InternalAppliedStereotypeProperty.g:10377:28: ( (kw= '=' | kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | kw= '&=' | kw= '|=' | kw= '^=' | kw= '<<=' | kw= '>>=' | kw= '>>>=' ) )
- // InternalAppliedStereotypeProperty.g:10378:1: (kw= '=' | kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | kw= '&=' | kw= '|=' | kw= '^=' | kw= '<<=' | kw= '>>=' | kw= '>>>=' )
- {
- // InternalAppliedStereotypeProperty.g:10378:1: (kw= '=' | kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | kw= '&=' | kw= '|=' | kw= '^=' | kw= '<<=' | kw= '>>=' | kw= '>>>=' )
- int alt179=12;
- switch ( input.LA(1) ) {
- case 15:
- {
- alt179=1;
- }
- break;
- case 94:
- {
- alt179=2;
- }
- break;
- case 95:
- {
- alt179=3;
- }
- break;
- case 96:
- {
- alt179=4;
- }
- break;
- case 97:
- {
- alt179=5;
- }
- break;
- case 98:
- {
- alt179=6;
- }
- break;
- case 99:
- {
- alt179=7;
- }
- break;
- case 100:
- {
- alt179=8;
- }
- break;
- case 101:
- {
- alt179=9;
- }
- break;
- case 102:
- {
- alt179=10;
- }
- break;
- case 103:
- {
- alt179=11;
- }
- break;
- case 104:
- {
- alt179=12;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 179, 0, input);
-
- throw nvae;
- }
-
- switch (alt179) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:10379:2: kw= '='
- {
- kw=(Token)match(input,15,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getEqualsSignKeyword_0());
-
- }
-
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:10386: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 :
- // InternalAppliedStereotypeProperty.g:10393: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 :
- // InternalAppliedStereotypeProperty.g:10400: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 :
- // InternalAppliedStereotypeProperty.g:10407: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 :
- // InternalAppliedStereotypeProperty.g:10414: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 :
- // InternalAppliedStereotypeProperty.g:10421: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 :
- // InternalAppliedStereotypeProperty.g:10428: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 :
- // InternalAppliedStereotypeProperty.g:10435: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 :
- // InternalAppliedStereotypeProperty.g:10442: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 :
- // InternalAppliedStereotypeProperty.g:10449: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 :
- // InternalAppliedStereotypeProperty.g:10456: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"
- // InternalAppliedStereotypeProperty.g:10471:1: entryRuleDocumentedStatement returns [EObject current=null] : iv_ruleDocumentedStatement= ruleDocumentedStatement EOF ;
- public final EObject entryRuleDocumentedStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleDocumentedStatement = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:10472:2: (iv_ruleDocumentedStatement= ruleDocumentedStatement EOF )
- // InternalAppliedStereotypeProperty.g:10473: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"
- // InternalAppliedStereotypeProperty.g:10480: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 {
- // InternalAppliedStereotypeProperty.g:10483:28: (this_AnnotatedStatement_0= ruleAnnotatedStatement )
- // InternalAppliedStereotypeProperty.g:10485: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"
- // InternalAppliedStereotypeProperty.g:10504:1: entryRuleStatement returns [EObject current=null] : iv_ruleStatement= ruleStatement EOF ;
- public final EObject entryRuleStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleStatement = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:10505:2: (iv_ruleStatement= ruleStatement EOF )
- // InternalAppliedStereotypeProperty.g:10506: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"
- // InternalAppliedStereotypeProperty.g:10513: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 {
- // InternalAppliedStereotypeProperty.g:10516: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 ) )
- // InternalAppliedStereotypeProperty.g:10517: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 )
- {
- // InternalAppliedStereotypeProperty.g:10517: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 alt180=14;
- alt180 = dfa180.predict(input);
- switch (alt180) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:10518: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 :
- // InternalAppliedStereotypeProperty.g:10531: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 :
- // InternalAppliedStereotypeProperty.g:10544: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 :
- // InternalAppliedStereotypeProperty.g:10557: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 :
- // InternalAppliedStereotypeProperty.g:10570: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 :
- // InternalAppliedStereotypeProperty.g:10583: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 :
- // InternalAppliedStereotypeProperty.g:10596: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 :
- // InternalAppliedStereotypeProperty.g:10609: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 :
- // InternalAppliedStereotypeProperty.g:10622: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 :
- // InternalAppliedStereotypeProperty.g:10635: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 :
- // InternalAppliedStereotypeProperty.g:10648: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 :
- // InternalAppliedStereotypeProperty.g:10661: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 :
- // InternalAppliedStereotypeProperty.g:10674: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 :
- // InternalAppliedStereotypeProperty.g:10687: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"
- // InternalAppliedStereotypeProperty.g:10706:1: entryRuleBlock returns [EObject current=null] : iv_ruleBlock= ruleBlock EOF ;
- public final EObject entryRuleBlock() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBlock = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:10707:2: (iv_ruleBlock= ruleBlock EOF )
- // InternalAppliedStereotypeProperty.g:10708: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"
- // InternalAppliedStereotypeProperty.g:10715: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 {
- // InternalAppliedStereotypeProperty.g:10718:28: ( ( () otherlv_1= '{' ( (lv_statement_2_0= ruleDocumentedStatement ) )* otherlv_3= '}' ) )
- // InternalAppliedStereotypeProperty.g:10719:1: ( () otherlv_1= '{' ( (lv_statement_2_0= ruleDocumentedStatement ) )* otherlv_3= '}' )
- {
- // InternalAppliedStereotypeProperty.g:10719:1: ( () otherlv_1= '{' ( (lv_statement_2_0= ruleDocumentedStatement ) )* otherlv_3= '}' )
- // InternalAppliedStereotypeProperty.g:10719:2: () otherlv_1= '{' ( (lv_statement_2_0= ruleDocumentedStatement ) )* otherlv_3= '}'
- {
- // InternalAppliedStereotypeProperty.g:10719:2: ()
- // InternalAppliedStereotypeProperty.g:10720:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElement(
- grammarAccess.getBlockAccess().getBlockAction_0(),
- current);
-
- }
-
- }
-
- otherlv_1=(Token)match(input,32,FOLLOW_94); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getBlockAccess().getLeftCurlyBracketKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:10732:1: ( (lv_statement_2_0= ruleDocumentedStatement ) )*
- loop181:
- do {
- int alt181=2;
- int LA181_0 = input.LA(1);
-
- if ( ((LA181_0>=RULE_BOOLEAN_VALUE && LA181_0<=RULE_INLINE_STATEMENT)||LA181_0==17||LA181_0==21||LA181_0==23||LA181_0==32||LA181_0==40||LA181_0==51||(LA181_0>=62 && LA181_0<=64)||(LA181_0>=69 && LA181_0<=76)||(LA181_0>=105 && LA181_0<=106)||LA181_0==109||(LA181_0>=112 && LA181_0<=117)) ) {
- alt181=1;
- }
-
-
- switch (alt181) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:10733:1: (lv_statement_2_0= ruleDocumentedStatement )
- {
- // InternalAppliedStereotypeProperty.g:10733:1: (lv_statement_2_0= ruleDocumentedStatement )
- // InternalAppliedStereotypeProperty.g:10734: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 loop181;
- }
- } while (true);
-
- otherlv_3=(Token)match(input,33,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"
- // InternalAppliedStereotypeProperty.g:10762:1: entryRuleAnnotatedStatement returns [EObject current=null] : iv_ruleAnnotatedStatement= ruleAnnotatedStatement EOF ;
- public final EObject entryRuleAnnotatedStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAnnotatedStatement = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:10763:2: (iv_ruleAnnotatedStatement= ruleAnnotatedStatement EOF )
- // InternalAppliedStereotypeProperty.g:10764: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"
- // InternalAppliedStereotypeProperty.g:10771: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 {
- // InternalAppliedStereotypeProperty.g:10774:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )* ( (lv_statement_2_0= ruleStatement ) ) ) )
- // InternalAppliedStereotypeProperty.g:10775:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )* ( (lv_statement_2_0= ruleStatement ) ) )
- {
- // InternalAppliedStereotypeProperty.g:10775:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )* ( (lv_statement_2_0= ruleStatement ) ) )
- // InternalAppliedStereotypeProperty.g:10775:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )* ( (lv_statement_2_0= ruleStatement ) )
- {
- // InternalAppliedStereotypeProperty.g:10775:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
- int alt182=2;
- int LA182_0 = input.LA(1);
-
- if ( (LA182_0==RULE_DOCUMENTATION_COMMENT) ) {
- alt182=1;
- }
- switch (alt182) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:10776:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- {
- // InternalAppliedStereotypeProperty.g:10776:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- // InternalAppliedStereotypeProperty.g:10777: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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:10793:3: ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )*
- loop183:
- do {
- int alt183=2;
- int LA183_0 = input.LA(1);
-
- if ( (LA183_0==RULE_STATEMENT_ANNOTATION) ) {
- alt183=1;
- }
-
-
- switch (alt183) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:10794:1: (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION )
- {
- // InternalAppliedStereotypeProperty.g:10794:1: (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION )
- // InternalAppliedStereotypeProperty.g:10795: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 loop183;
- }
- } while (true);
-
- // InternalAppliedStereotypeProperty.g:10811:3: ( (lv_statement_2_0= ruleStatement ) )
- // InternalAppliedStereotypeProperty.g:10812:1: (lv_statement_2_0= ruleStatement )
- {
- // InternalAppliedStereotypeProperty.g:10812:1: (lv_statement_2_0= ruleStatement )
- // InternalAppliedStereotypeProperty.g:10813: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"
- // InternalAppliedStereotypeProperty.g:10837:1: entryRuleInLineStatement returns [EObject current=null] : iv_ruleInLineStatement= ruleInLineStatement EOF ;
- public final EObject entryRuleInLineStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleInLineStatement = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:10838:2: (iv_ruleInLineStatement= ruleInLineStatement EOF )
- // InternalAppliedStereotypeProperty.g:10839: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"
- // InternalAppliedStereotypeProperty.g:10846: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 {
- // InternalAppliedStereotypeProperty.g:10849:28: ( ( (lv_code_0_0= RULE_INLINE_STATEMENT ) ) )
- // InternalAppliedStereotypeProperty.g:10850:1: ( (lv_code_0_0= RULE_INLINE_STATEMENT ) )
- {
- // InternalAppliedStereotypeProperty.g:10850:1: ( (lv_code_0_0= RULE_INLINE_STATEMENT ) )
- // InternalAppliedStereotypeProperty.g:10851:1: (lv_code_0_0= RULE_INLINE_STATEMENT )
- {
- // InternalAppliedStereotypeProperty.g:10851:1: (lv_code_0_0= RULE_INLINE_STATEMENT )
- // InternalAppliedStereotypeProperty.g:10852: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"
- // InternalAppliedStereotypeProperty.g:10876:1: entryRuleBlockStatement returns [EObject current=null] : iv_ruleBlockStatement= ruleBlockStatement EOF ;
- public final EObject entryRuleBlockStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBlockStatement = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:10877:2: (iv_ruleBlockStatement= ruleBlockStatement EOF )
- // InternalAppliedStereotypeProperty.g:10878: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"
- // InternalAppliedStereotypeProperty.g:10885: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 {
- // InternalAppliedStereotypeProperty.g:10888:28: ( ( (lv_block_0_0= ruleBlock ) ) )
- // InternalAppliedStereotypeProperty.g:10889:1: ( (lv_block_0_0= ruleBlock ) )
- {
- // InternalAppliedStereotypeProperty.g:10889:1: ( (lv_block_0_0= ruleBlock ) )
- // InternalAppliedStereotypeProperty.g:10890:1: (lv_block_0_0= ruleBlock )
- {
- // InternalAppliedStereotypeProperty.g:10890:1: (lv_block_0_0= ruleBlock )
- // InternalAppliedStereotypeProperty.g:10891: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"
- // InternalAppliedStereotypeProperty.g:10915:1: entryRuleEmptyStatement returns [EObject current=null] : iv_ruleEmptyStatement= ruleEmptyStatement EOF ;
- public final EObject entryRuleEmptyStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleEmptyStatement = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:10916:2: (iv_ruleEmptyStatement= ruleEmptyStatement EOF )
- // InternalAppliedStereotypeProperty.g:10917: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"
- // InternalAppliedStereotypeProperty.g:10924:1: ruleEmptyStatement returns [EObject current=null] : ( () otherlv_1= ';' ) ;
- public final EObject ruleEmptyStatement() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
-
- enterRule();
-
- try {
- // InternalAppliedStereotypeProperty.g:10927:28: ( ( () otherlv_1= ';' ) )
- // InternalAppliedStereotypeProperty.g:10928:1: ( () otherlv_1= ';' )
- {
- // InternalAppliedStereotypeProperty.g:10928:1: ( () otherlv_1= ';' )
- // InternalAppliedStereotypeProperty.g:10928:2: () otherlv_1= ';'
- {
- // InternalAppliedStereotypeProperty.g:10928:2: ()
- // InternalAppliedStereotypeProperty.g:10929:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElement(
- grammarAccess.getEmptyStatementAccess().getEmptyStatementAction_0(),
- current);
-
- }
-
- }
-
- otherlv_1=(Token)match(input,23,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"
- // InternalAppliedStereotypeProperty.g:10949:1: entryRuleLocalNameDeclarationStatement returns [EObject current=null] : iv_ruleLocalNameDeclarationStatement= ruleLocalNameDeclarationStatement EOF ;
- public final EObject entryRuleLocalNameDeclarationStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleLocalNameDeclarationStatement = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:10950:2: (iv_ruleLocalNameDeclarationStatement= ruleLocalNameDeclarationStatement EOF )
- // InternalAppliedStereotypeProperty.g:10951: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"
- // InternalAppliedStereotypeProperty.g:10958: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 {
- // InternalAppliedStereotypeProperty.g:10961: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= ';' ) )
- // InternalAppliedStereotypeProperty.g:10962: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= ';' )
- {
- // InternalAppliedStereotypeProperty.g:10962: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= ';' )
- // InternalAppliedStereotypeProperty.g:10962: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= ';'
- {
- // InternalAppliedStereotypeProperty.g:10962: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 alt188=2;
- int LA188_0 = input.LA(1);
-
- if ( (LA188_0==105) ) {
- alt188=1;
- }
- else if ( ((LA188_0>=RULE_ID && LA188_0<=RULE_UNRESTRICTED_NAME)||LA188_0==51) ) {
- 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 :
- // InternalAppliedStereotypeProperty.g:10962: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 ) )? )
- {
- // InternalAppliedStereotypeProperty.g:10962: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 ) )? )
- // InternalAppliedStereotypeProperty.g:10962: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_14); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getLocalNameDeclarationStatementAccess().getLetKeyword_0_0_0());
-
- }
- // InternalAppliedStereotypeProperty.g:10966:1: ( (lv_name_1_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:10967:1: (lv_name_1_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:10967:1: (lv_name_1_0= ruleName )
- // InternalAppliedStereotypeProperty.g:10968:3: lv_name_1_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getNameNameParserRuleCall_0_0_1_0());
-
- }
- pushFollow(FOLLOW_49);
- 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,46,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getLocalNameDeclarationStatementAccess().getColonKeyword_0_0_2());
-
- }
- // InternalAppliedStereotypeProperty.g:10988:1: ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) )
- int alt184=2;
- int LA184_0 = input.LA(1);
-
- if ( (LA184_0==51) ) {
- alt184=1;
- }
- else if ( ((LA184_0>=RULE_ID && LA184_0<=RULE_UNRESTRICTED_NAME)) ) {
- alt184=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 184, 0, input);
-
- throw nvae;
- }
- switch (alt184) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:10988:2: ( (lv_isAny_3_0= 'any' ) )
- {
- // InternalAppliedStereotypeProperty.g:10988:2: ( (lv_isAny_3_0= 'any' ) )
- // InternalAppliedStereotypeProperty.g:10989:1: (lv_isAny_3_0= 'any' )
- {
- // InternalAppliedStereotypeProperty.g:10989:1: (lv_isAny_3_0= 'any' )
- // InternalAppliedStereotypeProperty.g:10990: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 :
- // InternalAppliedStereotypeProperty.g:11004:6: ( (lv_typeName_4_0= ruleQualifiedName ) )
- {
- // InternalAppliedStereotypeProperty.g:11004:6: ( (lv_typeName_4_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:11005:1: (lv_typeName_4_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:11005:1: (lv_typeName_4_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:11006: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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:11022:3: ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )?
- int alt185=2;
- int LA185_0 = input.LA(1);
-
- if ( (LA185_0==52) ) {
- alt185=1;
- }
- switch (alt185) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:11023:1: (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator )
- {
- // InternalAppliedStereotypeProperty.g:11023:1: (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator )
- // InternalAppliedStereotypeProperty.g:11024: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 :
- // InternalAppliedStereotypeProperty.g:11041:6: ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) )
- {
- // InternalAppliedStereotypeProperty.g:11041:6: ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) )
- // InternalAppliedStereotypeProperty.g:11041:7: ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) )
- {
- // InternalAppliedStereotypeProperty.g:11041:7: ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) )
- int alt186=2;
- int LA186_0 = input.LA(1);
-
- if ( (LA186_0==51) ) {
- alt186=1;
- }
- else if ( ((LA186_0>=RULE_ID && LA186_0<=RULE_UNRESTRICTED_NAME)) ) {
- alt186=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 186, 0, input);
-
- throw nvae;
- }
- switch (alt186) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:11041:8: ( (lv_isAny_6_0= 'any' ) )
- {
- // InternalAppliedStereotypeProperty.g:11041:8: ( (lv_isAny_6_0= 'any' ) )
- // InternalAppliedStereotypeProperty.g:11042:1: (lv_isAny_6_0= 'any' )
- {
- // InternalAppliedStereotypeProperty.g:11042:1: (lv_isAny_6_0= 'any' )
- // InternalAppliedStereotypeProperty.g:11043: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 :
- // InternalAppliedStereotypeProperty.g:11057:6: ( (lv_typeName_7_0= ruleQualifiedName ) )
- {
- // InternalAppliedStereotypeProperty.g:11057:6: ( (lv_typeName_7_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:11058:1: (lv_typeName_7_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:11058:1: (lv_typeName_7_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:11059: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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:11075:3: ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )?
- int alt187=2;
- int LA187_0 = input.LA(1);
-
- if ( (LA187_0==52) ) {
- alt187=1;
- }
- switch (alt187) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:11076:1: (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator )
- {
- // InternalAppliedStereotypeProperty.g:11076:1: (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator )
- // InternalAppliedStereotypeProperty.g:11077:3: lv_hasMultiplicity_8_0= ruleMultiplicityIndicator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_1_0());
-
- }
- pushFollow(FOLLOW_14);
- 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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:11093:3: ( (lv_name_9_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:11094:1: (lv_name_9_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:11094:1: (lv_name_9_0= ruleName )
- // InternalAppliedStereotypeProperty.g:11095: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,15,FOLLOW_3); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_10, grammarAccess.getLocalNameDeclarationStatementAccess().getEqualsSignKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:11115:1: ( (lv_expression_11_0= ruleInitializationExpression ) )
- // InternalAppliedStereotypeProperty.g:11116:1: (lv_expression_11_0= ruleInitializationExpression )
- {
- // InternalAppliedStereotypeProperty.g:11116:1: (lv_expression_11_0= ruleInitializationExpression )
- // InternalAppliedStereotypeProperty.g:11117: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,23,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"
- // InternalAppliedStereotypeProperty.g:11145:1: entryRuleInitializationExpression returns [EObject current=null] : iv_ruleInitializationExpression= ruleInitializationExpression EOF ;
- public final EObject entryRuleInitializationExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleInitializationExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:11146:2: (iv_ruleInitializationExpression= ruleInitializationExpression EOF )
- // InternalAppliedStereotypeProperty.g:11147: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"
- // InternalAppliedStereotypeProperty.g:11154: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 {
- // InternalAppliedStereotypeProperty.g:11157:28: ( (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression | this_InstanceInitializationExpression_2= ruleInstanceInitializationExpression ) )
- // InternalAppliedStereotypeProperty.g:11158:1: (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression | this_InstanceInitializationExpression_2= ruleInstanceInitializationExpression )
- {
- // InternalAppliedStereotypeProperty.g:11158:1: (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression | this_InstanceInitializationExpression_2= ruleInstanceInitializationExpression )
- int alt189=3;
- switch ( input.LA(1) ) {
- case RULE_BOOLEAN_VALUE:
- case RULE_NATURAL_VALUE:
- case RULE_STRING:
- case RULE_ID:
- case RULE_UNRESTRICTED_NAME:
- case 17:
- case 21:
- case 51:
- case 62:
- case 63:
- case 69:
- case 70:
- case 71:
- case 72:
- case 73:
- case 74:
- case 75:
- case 76:
- {
- alt189=1;
- }
- break;
- case 64:
- {
- switch ( input.LA(2) ) {
- case RULE_ID:
- case RULE_UNRESTRICTED_NAME:
- {
- alt189=1;
- }
- break;
- case 17:
- {
- alt189=3;
- }
- break;
- case 32:
- {
- alt189=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 189, 2, input);
-
- throw nvae;
- }
-
- }
- break;
- case 32:
- {
- alt189=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 189, 0, input);
-
- throw nvae;
- }
-
- switch (alt189) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:11159: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 :
- // InternalAppliedStereotypeProperty.g:11172: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 :
- // InternalAppliedStereotypeProperty.g:11185: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"
- // InternalAppliedStereotypeProperty.g:11204:1: entryRuleInstanceInitializationExpression returns [EObject current=null] : iv_ruleInstanceInitializationExpression= ruleInstanceInitializationExpression EOF ;
- public final EObject entryRuleInstanceInitializationExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleInstanceInitializationExpression = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:11205:2: (iv_ruleInstanceInitializationExpression= ruleInstanceInitializationExpression EOF )
- // InternalAppliedStereotypeProperty.g:11206: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"
- // InternalAppliedStereotypeProperty.g:11213: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 {
- // InternalAppliedStereotypeProperty.g:11216:28: ( (otherlv_0= 'new' ( (lv_tuple_1_0= ruleTuple ) ) ) )
- // InternalAppliedStereotypeProperty.g:11217:1: (otherlv_0= 'new' ( (lv_tuple_1_0= ruleTuple ) ) )
- {
- // InternalAppliedStereotypeProperty.g:11217:1: (otherlv_0= 'new' ( (lv_tuple_1_0= ruleTuple ) ) )
- // InternalAppliedStereotypeProperty.g:11217:3: otherlv_0= 'new' ( (lv_tuple_1_0= ruleTuple ) )
- {
- otherlv_0=(Token)match(input,64,FOLLOW_44); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getInstanceInitializationExpressionAccess().getNewKeyword_0());
-
- }
- // InternalAppliedStereotypeProperty.g:11221:1: ( (lv_tuple_1_0= ruleTuple ) )
- // InternalAppliedStereotypeProperty.g:11222:1: (lv_tuple_1_0= ruleTuple )
- {
- // InternalAppliedStereotypeProperty.g:11222:1: (lv_tuple_1_0= ruleTuple )
- // InternalAppliedStereotypeProperty.g:11223: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"
- // InternalAppliedStereotypeProperty.g:11247:1: entryRuleExpressionStatement returns [EObject current=null] : iv_ruleExpressionStatement= ruleExpressionStatement EOF ;
- public final EObject entryRuleExpressionStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleExpressionStatement = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:11248:2: (iv_ruleExpressionStatement= ruleExpressionStatement EOF )
- // InternalAppliedStereotypeProperty.g:11249: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"
- // InternalAppliedStereotypeProperty.g:11256: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 {
- // InternalAppliedStereotypeProperty.g:11259:28: ( ( ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';' ) )
- // InternalAppliedStereotypeProperty.g:11260:1: ( ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';' )
- {
- // InternalAppliedStereotypeProperty.g:11260:1: ( ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';' )
- // InternalAppliedStereotypeProperty.g:11260:2: ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';'
- {
- // InternalAppliedStereotypeProperty.g:11260:2: ( (lv_expression_0_0= ruleExpression ) )
- // InternalAppliedStereotypeProperty.g:11261:1: (lv_expression_0_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:11261:1: (lv_expression_0_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:11262: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,23,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"
- // InternalAppliedStereotypeProperty.g:11290:1: entryRuleIfStatement returns [EObject current=null] : iv_ruleIfStatement= ruleIfStatement EOF ;
- public final EObject entryRuleIfStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleIfStatement = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:11291:2: (iv_ruleIfStatement= ruleIfStatement EOF )
- // InternalAppliedStereotypeProperty.g:11292: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"
- // InternalAppliedStereotypeProperty.g:11299: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 {
- // InternalAppliedStereotypeProperty.g:11302: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 ) ) )? ) )
- // InternalAppliedStereotypeProperty.g:11303: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 ) ) )? )
- {
- // InternalAppliedStereotypeProperty.g:11303: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 ) ) )? )
- // InternalAppliedStereotypeProperty.g:11303: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_44); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getIfStatementAccess().getIfKeyword_0());
-
- }
- // InternalAppliedStereotypeProperty.g:11307:1: ( (lv_nonFinalClauses_1_0= ruleConcurrentClauses ) )
- // InternalAppliedStereotypeProperty.g:11308:1: (lv_nonFinalClauses_1_0= ruleConcurrentClauses )
- {
- // InternalAppliedStereotypeProperty.g:11308:1: (lv_nonFinalClauses_1_0= ruleConcurrentClauses )
- // InternalAppliedStereotypeProperty.g:11309: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:11325:2: (otherlv_2= 'else' otherlv_3= 'if' ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) ) )*
- loop190:
- do {
- int alt190=2;
- int LA190_0 = input.LA(1);
-
- if ( (LA190_0==107) ) {
- int LA190_1 = input.LA(2);
-
- if ( (LA190_1==106) ) {
- alt190=1;
- }
-
-
- }
-
-
- switch (alt190) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:11325: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_44); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getIfStatementAccess().getIfKeyword_2_1());
-
- }
- // InternalAppliedStereotypeProperty.g:11333:1: ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) )
- // InternalAppliedStereotypeProperty.g:11334:1: (lv_nonFinalClauses_4_0= ruleConcurrentClauses )
- {
- // InternalAppliedStereotypeProperty.g:11334:1: (lv_nonFinalClauses_4_0= ruleConcurrentClauses )
- // InternalAppliedStereotypeProperty.g:11335: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 loop190;
- }
- } while (true);
-
- // InternalAppliedStereotypeProperty.g:11351:4: (otherlv_5= 'else' ( (lv_finalClause_6_0= ruleBlock ) ) )?
- int alt191=2;
- int LA191_0 = input.LA(1);
-
- if ( (LA191_0==107) ) {
- alt191=1;
- }
- switch (alt191) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:11351:6: otherlv_5= 'else' ( (lv_finalClause_6_0= ruleBlock ) )
- {
- otherlv_5=(Token)match(input,107,FOLLOW_19); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getIfStatementAccess().getElseKeyword_3_0());
-
- }
- // InternalAppliedStereotypeProperty.g:11355:1: ( (lv_finalClause_6_0= ruleBlock ) )
- // InternalAppliedStereotypeProperty.g:11356:1: (lv_finalClause_6_0= ruleBlock )
- {
- // InternalAppliedStereotypeProperty.g:11356:1: (lv_finalClause_6_0= ruleBlock )
- // InternalAppliedStereotypeProperty.g:11357: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"
- // InternalAppliedStereotypeProperty.g:11381:1: entryRuleConcurrentClauses returns [EObject current=null] : iv_ruleConcurrentClauses= ruleConcurrentClauses EOF ;
- public final EObject entryRuleConcurrentClauses() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleConcurrentClauses = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:11382:2: (iv_ruleConcurrentClauses= ruleConcurrentClauses EOF )
- // InternalAppliedStereotypeProperty.g:11383: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"
- // InternalAppliedStereotypeProperty.g:11390: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 {
- // InternalAppliedStereotypeProperty.g:11393:28: ( ( ( (lv_clause_0_0= ruleNonFinalClause ) ) (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )* ) )
- // InternalAppliedStereotypeProperty.g:11394:1: ( ( (lv_clause_0_0= ruleNonFinalClause ) ) (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:11394:1: ( ( (lv_clause_0_0= ruleNonFinalClause ) ) (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )* )
- // InternalAppliedStereotypeProperty.g:11394:2: ( (lv_clause_0_0= ruleNonFinalClause ) ) (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )*
- {
- // InternalAppliedStereotypeProperty.g:11394:2: ( (lv_clause_0_0= ruleNonFinalClause ) )
- // InternalAppliedStereotypeProperty.g:11395:1: (lv_clause_0_0= ruleNonFinalClause )
- {
- // InternalAppliedStereotypeProperty.g:11395:1: (lv_clause_0_0= ruleNonFinalClause )
- // InternalAppliedStereotypeProperty.g:11396: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:11412:2: (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )*
- loop192:
- do {
- int alt192=2;
- int LA192_0 = input.LA(1);
-
- if ( (LA192_0==108) ) {
- alt192=1;
- }
-
-
- switch (alt192) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:11412: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_44); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getConcurrentClausesAccess().getIfKeyword_1_1());
-
- }
- // InternalAppliedStereotypeProperty.g:11420:1: ( (lv_clause_3_0= ruleNonFinalClause ) )
- // InternalAppliedStereotypeProperty.g:11421:1: (lv_clause_3_0= ruleNonFinalClause )
- {
- // InternalAppliedStereotypeProperty.g:11421:1: (lv_clause_3_0= ruleNonFinalClause )
- // InternalAppliedStereotypeProperty.g:11422: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 loop192;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleConcurrentClauses"
-
-
- // $ANTLR start "entryRuleNonFinalClause"
- // InternalAppliedStereotypeProperty.g:11446:1: entryRuleNonFinalClause returns [EObject current=null] : iv_ruleNonFinalClause= ruleNonFinalClause EOF ;
- public final EObject entryRuleNonFinalClause() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNonFinalClause = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:11447:2: (iv_ruleNonFinalClause= ruleNonFinalClause EOF )
- // InternalAppliedStereotypeProperty.g:11448: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"
- // InternalAppliedStereotypeProperty.g:11455: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 {
- // InternalAppliedStereotypeProperty.g:11458:28: ( (otherlv_0= '(' ( (lv_condition_1_0= ruleExpression ) ) otherlv_2= ')' ( (lv_body_3_0= ruleBlock ) ) ) )
- // InternalAppliedStereotypeProperty.g:11459:1: (otherlv_0= '(' ( (lv_condition_1_0= ruleExpression ) ) otherlv_2= ')' ( (lv_body_3_0= ruleBlock ) ) )
- {
- // InternalAppliedStereotypeProperty.g:11459:1: (otherlv_0= '(' ( (lv_condition_1_0= ruleExpression ) ) otherlv_2= ')' ( (lv_body_3_0= ruleBlock ) ) )
- // InternalAppliedStereotypeProperty.g:11459:3: otherlv_0= '(' ( (lv_condition_1_0= ruleExpression ) ) otherlv_2= ')' ( (lv_body_3_0= ruleBlock ) )
- {
- otherlv_0=(Token)match(input,17,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getNonFinalClauseAccess().getLeftParenthesisKeyword_0());
-
- }
- // InternalAppliedStereotypeProperty.g:11463:1: ( (lv_condition_1_0= ruleExpression ) )
- // InternalAppliedStereotypeProperty.g:11464:1: (lv_condition_1_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:11464:1: (lv_condition_1_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:11465: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,18,FOLLOW_19); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getNonFinalClauseAccess().getRightParenthesisKeyword_2());
-
- }
- // InternalAppliedStereotypeProperty.g:11485:1: ( (lv_body_3_0= ruleBlock ) )
- // InternalAppliedStereotypeProperty.g:11486:1: (lv_body_3_0= ruleBlock )
- {
- // InternalAppliedStereotypeProperty.g:11486:1: (lv_body_3_0= ruleBlock )
- // InternalAppliedStereotypeProperty.g:11487: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"
- // InternalAppliedStereotypeProperty.g:11511:1: entryRuleSwitchStatement returns [EObject current=null] : iv_ruleSwitchStatement= ruleSwitchStatement EOF ;
- public final EObject entryRuleSwitchStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSwitchStatement = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:11512:2: (iv_ruleSwitchStatement= ruleSwitchStatement EOF )
- // InternalAppliedStereotypeProperty.g:11513: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"
- // InternalAppliedStereotypeProperty.g:11520: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 {
- // InternalAppliedStereotypeProperty.g:11523: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= '}' ) )
- // InternalAppliedStereotypeProperty.g:11524: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= '}' )
- {
- // InternalAppliedStereotypeProperty.g:11524: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= '}' )
- // InternalAppliedStereotypeProperty.g:11524: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_44); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getSwitchStatementAccess().getSwitchKeyword_0());
-
- }
- otherlv_1=(Token)match(input,17,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getSwitchStatementAccess().getLeftParenthesisKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:11532:1: ( (lv_expression_2_0= ruleExpression ) )
- // InternalAppliedStereotypeProperty.g:11533:1: (lv_expression_2_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:11533:1: (lv_expression_2_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:11534: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,18,FOLLOW_19); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getSwitchStatementAccess().getRightParenthesisKeyword_3());
-
- }
- otherlv_4=(Token)match(input,32,FOLLOW_102); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getSwitchStatementAccess().getLeftCurlyBracketKeyword_4());
-
- }
- // InternalAppliedStereotypeProperty.g:11558:1: ( (lv_nonDefaultClause_5_0= ruleSwitchClause ) )*
- loop193:
- do {
- int alt193=2;
- int LA193_0 = input.LA(1);
-
- if ( (LA193_0==110) ) {
- alt193=1;
- }
-
-
- switch (alt193) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:11559:1: (lv_nonDefaultClause_5_0= ruleSwitchClause )
- {
- // InternalAppliedStereotypeProperty.g:11559:1: (lv_nonDefaultClause_5_0= ruleSwitchClause )
- // InternalAppliedStereotypeProperty.g:11560: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 loop193;
- }
- } while (true);
-
- // InternalAppliedStereotypeProperty.g:11576:3: ( (lv_defaultClause_6_0= ruleSwitchDefaultClause ) )?
- int alt194=2;
- int LA194_0 = input.LA(1);
-
- if ( (LA194_0==111) ) {
- alt194=1;
- }
- switch (alt194) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:11577:1: (lv_defaultClause_6_0= ruleSwitchDefaultClause )
- {
- // InternalAppliedStereotypeProperty.g:11577:1: (lv_defaultClause_6_0= ruleSwitchDefaultClause )
- // InternalAppliedStereotypeProperty.g:11578: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,33,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"
- // InternalAppliedStereotypeProperty.g:11606:1: entryRuleSwitchClause returns [EObject current=null] : iv_ruleSwitchClause= ruleSwitchClause EOF ;
- public final EObject entryRuleSwitchClause() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSwitchClause = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:11607:2: (iv_ruleSwitchClause= ruleSwitchClause EOF )
- // InternalAppliedStereotypeProperty.g:11608: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"
- // InternalAppliedStereotypeProperty.g:11615: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 {
- // InternalAppliedStereotypeProperty.g:11618:28: ( ( ( (lv_case_0_0= ruleSwitchCase ) ) ( (lv_case_1_0= ruleSwitchCase ) )* ( (lv_block_2_0= ruleNonEmptyStatementSequence ) ) ) )
- // InternalAppliedStereotypeProperty.g:11619:1: ( ( (lv_case_0_0= ruleSwitchCase ) ) ( (lv_case_1_0= ruleSwitchCase ) )* ( (lv_block_2_0= ruleNonEmptyStatementSequence ) ) )
- {
- // InternalAppliedStereotypeProperty.g:11619:1: ( ( (lv_case_0_0= ruleSwitchCase ) ) ( (lv_case_1_0= ruleSwitchCase ) )* ( (lv_block_2_0= ruleNonEmptyStatementSequence ) ) )
- // InternalAppliedStereotypeProperty.g:11619:2: ( (lv_case_0_0= ruleSwitchCase ) ) ( (lv_case_1_0= ruleSwitchCase ) )* ( (lv_block_2_0= ruleNonEmptyStatementSequence ) )
- {
- // InternalAppliedStereotypeProperty.g:11619:2: ( (lv_case_0_0= ruleSwitchCase ) )
- // InternalAppliedStereotypeProperty.g:11620:1: (lv_case_0_0= ruleSwitchCase )
- {
- // InternalAppliedStereotypeProperty.g:11620:1: (lv_case_0_0= ruleSwitchCase )
- // InternalAppliedStereotypeProperty.g:11621: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:11637:2: ( (lv_case_1_0= ruleSwitchCase ) )*
- loop195:
- do {
- int alt195=2;
- int LA195_0 = input.LA(1);
-
- if ( (LA195_0==110) ) {
- alt195=1;
- }
-
-
- switch (alt195) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:11638:1: (lv_case_1_0= ruleSwitchCase )
- {
- // InternalAppliedStereotypeProperty.g:11638:1: (lv_case_1_0= ruleSwitchCase )
- // InternalAppliedStereotypeProperty.g:11639: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 loop195;
- }
- } while (true);
-
- // InternalAppliedStereotypeProperty.g:11655:3: ( (lv_block_2_0= ruleNonEmptyStatementSequence ) )
- // InternalAppliedStereotypeProperty.g:11656:1: (lv_block_2_0= ruleNonEmptyStatementSequence )
- {
- // InternalAppliedStereotypeProperty.g:11656:1: (lv_block_2_0= ruleNonEmptyStatementSequence )
- // InternalAppliedStereotypeProperty.g:11657: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"
- // InternalAppliedStereotypeProperty.g:11681:1: entryRuleSwitchCase returns [EObject current=null] : iv_ruleSwitchCase= ruleSwitchCase EOF ;
- public final EObject entryRuleSwitchCase() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSwitchCase = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:11682:2: (iv_ruleSwitchCase= ruleSwitchCase EOF )
- // InternalAppliedStereotypeProperty.g:11683: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"
- // InternalAppliedStereotypeProperty.g:11690: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 {
- // InternalAppliedStereotypeProperty.g:11693:28: ( (otherlv_0= 'case' this_Expression_1= ruleExpression otherlv_2= ':' ) )
- // InternalAppliedStereotypeProperty.g:11694:1: (otherlv_0= 'case' this_Expression_1= ruleExpression otherlv_2= ':' )
- {
- // InternalAppliedStereotypeProperty.g:11694:1: (otherlv_0= 'case' this_Expression_1= ruleExpression otherlv_2= ':' )
- // InternalAppliedStereotypeProperty.g:11694: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_49);
- 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,46,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"
- // InternalAppliedStereotypeProperty.g:11722:1: entryRuleSwitchDefaultClause returns [EObject current=null] : iv_ruleSwitchDefaultClause= ruleSwitchDefaultClause EOF ;
- public final EObject entryRuleSwitchDefaultClause() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSwitchDefaultClause = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:11723:2: (iv_ruleSwitchDefaultClause= ruleSwitchDefaultClause EOF )
- // InternalAppliedStereotypeProperty.g:11724: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"
- // InternalAppliedStereotypeProperty.g:11731: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 {
- // InternalAppliedStereotypeProperty.g:11734:28: ( (otherlv_0= 'default' otherlv_1= ':' this_NonEmptyStatementSequence_2= ruleNonEmptyStatementSequence ) )
- // InternalAppliedStereotypeProperty.g:11735:1: (otherlv_0= 'default' otherlv_1= ':' this_NonEmptyStatementSequence_2= ruleNonEmptyStatementSequence )
- {
- // InternalAppliedStereotypeProperty.g:11735:1: (otherlv_0= 'default' otherlv_1= ':' this_NonEmptyStatementSequence_2= ruleNonEmptyStatementSequence )
- // InternalAppliedStereotypeProperty.g:11735:3: otherlv_0= 'default' otherlv_1= ':' this_NonEmptyStatementSequence_2= ruleNonEmptyStatementSequence
- {
- otherlv_0=(Token)match(input,111,FOLLOW_49); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getSwitchDefaultClauseAccess().getDefaultKeyword_0());
-
- }
- otherlv_1=(Token)match(input,46,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"
- // InternalAppliedStereotypeProperty.g:11763:1: entryRuleNonEmptyStatementSequence returns [EObject current=null] : iv_ruleNonEmptyStatementSequence= ruleNonEmptyStatementSequence EOF ;
- public final EObject entryRuleNonEmptyStatementSequence() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNonEmptyStatementSequence = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:11764:2: (iv_ruleNonEmptyStatementSequence= ruleNonEmptyStatementSequence EOF )
- // InternalAppliedStereotypeProperty.g:11765: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"
- // InternalAppliedStereotypeProperty.g:11772: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 {
- // InternalAppliedStereotypeProperty.g:11775:28: ( ( (lv_statement_0_0= ruleDocumentedStatement ) )+ )
- // InternalAppliedStereotypeProperty.g:11776:1: ( (lv_statement_0_0= ruleDocumentedStatement ) )+
- {
- // InternalAppliedStereotypeProperty.g:11776:1: ( (lv_statement_0_0= ruleDocumentedStatement ) )+
- int cnt196=0;
- loop196:
- do {
- int alt196=2;
- int LA196_0 = input.LA(1);
-
- if ( ((LA196_0>=RULE_BOOLEAN_VALUE && LA196_0<=RULE_INLINE_STATEMENT)||LA196_0==17||LA196_0==21||LA196_0==23||LA196_0==32||LA196_0==40||LA196_0==51||(LA196_0>=62 && LA196_0<=64)||(LA196_0>=69 && LA196_0<=76)||(LA196_0>=105 && LA196_0<=106)||LA196_0==109||(LA196_0>=112 && LA196_0<=117)) ) {
- alt196=1;
- }
-
-
- switch (alt196) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:11777:1: (lv_statement_0_0= ruleDocumentedStatement )
- {
- // InternalAppliedStereotypeProperty.g:11777:1: (lv_statement_0_0= ruleDocumentedStatement )
- // InternalAppliedStereotypeProperty.g:11778: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 ( cnt196 >= 1 ) break loop196;
- if (state.backtracking>0) {state.failed=true; return current;}
- EarlyExitException eee =
- new EarlyExitException(196, input);
- throw eee;
- }
- cnt196++;
- } while (true);
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleNonEmptyStatementSequence"
-
-
- // $ANTLR start "entryRuleWhileStatement"
- // InternalAppliedStereotypeProperty.g:11802:1: entryRuleWhileStatement returns [EObject current=null] : iv_ruleWhileStatement= ruleWhileStatement EOF ;
- public final EObject entryRuleWhileStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleWhileStatement = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:11803:2: (iv_ruleWhileStatement= ruleWhileStatement EOF )
- // InternalAppliedStereotypeProperty.g:11804: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"
- // InternalAppliedStereotypeProperty.g:11811: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 {
- // InternalAppliedStereotypeProperty.g:11814:28: ( (otherlv_0= 'while' otherlv_1= '(' ( (lv_condition_2_0= ruleExpression ) ) otherlv_3= ')' ( (lv_body_4_0= ruleBlock ) ) ) )
- // InternalAppliedStereotypeProperty.g:11815:1: (otherlv_0= 'while' otherlv_1= '(' ( (lv_condition_2_0= ruleExpression ) ) otherlv_3= ')' ( (lv_body_4_0= ruleBlock ) ) )
- {
- // InternalAppliedStereotypeProperty.g:11815:1: (otherlv_0= 'while' otherlv_1= '(' ( (lv_condition_2_0= ruleExpression ) ) otherlv_3= ')' ( (lv_body_4_0= ruleBlock ) ) )
- // InternalAppliedStereotypeProperty.g:11815: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_44); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getWhileStatementAccess().getWhileKeyword_0());
-
- }
- otherlv_1=(Token)match(input,17,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getWhileStatementAccess().getLeftParenthesisKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:11823:1: ( (lv_condition_2_0= ruleExpression ) )
- // InternalAppliedStereotypeProperty.g:11824:1: (lv_condition_2_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:11824:1: (lv_condition_2_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:11825: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,18,FOLLOW_19); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getWhileStatementAccess().getRightParenthesisKeyword_3());
-
- }
- // InternalAppliedStereotypeProperty.g:11845:1: ( (lv_body_4_0= ruleBlock ) )
- // InternalAppliedStereotypeProperty.g:11846:1: (lv_body_4_0= ruleBlock )
- {
- // InternalAppliedStereotypeProperty.g:11846:1: (lv_body_4_0= ruleBlock )
- // InternalAppliedStereotypeProperty.g:11847: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"
- // InternalAppliedStereotypeProperty.g:11871:1: entryRuleDoStatement returns [EObject current=null] : iv_ruleDoStatement= ruleDoStatement EOF ;
- public final EObject entryRuleDoStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleDoStatement = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:11872:2: (iv_ruleDoStatement= ruleDoStatement EOF )
- // InternalAppliedStereotypeProperty.g:11873: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"
- // InternalAppliedStereotypeProperty.g:11880: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 {
- // InternalAppliedStereotypeProperty.g:11883:28: ( (otherlv_0= 'do' ( (lv_body_1_0= ruleBlock ) ) otherlv_2= 'while' otherlv_3= '(' ( (lv_condition_4_0= ruleExpression ) ) otherlv_5= ')' otherlv_6= ';' ) )
- // InternalAppliedStereotypeProperty.g:11884:1: (otherlv_0= 'do' ( (lv_body_1_0= ruleBlock ) ) otherlv_2= 'while' otherlv_3= '(' ( (lv_condition_4_0= ruleExpression ) ) otherlv_5= ')' otherlv_6= ';' )
- {
- // InternalAppliedStereotypeProperty.g:11884:1: (otherlv_0= 'do' ( (lv_body_1_0= ruleBlock ) ) otherlv_2= 'while' otherlv_3= '(' ( (lv_condition_4_0= ruleExpression ) ) otherlv_5= ')' otherlv_6= ';' )
- // InternalAppliedStereotypeProperty.g:11884: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,40,FOLLOW_19); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getDoStatementAccess().getDoKeyword_0());
-
- }
- // InternalAppliedStereotypeProperty.g:11888:1: ( (lv_body_1_0= ruleBlock ) )
- // InternalAppliedStereotypeProperty.g:11889:1: (lv_body_1_0= ruleBlock )
- {
- // InternalAppliedStereotypeProperty.g:11889:1: (lv_body_1_0= ruleBlock )
- // InternalAppliedStereotypeProperty.g:11890: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_44); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getDoStatementAccess().getWhileKeyword_2());
-
- }
- otherlv_3=(Token)match(input,17,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getDoStatementAccess().getLeftParenthesisKeyword_3());
-
- }
- // InternalAppliedStereotypeProperty.g:11914:1: ( (lv_condition_4_0= ruleExpression ) )
- // InternalAppliedStereotypeProperty.g:11915:1: (lv_condition_4_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:11915:1: (lv_condition_4_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:11916: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,18,FOLLOW_11); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getDoStatementAccess().getRightParenthesisKeyword_5());
-
- }
- otherlv_6=(Token)match(input,23,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"
- // InternalAppliedStereotypeProperty.g:11948:1: entryRuleForStatement returns [EObject current=null] : iv_ruleForStatement= ruleForStatement EOF ;
- public final EObject entryRuleForStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleForStatement = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:11949:2: (iv_ruleForStatement= ruleForStatement EOF )
- // InternalAppliedStereotypeProperty.g:11950: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"
- // InternalAppliedStereotypeProperty.g:11957: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 {
- // InternalAppliedStereotypeProperty.g:11960: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 ) ) ) )
- // InternalAppliedStereotypeProperty.g:11961: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 ) ) )
- {
- // InternalAppliedStereotypeProperty.g:11961: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 ) ) )
- // InternalAppliedStereotypeProperty.g:11961: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_44); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getForStatementAccess().getForKeyword_0());
-
- }
- otherlv_1=(Token)match(input,17,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getForStatementAccess().getLeftParenthesisKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:11969:1: ( (lv_variableDefinition_2_0= ruleLoopVariableDefinition ) )
- // InternalAppliedStereotypeProperty.g:11970:1: (lv_variableDefinition_2_0= ruleLoopVariableDefinition )
- {
- // InternalAppliedStereotypeProperty.g:11970:1: (lv_variableDefinition_2_0= ruleLoopVariableDefinition )
- // InternalAppliedStereotypeProperty.g:11971:3: lv_variableDefinition_2_0= ruleLoopVariableDefinition
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getForStatementAccess().getVariableDefinitionLoopVariableDefinitionParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_46);
- 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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:11987:2: (otherlv_3= ',' ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) ) )*
- loop197:
- do {
- int alt197=2;
- int LA197_0 = input.LA(1);
-
- if ( (LA197_0==19) ) {
- alt197=1;
- }
-
-
- switch (alt197) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:11987:4: otherlv_3= ',' ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) )
- {
- otherlv_3=(Token)match(input,19,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getForStatementAccess().getCommaKeyword_3_0());
-
- }
- // InternalAppliedStereotypeProperty.g:11991:1: ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) )
- // InternalAppliedStereotypeProperty.g:11992:1: (lv_variableDefinition_4_0= ruleLoopVariableDefinition )
- {
- // InternalAppliedStereotypeProperty.g:11992:1: (lv_variableDefinition_4_0= ruleLoopVariableDefinition )
- // InternalAppliedStereotypeProperty.g:11993:3: lv_variableDefinition_4_0= ruleLoopVariableDefinition
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getForStatementAccess().getVariableDefinitionLoopVariableDefinitionParserRuleCall_3_1_0());
-
- }
- pushFollow(FOLLOW_46);
- 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 loop197;
- }
- } while (true);
-
- otherlv_5=(Token)match(input,18,FOLLOW_19); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getForStatementAccess().getRightParenthesisKeyword_4());
-
- }
- // InternalAppliedStereotypeProperty.g:12013:1: ( (lv_body_6_0= ruleBlock ) )
- // InternalAppliedStereotypeProperty.g:12014:1: (lv_body_6_0= ruleBlock )
- {
- // InternalAppliedStereotypeProperty.g:12014:1: (lv_body_6_0= ruleBlock )
- // InternalAppliedStereotypeProperty.g:12015: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"
- // InternalAppliedStereotypeProperty.g:12039:1: entryRuleLoopVariableDefinition returns [EObject current=null] : iv_ruleLoopVariableDefinition= ruleLoopVariableDefinition EOF ;
- public final EObject entryRuleLoopVariableDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleLoopVariableDefinition = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:12040:2: (iv_ruleLoopVariableDefinition= ruleLoopVariableDefinition EOF )
- // InternalAppliedStereotypeProperty.g:12041: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"
- // InternalAppliedStereotypeProperty.g:12048: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 {
- // InternalAppliedStereotypeProperty.g:12051: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 ) ) ) ) )
- // InternalAppliedStereotypeProperty.g:12052: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 ) ) ) )
- {
- // InternalAppliedStereotypeProperty.g:12052: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 alt200=2;
- switch ( input.LA(1) ) {
- case RULE_ID:
- {
- int LA200_1 = input.LA(2);
-
- if ( ((LA200_1>=RULE_ID && LA200_1<=RULE_UNRESTRICTED_NAME)||(LA200_1>=26 && LA200_1<=27)||LA200_1==37) ) {
- alt200=2;
- }
- else if ( (LA200_1==47) ) {
- alt200=1;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 200, 1, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_UNRESTRICTED_NAME:
- {
- int LA200_2 = input.LA(2);
-
- if ( ((LA200_2>=RULE_ID && LA200_2<=RULE_UNRESTRICTED_NAME)||(LA200_2>=26 && LA200_2<=27)||LA200_2==37) ) {
- alt200=2;
- }
- else if ( (LA200_2==47) ) {
- alt200=1;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 200, 2, input);
-
- throw nvae;
- }
- }
- break;
- case 51:
- {
- alt200=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 200, 0, input);
-
- throw nvae;
- }
-
- switch (alt200) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:12052:2: ( ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )? )
- {
- // InternalAppliedStereotypeProperty.g:12052:2: ( ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )? )
- // InternalAppliedStereotypeProperty.g:12052:3: ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )?
- {
- // InternalAppliedStereotypeProperty.g:12052:3: ( (lv_variable_0_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:12053:1: (lv_variable_0_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:12053:1: (lv_variable_0_0= ruleName )
- // InternalAppliedStereotypeProperty.g:12054: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:12070:2: ( (lv_typeIsInferred_1_0= 'in' ) )
- // InternalAppliedStereotypeProperty.g:12071:1: (lv_typeIsInferred_1_0= 'in' )
- {
- // InternalAppliedStereotypeProperty.g:12071:1: (lv_typeIsInferred_1_0= 'in' )
- // InternalAppliedStereotypeProperty.g:12072:3: lv_typeIsInferred_1_0= 'in'
- {
- lv_typeIsInferred_1_0=(Token)match(input,47,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");
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:12085:2: ( (lv_expression1_2_0= ruleExpression ) )
- // InternalAppliedStereotypeProperty.g:12086:1: (lv_expression1_2_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:12086:1: (lv_expression1_2_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:12087: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:12103:2: (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )?
- int alt198=2;
- int LA198_0 = input.LA(1);
-
- if ( (LA198_0==54) ) {
- alt198=1;
- }
- switch (alt198) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:12103: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());
-
- }
- // InternalAppliedStereotypeProperty.g:12107:1: ( (lv_expression2_4_0= ruleExpression ) )
- // InternalAppliedStereotypeProperty.g:12108:1: (lv_expression2_4_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:12108:1: (lv_expression2_4_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:12109: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 :
- // InternalAppliedStereotypeProperty.g:12126:6: ( ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) ) )
- {
- // InternalAppliedStereotypeProperty.g:12126:6: ( ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) ) )
- // InternalAppliedStereotypeProperty.g:12126:7: ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) )
- {
- // InternalAppliedStereotypeProperty.g:12126:7: ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) )
- int alt199=2;
- int LA199_0 = input.LA(1);
-
- if ( (LA199_0==51) ) {
- alt199=1;
- }
- else if ( ((LA199_0>=RULE_ID && LA199_0<=RULE_UNRESTRICTED_NAME)) ) {
- alt199=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 199, 0, input);
-
- throw nvae;
- }
- switch (alt199) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:12126:8: ( (lv_isAny_5_0= 'any' ) )
- {
- // InternalAppliedStereotypeProperty.g:12126:8: ( (lv_isAny_5_0= 'any' ) )
- // InternalAppliedStereotypeProperty.g:12127:1: (lv_isAny_5_0= 'any' )
- {
- // InternalAppliedStereotypeProperty.g:12127:1: (lv_isAny_5_0= 'any' )
- // InternalAppliedStereotypeProperty.g:12128:3: lv_isAny_5_0= 'any'
- {
- lv_isAny_5_0=(Token)match(input,51,FOLLOW_14); 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 :
- // InternalAppliedStereotypeProperty.g:12142:6: ( (lv_typeName_6_0= ruleQualifiedName ) )
- {
- // InternalAppliedStereotypeProperty.g:12142:6: ( (lv_typeName_6_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:12143:1: (lv_typeName_6_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:12143:1: (lv_typeName_6_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:12144:3: lv_typeName_6_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getTypeNameQualifiedNameParserRuleCall_1_0_1_0());
-
- }
- pushFollow(FOLLOW_14);
- 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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:12160:3: ( (lv_variable_7_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:12161:1: (lv_variable_7_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:12161:1: (lv_variable_7_0= ruleName )
- // InternalAppliedStereotypeProperty.g:12162:3: lv_variable_7_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getVariableNameParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_49);
- 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,46,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_8, grammarAccess.getLoopVariableDefinitionAccess().getColonKeyword_1_2());
-
- }
- // InternalAppliedStereotypeProperty.g:12182:1: ( (lv_expression1_9_0= ruleExpression ) )
- // InternalAppliedStereotypeProperty.g:12183:1: (lv_expression1_9_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:12183:1: (lv_expression1_9_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:12184: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"
- // InternalAppliedStereotypeProperty.g:12208:1: entryRuleBreakStatement returns [EObject current=null] : iv_ruleBreakStatement= ruleBreakStatement EOF ;
- public final EObject entryRuleBreakStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBreakStatement = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:12209:2: (iv_ruleBreakStatement= ruleBreakStatement EOF )
- // InternalAppliedStereotypeProperty.g:12210: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"
- // InternalAppliedStereotypeProperty.g:12217: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 {
- // InternalAppliedStereotypeProperty.g:12220:28: ( ( () otherlv_1= 'break' otherlv_2= ';' ) )
- // InternalAppliedStereotypeProperty.g:12221:1: ( () otherlv_1= 'break' otherlv_2= ';' )
- {
- // InternalAppliedStereotypeProperty.g:12221:1: ( () otherlv_1= 'break' otherlv_2= ';' )
- // InternalAppliedStereotypeProperty.g:12221:2: () otherlv_1= 'break' otherlv_2= ';'
- {
- // InternalAppliedStereotypeProperty.g:12221:2: ()
- // InternalAppliedStereotypeProperty.g:12222: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,23,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"
- // InternalAppliedStereotypeProperty.g:12246:1: entryRuleReturnStatement returns [EObject current=null] : iv_ruleReturnStatement= ruleReturnStatement EOF ;
- public final EObject entryRuleReturnStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleReturnStatement = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:12247:2: (iv_ruleReturnStatement= ruleReturnStatement EOF )
- // InternalAppliedStereotypeProperty.g:12248: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"
- // InternalAppliedStereotypeProperty.g:12255: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 {
- // InternalAppliedStereotypeProperty.g:12258:28: ( ( () otherlv_1= 'return' ( (lv_expression_2_0= ruleExpression ) )? otherlv_3= ';' ) )
- // InternalAppliedStereotypeProperty.g:12259:1: ( () otherlv_1= 'return' ( (lv_expression_2_0= ruleExpression ) )? otherlv_3= ';' )
- {
- // InternalAppliedStereotypeProperty.g:12259:1: ( () otherlv_1= 'return' ( (lv_expression_2_0= ruleExpression ) )? otherlv_3= ';' )
- // InternalAppliedStereotypeProperty.g:12259:2: () otherlv_1= 'return' ( (lv_expression_2_0= ruleExpression ) )? otherlv_3= ';'
- {
- // InternalAppliedStereotypeProperty.g:12259:2: ()
- // InternalAppliedStereotypeProperty.g:12260: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());
-
- }
- // InternalAppliedStereotypeProperty.g:12272:1: ( (lv_expression_2_0= ruleExpression ) )?
- int alt201=2;
- int LA201_0 = input.LA(1);
-
- if ( ((LA201_0>=RULE_BOOLEAN_VALUE && LA201_0<=RULE_STRING)||(LA201_0>=RULE_ID && LA201_0<=RULE_UNRESTRICTED_NAME)||LA201_0==17||LA201_0==21||LA201_0==51||(LA201_0>=62 && LA201_0<=64)||(LA201_0>=69 && LA201_0<=76)) ) {
- alt201=1;
- }
- switch (alt201) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:12273:1: (lv_expression_2_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:12273:1: (lv_expression_2_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:12274: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,23,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"
- // InternalAppliedStereotypeProperty.g:12302:1: entryRuleAcceptStatement returns [EObject current=null] : iv_ruleAcceptStatement= ruleAcceptStatement EOF ;
- public final EObject entryRuleAcceptStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAcceptStatement = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:12303:2: (iv_ruleAcceptStatement= ruleAcceptStatement EOF )
- // InternalAppliedStereotypeProperty.g:12304: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"
- // InternalAppliedStereotypeProperty.g:12311: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 {
- // InternalAppliedStereotypeProperty.g:12314:28: ( ( ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' ) | ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* ) ) )
- // InternalAppliedStereotypeProperty.g:12315:1: ( ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' ) | ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* ) )
- {
- // InternalAppliedStereotypeProperty.g:12315:1: ( ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' ) | ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* ) )
- int alt203=2;
- int LA203_0 = input.LA(1);
-
- if ( (LA203_0==116) ) {
- int LA203_1 = input.LA(2);
-
- if ( (synpred269_InternalAppliedStereotypeProperty()) ) {
- alt203=1;
- }
- else if ( (true) ) {
- alt203=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 203, 1, input);
-
- throw nvae;
- }
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 203, 0, input);
-
- throw nvae;
- }
- switch (alt203) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:12315:2: ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' )
- {
- // InternalAppliedStereotypeProperty.g:12315:2: ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' )
- // InternalAppliedStereotypeProperty.g:12315:3: ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';'
- {
- // InternalAppliedStereotypeProperty.g:12315:3: ( (lv_acceptBlock_0_0= ruleAcceptClause ) )
- // InternalAppliedStereotypeProperty.g:12316:1: (lv_acceptBlock_0_0= ruleAcceptClause )
- {
- // InternalAppliedStereotypeProperty.g:12316:1: (lv_acceptBlock_0_0= ruleAcceptClause )
- // InternalAppliedStereotypeProperty.g:12317: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,23,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getAcceptStatementAccess().getSemicolonKeyword_0_1());
-
- }
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:12338:6: ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:12338:6: ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* )
- // InternalAppliedStereotypeProperty.g:12338:7: ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )*
- {
- // InternalAppliedStereotypeProperty.g:12338:7: ( (lv_acceptBlock_2_0= ruleAcceptBlock ) )
- // InternalAppliedStereotypeProperty.g:12339:1: (lv_acceptBlock_2_0= ruleAcceptBlock )
- {
- // InternalAppliedStereotypeProperty.g:12339:1: (lv_acceptBlock_2_0= ruleAcceptBlock )
- // InternalAppliedStereotypeProperty.g:12340: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:12356:2: (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )*
- loop202:
- do {
- int alt202=2;
- int LA202_0 = input.LA(1);
-
- if ( (LA202_0==108) ) {
- alt202=1;
- }
-
-
- switch (alt202) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:12356: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());
-
- }
- // InternalAppliedStereotypeProperty.g:12360:1: ( (lv_acceptBlock_4_0= ruleAcceptBlock ) )
- // InternalAppliedStereotypeProperty.g:12361:1: (lv_acceptBlock_4_0= ruleAcceptBlock )
- {
- // InternalAppliedStereotypeProperty.g:12361:1: (lv_acceptBlock_4_0= ruleAcceptBlock )
- // InternalAppliedStereotypeProperty.g:12362: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 loop202;
- }
- } while (true);
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleAcceptStatement"
-
-
- // $ANTLR start "entryRuleAcceptBlock"
- // InternalAppliedStereotypeProperty.g:12386:1: entryRuleAcceptBlock returns [EObject current=null] : iv_ruleAcceptBlock= ruleAcceptBlock EOF ;
- public final EObject entryRuleAcceptBlock() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAcceptBlock = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:12387:2: (iv_ruleAcceptBlock= ruleAcceptBlock EOF )
- // InternalAppliedStereotypeProperty.g:12388: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"
- // InternalAppliedStereotypeProperty.g:12395: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 {
- // InternalAppliedStereotypeProperty.g:12398:28: ( (this_AcceptClause_0= ruleAcceptClause ( (lv_block_1_0= ruleBlock ) ) ) )
- // InternalAppliedStereotypeProperty.g:12399:1: (this_AcceptClause_0= ruleAcceptClause ( (lv_block_1_0= ruleBlock ) ) )
- {
- // InternalAppliedStereotypeProperty.g:12399:1: (this_AcceptClause_0= ruleAcceptClause ( (lv_block_1_0= ruleBlock ) ) )
- // InternalAppliedStereotypeProperty.g:12400: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_19);
- this_AcceptClause_0=ruleAcceptClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_AcceptClause_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAppliedStereotypeProperty.g:12411:1: ( (lv_block_1_0= ruleBlock ) )
- // InternalAppliedStereotypeProperty.g:12412:1: (lv_block_1_0= ruleBlock )
- {
- // InternalAppliedStereotypeProperty.g:12412:1: (lv_block_1_0= ruleBlock )
- // InternalAppliedStereotypeProperty.g:12413: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"
- // InternalAppliedStereotypeProperty.g:12437:1: entryRuleAcceptClause returns [EObject current=null] : iv_ruleAcceptClause= ruleAcceptClause EOF ;
- public final EObject entryRuleAcceptClause() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAcceptClause = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:12438:2: (iv_ruleAcceptClause= ruleAcceptClause EOF )
- // InternalAppliedStereotypeProperty.g:12439: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"
- // InternalAppliedStereotypeProperty.g:12446: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 {
- // InternalAppliedStereotypeProperty.g:12449:28: ( (otherlv_0= 'accept' otherlv_1= '(' ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )? ( (lv_signalNames_4_0= ruleQualifiedNameList ) ) otherlv_5= ')' ) )
- // InternalAppliedStereotypeProperty.g:12450:1: (otherlv_0= 'accept' otherlv_1= '(' ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )? ( (lv_signalNames_4_0= ruleQualifiedNameList ) ) otherlv_5= ')' )
- {
- // InternalAppliedStereotypeProperty.g:12450:1: (otherlv_0= 'accept' otherlv_1= '(' ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )? ( (lv_signalNames_4_0= ruleQualifiedNameList ) ) otherlv_5= ')' )
- // InternalAppliedStereotypeProperty.g:12450: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_44); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getAcceptClauseAccess().getAcceptKeyword_0());
-
- }
- otherlv_1=(Token)match(input,17,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getAcceptClauseAccess().getLeftParenthesisKeyword_1());
-
- }
- // InternalAppliedStereotypeProperty.g:12458:1: ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )?
- int alt204=2;
- int LA204_0 = input.LA(1);
-
- if ( (LA204_0==RULE_ID) ) {
- int LA204_1 = input.LA(2);
-
- if ( (LA204_1==46) ) {
- alt204=1;
- }
- }
- else if ( (LA204_0==RULE_UNRESTRICTED_NAME) ) {
- int LA204_2 = input.LA(2);
-
- if ( (LA204_2==46) ) {
- alt204=1;
- }
- }
- switch (alt204) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:12458:2: ( (lv_name_2_0= ruleName ) ) otherlv_3= ':'
- {
- // InternalAppliedStereotypeProperty.g:12458:2: ( (lv_name_2_0= ruleName ) )
- // InternalAppliedStereotypeProperty.g:12459:1: (lv_name_2_0= ruleName )
- {
- // InternalAppliedStereotypeProperty.g:12459:1: (lv_name_2_0= ruleName )
- // InternalAppliedStereotypeProperty.g:12460:3: lv_name_2_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAcceptClauseAccess().getNameNameParserRuleCall_2_0_0());
-
- }
- pushFollow(FOLLOW_49);
- 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,46,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getAcceptClauseAccess().getColonKeyword_2_1());
-
- }
-
- }
- break;
-
- }
-
- // InternalAppliedStereotypeProperty.g:12480:3: ( (lv_signalNames_4_0= ruleQualifiedNameList ) )
- // InternalAppliedStereotypeProperty.g:12481:1: (lv_signalNames_4_0= ruleQualifiedNameList )
- {
- // InternalAppliedStereotypeProperty.g:12481:1: (lv_signalNames_4_0= ruleQualifiedNameList )
- // InternalAppliedStereotypeProperty.g:12482: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,18,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"
- // InternalAppliedStereotypeProperty.g:12510:1: entryRuleClassifyStatement returns [EObject current=null] : iv_ruleClassifyStatement= ruleClassifyStatement EOF ;
- public final EObject entryRuleClassifyStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassifyStatement = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:12511:2: (iv_ruleClassifyStatement= ruleClassifyStatement EOF )
- // InternalAppliedStereotypeProperty.g:12512: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"
- // InternalAppliedStereotypeProperty.g:12519: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 {
- // InternalAppliedStereotypeProperty.g:12522: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= ';' ) )
- // InternalAppliedStereotypeProperty.g:12523: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= ';' )
- {
- // InternalAppliedStereotypeProperty.g:12523: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= ';' )
- // InternalAppliedStereotypeProperty.g:12523: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());
-
- }
- // InternalAppliedStereotypeProperty.g:12527:1: ( (lv_expression_1_0= ruleExpression ) )
- // InternalAppliedStereotypeProperty.g:12528:1: (lv_expression_1_0= ruleExpression )
- {
- // InternalAppliedStereotypeProperty.g:12528:1: (lv_expression_1_0= ruleExpression )
- // InternalAppliedStereotypeProperty.g:12529: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:12545:2: ( ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? ) | ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) ) )
- int alt207=2;
- int LA207_0 = input.LA(1);
-
- if ( (LA207_0==118) ) {
- int LA207_1 = input.LA(2);
-
- if ( (LA207_1==21) ) {
- alt207=2;
- }
- else if ( ((LA207_1>=RULE_ID && LA207_1<=RULE_UNRESTRICTED_NAME)) ) {
- alt207=1;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 207, 1, input);
-
- throw nvae;
- }
- }
- else if ( (LA207_0==119) ) {
- alt207=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 207, 0, input);
-
- throw nvae;
- }
- switch (alt207) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:12545:3: ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? )
- {
- // InternalAppliedStereotypeProperty.g:12545:3: ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? )
- // InternalAppliedStereotypeProperty.g:12545:4: ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )?
- {
- // InternalAppliedStereotypeProperty.g:12545:4: ( (lv_fromList_2_0= ruleClassificationFromClause ) )
- // InternalAppliedStereotypeProperty.g:12546:1: (lv_fromList_2_0= ruleClassificationFromClause )
- {
- // InternalAppliedStereotypeProperty.g:12546:1: (lv_fromList_2_0= ruleClassificationFromClause )
- // InternalAppliedStereotypeProperty.g:12547: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:12563:2: ( (lv_toList_3_0= ruleClassificationToClause ) )?
- int alt205=2;
- int LA205_0 = input.LA(1);
-
- if ( (LA205_0==119) ) {
- alt205=1;
- }
- switch (alt205) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:12564:1: (lv_toList_3_0= ruleClassificationToClause )
- {
- // InternalAppliedStereotypeProperty.g:12564:1: (lv_toList_3_0= ruleClassificationToClause )
- // InternalAppliedStereotypeProperty.g:12565: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 :
- // InternalAppliedStereotypeProperty.g:12582:6: ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) )
- {
- // InternalAppliedStereotypeProperty.g:12582:6: ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) )
- // InternalAppliedStereotypeProperty.g:12582:7: ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) )
- {
- // InternalAppliedStereotypeProperty.g:12582:7: ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )?
- int alt206=2;
- int LA206_0 = input.LA(1);
-
- if ( (LA206_0==118) ) {
- alt206=1;
- }
- switch (alt206) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:12583:1: (lv_isReclassifyAll_4_0= ruleReclassifyAllClause )
- {
- // InternalAppliedStereotypeProperty.g:12583:1: (lv_isReclassifyAll_4_0= ruleReclassifyAllClause )
- // InternalAppliedStereotypeProperty.g:12584: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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:12600:3: ( (lv_toList_5_0= ruleClassificationToClause ) )
- // InternalAppliedStereotypeProperty.g:12601:1: (lv_toList_5_0= ruleClassificationToClause )
- {
- // InternalAppliedStereotypeProperty.g:12601:1: (lv_toList_5_0= ruleClassificationToClause )
- // InternalAppliedStereotypeProperty.g:12602: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,23,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"
- // InternalAppliedStereotypeProperty.g:12630:1: entryRuleClassificationFromClause returns [EObject current=null] : iv_ruleClassificationFromClause= ruleClassificationFromClause EOF ;
- public final EObject entryRuleClassificationFromClause() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassificationFromClause = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:12631:2: (iv_ruleClassificationFromClause= ruleClassificationFromClause EOF )
- // InternalAppliedStereotypeProperty.g:12632: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"
- // InternalAppliedStereotypeProperty.g:12639: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 {
- // InternalAppliedStereotypeProperty.g:12642:28: ( (otherlv_0= 'from' this_QualifiedNameList_1= ruleQualifiedNameList ) )
- // InternalAppliedStereotypeProperty.g:12643:1: (otherlv_0= 'from' this_QualifiedNameList_1= ruleQualifiedNameList )
- {
- // InternalAppliedStereotypeProperty.g:12643:1: (otherlv_0= 'from' this_QualifiedNameList_1= ruleQualifiedNameList )
- // InternalAppliedStereotypeProperty.g:12643: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"
- // InternalAppliedStereotypeProperty.g:12667:1: entryRuleClassificationToClause returns [EObject current=null] : iv_ruleClassificationToClause= ruleClassificationToClause EOF ;
- public final EObject entryRuleClassificationToClause() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassificationToClause = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:12668:2: (iv_ruleClassificationToClause= ruleClassificationToClause EOF )
- // InternalAppliedStereotypeProperty.g:12669: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"
- // InternalAppliedStereotypeProperty.g:12676: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 {
- // InternalAppliedStereotypeProperty.g:12679:28: ( (otherlv_0= 'to' this_QualifiedNameList_1= ruleQualifiedNameList ) )
- // InternalAppliedStereotypeProperty.g:12680:1: (otherlv_0= 'to' this_QualifiedNameList_1= ruleQualifiedNameList )
- {
- // InternalAppliedStereotypeProperty.g:12680:1: (otherlv_0= 'to' this_QualifiedNameList_1= ruleQualifiedNameList )
- // InternalAppliedStereotypeProperty.g:12680: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"
- // InternalAppliedStereotypeProperty.g:12704:1: entryRuleReclassifyAllClause returns [String current=null] : iv_ruleReclassifyAllClause= ruleReclassifyAllClause EOF ;
- public final String entryRuleReclassifyAllClause() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleReclassifyAllClause = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:12705:2: (iv_ruleReclassifyAllClause= ruleReclassifyAllClause EOF )
- // InternalAppliedStereotypeProperty.g:12706: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"
- // InternalAppliedStereotypeProperty.g:12713: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 {
- // InternalAppliedStereotypeProperty.g:12716:28: ( (kw= 'from' kw= '*' ) )
- // InternalAppliedStereotypeProperty.g:12717:1: (kw= 'from' kw= '*' )
- {
- // InternalAppliedStereotypeProperty.g:12717:1: (kw= 'from' kw= '*' )
- // InternalAppliedStereotypeProperty.g:12718:2: kw= 'from' kw= '*'
- {
- kw=(Token)match(input,118,FOLLOW_17); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getReclassifyAllClauseAccess().getFromKeyword_0());
-
- }
- kw=(Token)match(input,21,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"
- // InternalAppliedStereotypeProperty.g:12737:1: entryRuleQualifiedNameList returns [EObject current=null] : iv_ruleQualifiedNameList= ruleQualifiedNameList EOF ;
- public final EObject entryRuleQualifiedNameList() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleQualifiedNameList = null;
-
-
- try {
- // InternalAppliedStereotypeProperty.g:12738:2: (iv_ruleQualifiedNameList= ruleQualifiedNameList EOF )
- // InternalAppliedStereotypeProperty.g:12739: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"
- // InternalAppliedStereotypeProperty.g:12746: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 {
- // InternalAppliedStereotypeProperty.g:12749:28: ( ( ( (lv_name_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )* ) )
- // InternalAppliedStereotypeProperty.g:12750:1: ( ( (lv_name_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:12750:1: ( ( (lv_name_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )* )
- // InternalAppliedStereotypeProperty.g:12750:2: ( (lv_name_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )*
- {
- // InternalAppliedStereotypeProperty.g:12750:2: ( (lv_name_0_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:12751:1: (lv_name_0_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:12751:1: (lv_name_0_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:12752: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();
-
- }
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:12768:2: (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )*
- loop208:
- do {
- int alt208=2;
- int LA208_0 = input.LA(1);
-
- if ( (LA208_0==19) ) {
- alt208=1;
- }
-
-
- switch (alt208) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:12768:4: otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) )
- {
- otherlv_1=(Token)match(input,19,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getQualifiedNameListAccess().getCommaKeyword_1_0());
-
- }
- // InternalAppliedStereotypeProperty.g:12772:1: ( (lv_name_2_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:12773:1: (lv_name_2_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:12773:1: (lv_name_2_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:12774: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 loop208;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleQualifiedNameList"
-
- // $ANTLR start synpred8_InternalAppliedStereotypeProperty
- public final void synpred8_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- EObject this_PackageImportReference_0 = null;
-
-
- // InternalAppliedStereotypeProperty.g:494:2: (this_PackageImportReference_0= rulePackageImportReference )
- // InternalAppliedStereotypeProperty.g:494:2: this_PackageImportReference_0= rulePackageImportReference
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_PackageImportReference_0=rulePackageImportReference();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred8_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred115_InternalAppliedStereotypeProperty
- public final void synpred115_InternalAppliedStereotypeProperty_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;
-
-
- // InternalAppliedStereotypeProperty.g:4599: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' ) ) )? )
- // InternalAppliedStereotypeProperty.g:4599: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' ) ) )?
- {
- // InternalAppliedStereotypeProperty.g:4599:4: (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )?
- int alt227=2;
- int LA227_0 = input.LA(1);
-
- if ( (LA227_0==52) ) {
- alt227=1;
- }
- switch (alt227) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4599: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 ;
- // InternalAppliedStereotypeProperty.g:4603:1: ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) )
- int alt226=2;
- int LA226_0 = input.LA(1);
-
- if ( (LA226_0==53) ) {
- alt226=1;
- }
- else if ( (LA226_0==RULE_NATURAL_VALUE||LA226_0==21) ) {
- alt226=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return ;}
- NoViableAltException nvae =
- new NoViableAltException("", 226, 0, input);
-
- throw nvae;
- }
- switch (alt226) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4603:2: ( (lv_isMultiplicity_3_0= ']' ) )
- {
- // InternalAppliedStereotypeProperty.g:4603:2: ( (lv_isMultiplicity_3_0= ']' ) )
- // InternalAppliedStereotypeProperty.g:4604:1: (lv_isMultiplicity_3_0= ']' )
- {
- // InternalAppliedStereotypeProperty.g:4604:1: (lv_isMultiplicity_3_0= ']' )
- // InternalAppliedStereotypeProperty.g:4605:3: lv_isMultiplicity_3_0= ']'
- {
- lv_isMultiplicity_3_0=(Token)match(input,53,FOLLOW_54); if (state.failed) return ;
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:4619:6: ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' )
- {
- // InternalAppliedStereotypeProperty.g:4619:6: ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' )
- // InternalAppliedStereotypeProperty.g:4619:7: ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']'
- {
- // InternalAppliedStereotypeProperty.g:4619:7: ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )?
- int alt225=2;
- int LA225_0 = input.LA(1);
-
- if ( (LA225_0==RULE_NATURAL_VALUE) ) {
- int LA225_1 = input.LA(2);
-
- if ( (LA225_1==54) ) {
- alt225=1;
- }
- }
- switch (alt225) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4619:8: ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..'
- {
- // InternalAppliedStereotypeProperty.g:4619:8: ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) )
- // InternalAppliedStereotypeProperty.g:4620:1: (lv_lowerBound_4_0= RULE_NATURAL_VALUE )
- {
- // InternalAppliedStereotypeProperty.g:4620:1: (lv_lowerBound_4_0= RULE_NATURAL_VALUE )
- // InternalAppliedStereotypeProperty.g:4621: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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:4641:3: ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) )
- // InternalAppliedStereotypeProperty.g:4642:1: (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral )
- {
- // InternalAppliedStereotypeProperty.g:4642:1: (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral )
- // InternalAppliedStereotypeProperty.g:4643: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;
-
- }
-
- // InternalAppliedStereotypeProperty.g:4663: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 alt230=4;
- switch ( input.LA(1) ) {
- case 55:
- {
- alt230=1;
- }
- break;
- case 56:
- {
- alt230=2;
- }
- break;
- case 57:
- {
- alt230=3;
- }
- break;
- }
-
- switch (alt230) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4663:6: ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? )
- {
- // InternalAppliedStereotypeProperty.g:4663:6: ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? )
- // InternalAppliedStereotypeProperty.g:4663:7: ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )?
- {
- // InternalAppliedStereotypeProperty.g:4663:7: ( (lv_isOrdered_8_0= 'ordered' ) )
- // InternalAppliedStereotypeProperty.g:4664:1: (lv_isOrdered_8_0= 'ordered' )
- {
- // InternalAppliedStereotypeProperty.g:4664:1: (lv_isOrdered_8_0= 'ordered' )
- // InternalAppliedStereotypeProperty.g:4665:3: lv_isOrdered_8_0= 'ordered'
- {
- lv_isOrdered_8_0=(Token)match(input,55,FOLLOW_57); if (state.failed) return ;
- }
+ input.seek(index145_5);
+ if (s >= 0)
+ return s;
+ break;
+ case 5:
+ int LA145_6 = input.LA(1);
- }
+ int index145_6 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred178_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
- // InternalAppliedStereotypeProperty.g:4678:2: ( (lv_isNonunique_9_0= 'nonunique' ) )?
- int alt228=2;
- int LA228_0 = input.LA(1);
+ else if ((true)) {
+ s = 20;
+ }
- if ( (LA228_0==56) ) {
- alt228=1;
- }
- switch (alt228) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4679:1: (lv_isNonunique_9_0= 'nonunique' )
- {
- // InternalAppliedStereotypeProperty.g:4679:1: (lv_isNonunique_9_0= 'nonunique' )
- // InternalAppliedStereotypeProperty.g:4680:3: lv_isNonunique_9_0= 'nonunique'
- {
- lv_isNonunique_9_0=(Token)match(input,56,FOLLOW_2); if (state.failed) return ;
- }
+ input.seek(index145_6);
+ if (s >= 0)
+ return s;
+ break;
+ case 6:
+ int LA145_7 = input.LA(1);
- }
- break;
+ int index145_7 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred178_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
- }
+ else if ((true)) {
+ s = 20;
+ }
- }
+ input.seek(index145_7);
+ if (s >= 0)
+ return s;
+ break;
+ case 7:
+ int LA145_8 = input.LA(1);
- }
- break;
- case 2 :
- // InternalAppliedStereotypeProperty.g:4694:6: ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? )
- {
- // InternalAppliedStereotypeProperty.g:4694:6: ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? )
- // InternalAppliedStereotypeProperty.g:4694:7: ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )?
- {
- // InternalAppliedStereotypeProperty.g:4694:7: ( (lv_isNonunique_10_0= 'nonunique' ) )
- // InternalAppliedStereotypeProperty.g:4695:1: (lv_isNonunique_10_0= 'nonunique' )
- {
- // InternalAppliedStereotypeProperty.g:4695:1: (lv_isNonunique_10_0= 'nonunique' )
- // InternalAppliedStereotypeProperty.g:4696:3: lv_isNonunique_10_0= 'nonunique'
- {
- lv_isNonunique_10_0=(Token)match(input,56,FOLLOW_58); if (state.failed) return ;
+ int index145_8 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred178_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
- }
+ else if ((true)) {
+ s = 20;
+ }
- }
+ input.seek(index145_8);
+ if (s >= 0)
+ return s;
+ break;
+ case 8:
+ int LA145_9 = input.LA(1);
- // InternalAppliedStereotypeProperty.g:4709:2: ( (lv_isOrdered_11_0= 'ordered' ) )?
- int alt229=2;
- int LA229_0 = input.LA(1);
- if ( (LA229_0==55) ) {
- alt229=1;
- }
- switch (alt229) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:4710:1: (lv_isOrdered_11_0= 'ordered' )
- {
- // InternalAppliedStereotypeProperty.g:4710:1: (lv_isOrdered_11_0= 'ordered' )
- // InternalAppliedStereotypeProperty.g:4711:3: lv_isOrdered_11_0= 'ordered'
- {
- lv_isOrdered_11_0=(Token)match(input,55,FOLLOW_2); if (state.failed) return ;
+ int index145_9 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred178_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
- }
+ else if ((true)) {
+ s = 20;
+ }
- }
- break;
+ input.seek(index145_9);
+ if (s >= 0)
+ return s;
+ break;
+ case 9:
+ int LA145_10 = input.LA(1);
- }
+ int index145_10 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred178_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
- }
+ else if ((true)) {
+ s = 20;
+ }
- }
- break;
- case 3 :
- // InternalAppliedStereotypeProperty.g:4725:6: ( (lv_isSequence_12_0= 'sequence' ) )
- {
- // InternalAppliedStereotypeProperty.g:4725:6: ( (lv_isSequence_12_0= 'sequence' ) )
- // InternalAppliedStereotypeProperty.g:4726:1: (lv_isSequence_12_0= 'sequence' )
- {
- // InternalAppliedStereotypeProperty.g:4726:1: (lv_isSequence_12_0= 'sequence' )
- // InternalAppliedStereotypeProperty.g:4727:3: lv_isSequence_12_0= 'sequence'
- {
- lv_isSequence_12_0=(Token)match(input,57,FOLLOW_2); if (state.failed) return ;
+ input.seek(index145_10);
+ if (s >= 0)
+ return s;
+ break;
+ case 10:
+ int LA145_11 = input.LA(1);
- }
+ int index145_11 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred178_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
- }
+ else if ((true)) {
+ s = 20;
+ }
- }
- break;
+ input.seek(index145_11);
+ if (s >= 0)
+ return s;
+ break;
+ case 11:
+ int LA145_12 = input.LA(1);
- }
+ int index145_12 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred178_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
- }
- }
- // $ANTLR end synpred115_InternalAppliedStereotypeProperty
+ else if ((true)) {
+ s = 20;
+ }
- // $ANTLR start synpred129_InternalAppliedStereotypeProperty
- public final void synpred129_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- Token otherlv_3=null;
- EObject lv_nameBinding_4_0 = null;
+ input.seek(index145_12);
+ if (s >= 0)
+ return s;
+ break;
+ case 12:
+ int LA145_13 = input.LA(1);
- // InternalAppliedStereotypeProperty.g:5296:8: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )
- // InternalAppliedStereotypeProperty.g:5296:8: otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) )
- {
- otherlv_3=(Token)match(input,27,FOLLOW_14); if (state.failed) return ;
- // InternalAppliedStereotypeProperty.g:5300:1: ( (lv_nameBinding_4_0= ruleNameBinding ) )
- // InternalAppliedStereotypeProperty.g:5301:1: (lv_nameBinding_4_0= ruleNameBinding )
- {
- // InternalAppliedStereotypeProperty.g:5301:1: (lv_nameBinding_4_0= ruleNameBinding )
- // InternalAppliedStereotypeProperty.g:5302: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 ;
-
- }
-
-
- }
+ int index145_13 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred178_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
- }
- }
- // $ANTLR end synpred129_InternalAppliedStereotypeProperty
+ else if ((true)) {
+ s = 20;
+ }
- // $ANTLR start synpred130_InternalAppliedStereotypeProperty
- public final void synpred130_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- Token otherlv_3=null;
- EObject lv_nameBinding_4_0 = null;
+ input.seek(index145_13);
+ if (s >= 0)
+ return s;
+ break;
+ case 13:
+ int LA145_14 = input.LA(1);
- // InternalAppliedStereotypeProperty.g:5296:6: ( (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )
- // InternalAppliedStereotypeProperty.g:5296:6: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+
- {
- // InternalAppliedStereotypeProperty.g:5296:6: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+
- int cnt233=0;
- loop233:
- do {
- int alt233=2;
- int LA233_0 = input.LA(1);
- if ( (LA233_0==27) ) {
- alt233=1;
- }
+ int index145_14 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred178_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
-
- switch (alt233) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:5296:8: otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) )
- {
- otherlv_3=(Token)match(input,27,FOLLOW_14); if (state.failed) return ;
- // InternalAppliedStereotypeProperty.g:5300:1: ( (lv_nameBinding_4_0= ruleNameBinding ) )
- // InternalAppliedStereotypeProperty.g:5301:1: (lv_nameBinding_4_0= ruleNameBinding )
- {
- // InternalAppliedStereotypeProperty.g:5301:1: (lv_nameBinding_4_0= ruleNameBinding )
- // InternalAppliedStereotypeProperty.g:5302: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 ;
-
- }
+ else if ((true)) {
+ s = 20;
+ }
- }
-
+ input.seek(index145_14);
+ if (s >= 0)
+ return s;
+ break;
+ case 14:
+ int LA145_15 = input.LA(1);
- }
- break;
-
- default :
- if ( cnt233 >= 1 ) break loop233;
- if (state.backtracking>0) {state.failed=true; return ;}
- EarlyExitException eee =
- new EarlyExitException(233, input);
- throw eee;
- }
- cnt233++;
- } while (true);
-
-
- }
- }
- // $ANTLR end synpred130_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred133_InternalAppliedStereotypeProperty
- public final void synpred133_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- Token otherlv_5=null;
- EObject lv_nameBinding_6_0 = null;
-
-
- // InternalAppliedStereotypeProperty.g:5407:4: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )
- // InternalAppliedStereotypeProperty.g:5407:4: otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) )
- {
- otherlv_5=(Token)match(input,27,FOLLOW_14); if (state.failed) return ;
- // InternalAppliedStereotypeProperty.g:5411:1: ( (lv_nameBinding_6_0= ruleNameBinding ) )
- // InternalAppliedStereotypeProperty.g:5412:1: (lv_nameBinding_6_0= ruleNameBinding )
- {
- // InternalAppliedStereotypeProperty.g:5412:1: (lv_nameBinding_6_0= ruleNameBinding )
- // InternalAppliedStereotypeProperty.g:5413: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 synpred133_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred134_InternalAppliedStereotypeProperty
- public final void synpred134_InternalAppliedStereotypeProperty_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;
+ int index145_15 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred178_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
+
+ else if ((true)) {
+ s = 20;
+ }
+
+
+ input.seek(index145_15);
+ if (s >= 0)
+ return s;
+ break;
+ case 15:
+ int LA145_16 = input.LA(1);
+
+
+ int index145_16 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred178_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
+
+ else if ((true)) {
+ s = 20;
+ }
+
+
+ input.seek(index145_16);
+ if (s >= 0)
+ return s;
+ break;
+ case 16:
+ int LA145_17 = input.LA(1);
+
+
+ int index145_17 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred178_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
+
+ else if ((true)) {
+ s = 20;
+ }
+
+
+ input.seek(index145_17);
+ if (s >= 0)
+ return s;
+ break;
+ case 17:
+ int LA145_18 = input.LA(1);
+
+
+ int index145_18 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred178_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
+
+ else if ((true)) {
+ s = 20;
+ }
+
+
+ input.seek(index145_18);
+ if (s >= 0)
+ return s;
+ break;
+ case 18:
+ int LA145_19 = input.LA(1);
+
+
+ int index145_19 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred178_InternalAppliedStereotypeProperty())) {
+ s = 21;
+ }
+
+ else if ((true)) {
+ s = 20;
+ }
+
+
+ input.seek(index145_19);
+ if (s >= 0)
+ return s;
+ break;
+ }
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return -1;
+ }
+ NoViableAltException nvae = new NoViableAltException(getDescription(), 145, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+
+ static final String dfa_45s = "\20\uffff";
+ static final String dfa_46s = "\1\4\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\uffff\1\1\1\2\7\uffff\1\14\3\uffff\1\5\35\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 DFA154 extends DFA {
+
+ public DFA154(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 154;
+ 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 "8393: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 LA154_1 = input.LA(1);
+
+
+ int index154_1 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred188_InternalAppliedStereotypeProperty())) {
+ s = 13;
+ }
+
+ else if ((true)) {
+ s = 14;
+ }
+
+
+ input.seek(index154_1);
+ if (s >= 0)
+ return s;
+ break;
+ case 1:
+ int LA154_2 = input.LA(1);
+
+
+ int index154_2 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred188_InternalAppliedStereotypeProperty())) {
+ s = 13;
+ }
+
+ else if ((true)) {
+ s = 14;
+ }
+
+
+ input.seek(index154_2);
+ if (s >= 0)
+ return s;
+ break;
+ case 2:
+ int LA154_3 = input.LA(1);
+
+
+ int index154_3 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred188_InternalAppliedStereotypeProperty())) {
+ s = 13;
+ }
+
+ else if ((true)) {
+ s = 14;
+ }
+
+
+ input.seek(index154_3);
+ if (s >= 0)
+ return s;
+ break;
+ case 3:
+ int LA154_4 = input.LA(1);
+
+
+ int index154_4 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred188_InternalAppliedStereotypeProperty())) {
+ s = 13;
+ }
+
+ else if ((true)) {
+ s = 14;
+ }
+
+
+ input.seek(index154_4);
+ if (s >= 0)
+ return s;
+ break;
+ case 4:
+ int LA154_5 = input.LA(1);
+
+
+ int index154_5 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred188_InternalAppliedStereotypeProperty())) {
+ s = 13;
+ }
+
+ else if ((true)) {
+ s = 14;
+ }
- // InternalAppliedStereotypeProperty.g:5374:6: ( ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* ) )
- // InternalAppliedStereotypeProperty.g:5374:6: ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* )
- {
- // InternalAppliedStereotypeProperty.g:5374:6: ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* )
- // InternalAppliedStereotypeProperty.g:5374:7: ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
- {
- // InternalAppliedStereotypeProperty.g:5374:7: ( (lv_isAmbiguous_3_0= '.' ) )
- // InternalAppliedStereotypeProperty.g:5375:1: (lv_isAmbiguous_3_0= '.' )
- {
- // InternalAppliedStereotypeProperty.g:5375:1: (lv_isAmbiguous_3_0= '.' )
- // InternalAppliedStereotypeProperty.g:5376:3: lv_isAmbiguous_3_0= '.'
- {
- lv_isAmbiguous_3_0=(Token)match(input,27,FOLLOW_14); if (state.failed) return ;
-
- }
-
-
- }
- // InternalAppliedStereotypeProperty.g:5389:2: ( (lv_nameBinding_4_0= ruleNameBinding ) )
- // InternalAppliedStereotypeProperty.g:5390:1: (lv_nameBinding_4_0= ruleNameBinding )
- {
- // InternalAppliedStereotypeProperty.g:5390:1: (lv_nameBinding_4_0= ruleNameBinding )
- // InternalAppliedStereotypeProperty.g:5391: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();
+ input.seek(index154_5);
+ if (s >= 0)
+ return s;
+ break;
+ case 5:
+ int LA154_6 = input.LA(1);
- state._fsp--;
- if (state.failed) return ;
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:5407:2: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
- loop235:
- do {
- int alt235=2;
- int LA235_0 = input.LA(1);
+ int index154_6 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred188_InternalAppliedStereotypeProperty())) {
+ s = 13;
+ }
- if ( (LA235_0==27) ) {
- alt235=1;
- }
-
-
- switch (alt235) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:5407:4: otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) )
- {
- otherlv_5=(Token)match(input,27,FOLLOW_14); if (state.failed) return ;
- // InternalAppliedStereotypeProperty.g:5411:1: ( (lv_nameBinding_6_0= ruleNameBinding ) )
- // InternalAppliedStereotypeProperty.g:5412:1: (lv_nameBinding_6_0= ruleNameBinding )
- {
- // InternalAppliedStereotypeProperty.g:5412:1: (lv_nameBinding_6_0= ruleNameBinding )
- // InternalAppliedStereotypeProperty.g:5413: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();
+ else if ((true)) {
+ s = 14;
+ }
- state._fsp--;
- if (state.failed) return ;
- }
+ input.seek(index154_6);
+ if (s >= 0)
+ return s;
+ break;
+ case 6:
+ int LA154_7 = input.LA(1);
- }
+ int index154_7 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred188_InternalAppliedStereotypeProperty())) {
+ s = 13;
+ }
-
- }
- break;
-
- default :
- break loop235;
- }
- } while (true);
-
-
- }
-
-
- }
- }
- // $ANTLR end synpred134_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred135_InternalAppliedStereotypeProperty
- public final void synpred135_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- EObject lv_binding_1_0 = null;
-
-
- // InternalAppliedStereotypeProperty.g:5512:1: ( (lv_binding_1_0= ruleTemplateBinding ) )
- // InternalAppliedStereotypeProperty.g:5512:1: (lv_binding_1_0= ruleTemplateBinding )
- {
- // InternalAppliedStereotypeProperty.g:5512:1: (lv_binding_1_0= ruleTemplateBinding )
- // InternalAppliedStereotypeProperty.g:5513: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 synpred135_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred139_InternalAppliedStereotypeProperty
- public final void synpred139_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- EObject this_AssignmentExpression_0 = null;
+ else if ((true)) {
+ s = 14;
+ }
- // InternalAppliedStereotypeProperty.g:5788:2: (this_AssignmentExpression_0= ruleAssignmentExpression )
- // InternalAppliedStereotypeProperty.g:5788:2: this_AssignmentExpression_0= ruleAssignmentExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_AssignmentExpression_0=ruleAssignmentExpression();
-
- state._fsp--;
- if (state.failed) return ;
+ input.seek(index154_7);
+ if (s >= 0)
+ return s;
+ break;
+ case 7:
+ int LA154_8 = input.LA(1);
- }
- }
- // $ANTLR end synpred139_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred140_InternalAppliedStereotypeProperty
- public final void synpred140_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- Token otherlv_2=null;
- EObject lv_nameBinding_3_0 = null;
-
- EObject lv_tuple_5_0 = null;
-
-
- // InternalAppliedStereotypeProperty.g:5845:2: ( ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) ) )
- // InternalAppliedStereotypeProperty.g:5845:2: ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) )
- {
- // InternalAppliedStereotypeProperty.g:5845:2: ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) )
- // InternalAppliedStereotypeProperty.g:5845:3: () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) )
- {
- // InternalAppliedStereotypeProperty.g:5845:3: ()
- // InternalAppliedStereotypeProperty.g:5846:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
-
- }
-
- otherlv_2=(Token)match(input,27,FOLLOW_14); if (state.failed) return ;
- // InternalAppliedStereotypeProperty.g:5858:1: ( (lv_nameBinding_3_0= ruleNameBinding ) )
- // InternalAppliedStereotypeProperty.g:5859:1: (lv_nameBinding_3_0= ruleNameBinding )
- {
- // InternalAppliedStereotypeProperty.g:5859:1: (lv_nameBinding_3_0= ruleNameBinding )
- // InternalAppliedStereotypeProperty.g:5860:3: lv_nameBinding_3_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_0_2_0());
-
- }
- pushFollow(FOLLOW_44);
- lv_nameBinding_3_0=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:5876:2: ()
- // InternalAppliedStereotypeProperty.g:5877:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:5885:2: ( (lv_tuple_5_0= ruleTuple ) )
- // InternalAppliedStereotypeProperty.g:5886:1: (lv_tuple_5_0= ruleTuple )
- {
- // InternalAppliedStereotypeProperty.g:5886:1: (lv_tuple_5_0= ruleTuple )
- // InternalAppliedStereotypeProperty.g:5887: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 synpred140_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred141_InternalAppliedStereotypeProperty
- public final void synpred141_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- Token otherlv_7=null;
- EObject lv_nameBinding_8_0 = null;
-
-
- // InternalAppliedStereotypeProperty.g:5904:6: ( ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () ) )
- // InternalAppliedStereotypeProperty.g:5904:6: ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () )
- {
- // InternalAppliedStereotypeProperty.g:5904:6: ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () )
- // InternalAppliedStereotypeProperty.g:5904:7: () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) ()
- {
- // InternalAppliedStereotypeProperty.g:5904:7: ()
- // InternalAppliedStereotypeProperty.g:5905:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
-
- }
-
- otherlv_7=(Token)match(input,27,FOLLOW_14); if (state.failed) return ;
- // InternalAppliedStereotypeProperty.g:5917:1: ( (lv_nameBinding_8_0= ruleNameBinding ) )
- // InternalAppliedStereotypeProperty.g:5918:1: (lv_nameBinding_8_0= ruleNameBinding )
- {
- // InternalAppliedStereotypeProperty.g:5918:1: (lv_nameBinding_8_0= ruleNameBinding )
- // InternalAppliedStereotypeProperty.g:5919: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 ;
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:5935:2: ()
- // InternalAppliedStereotypeProperty.g:5936:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
-
- }
-
-
- }
-
-
- }
- }
- // $ANTLR end synpred141_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred151_InternalAppliedStereotypeProperty
- public final void synpred151_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- EObject this_ClassExtentExpression_4 = null;
-
-
- // InternalAppliedStereotypeProperty.g:6224:2: (this_ClassExtentExpression_4= ruleClassExtentExpression )
- // InternalAppliedStereotypeProperty.g:6224:2: this_ClassExtentExpression_4= ruleClassExtentExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_ClassExtentExpression_4=ruleClassExtentExpression();
-
- state._fsp--;
- if (state.failed) return ;
- }
- }
- // $ANTLR end synpred151_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred152_InternalAppliedStereotypeProperty
- public final void synpred152_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- EObject this_LinkOperationExpression_5 = null;
-
-
- // InternalAppliedStereotypeProperty.g:6237:2: (this_LinkOperationExpression_5= ruleLinkOperationExpression )
- // InternalAppliedStereotypeProperty.g:6237:2: this_LinkOperationExpression_5= ruleLinkOperationExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_LinkOperationExpression_5=ruleLinkOperationExpression();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred152_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred153_InternalAppliedStereotypeProperty
- public final void synpred153_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- EObject this_SequenceConstructionExpression_6 = null;
-
-
- // InternalAppliedStereotypeProperty.g:6250:2: (this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression )
- // InternalAppliedStereotypeProperty.g:6250:2: this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_SequenceConstructionExpression_6=ruleSequenceConstructionExpression();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred153_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred154_InternalAppliedStereotypeProperty
- public final void synpred154_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- EObject this_SequenceOperationOrReductionOrExpansionExpression_7 = null;
-
-
- // InternalAppliedStereotypeProperty.g:6263:2: (this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression )
- // InternalAppliedStereotypeProperty.g:6263:2: this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_SequenceOperationOrReductionOrExpansionExpression_7=ruleSequenceOperationOrReductionOrExpansionExpression();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred154_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred155_InternalAppliedStereotypeProperty
- public final void synpred155_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- EObject this_BehaviorInvocationExpression_8 = null;
-
-
- // InternalAppliedStereotypeProperty.g:6276:2: (this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression )
- // InternalAppliedStereotypeProperty.g:6276:2: this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_BehaviorInvocationExpression_8=ruleBehaviorInvocationExpression();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred155_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred156_InternalAppliedStereotypeProperty
- public final void synpred156_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- EObject this_NameExpression_9 = null;
-
-
- // InternalAppliedStereotypeProperty.g:6289:2: (this_NameExpression_9= ruleNameExpression )
- // InternalAppliedStereotypeProperty.g:6289:2: this_NameExpression_9= ruleNameExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_NameExpression_9=ruleNameExpression();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred156_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred168_InternalAppliedStereotypeProperty
- public final void synpred168_InternalAppliedStereotypeProperty_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;
-
-
- // InternalAppliedStereotypeProperty.g:7075:2: ( ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' ) )
- // InternalAppliedStereotypeProperty.g:7075:2: ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' )
- {
- // InternalAppliedStereotypeProperty.g:7075:2: ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' )
- // InternalAppliedStereotypeProperty.g:7075:3: () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}'
- {
- // InternalAppliedStereotypeProperty.g:7075:3: ()
- // InternalAppliedStereotypeProperty.g:7076:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
-
- }
-
- // InternalAppliedStereotypeProperty.g:7084:2: ( (lv_typeName_2_0= ruleQualifiedName ) )
- // InternalAppliedStereotypeProperty.g:7085:1: (lv_typeName_2_0= ruleQualifiedName )
- {
- // InternalAppliedStereotypeProperty.g:7085:1: (lv_typeName_2_0= ruleQualifiedName )
- // InternalAppliedStereotypeProperty.g:7086: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 ;
-
- }
-
-
- }
-
- // InternalAppliedStereotypeProperty.g:7102:2: ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )?
- int alt240=2;
- int LA240_0 = input.LA(1);
-
- if ( (LA240_0==52) ) {
- alt240=1;
- }
- switch (alt240) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:7103:1: (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator )
- {
- // InternalAppliedStereotypeProperty.g:7103:1: (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator )
- // InternalAppliedStereotypeProperty.g:7104:3: lv_hasMultiplicity_3_0= ruleMultiplicityIndicator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_1_0_2_0());
-
- }
- pushFollow(FOLLOW_19);
- lv_hasMultiplicity_3_0=ruleMultiplicityIndicator();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_4=(Token)match(input,32,FOLLOW_73); if (state.failed) return ;
- // InternalAppliedStereotypeProperty.g:7124:1: ( (lv_elements_5_0= ruleSequenceElements ) )?
- int alt241=2;
- int LA241_0 = input.LA(1);
-
- if ( ((LA241_0>=RULE_BOOLEAN_VALUE && LA241_0<=RULE_STRING)||(LA241_0>=RULE_ID && LA241_0<=RULE_UNRESTRICTED_NAME)||LA241_0==17||LA241_0==21||LA241_0==32||LA241_0==51||(LA241_0>=62 && LA241_0<=64)||(LA241_0>=69 && LA241_0<=76)) ) {
- alt241=1;
- }
- switch (alt241) {
- case 1 :
- // InternalAppliedStereotypeProperty.g:7125:1: (lv_elements_5_0= ruleSequenceElements )
- {
- // InternalAppliedStereotypeProperty.g:7125:1: (lv_elements_5_0= ruleSequenceElements )
- // InternalAppliedStereotypeProperty.g:7126: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,33,FOLLOW_2); if (state.failed) return ;
-
- }
-
-
- }
- }
- // $ANTLR end synpred168_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred171_InternalAppliedStereotypeProperty
- public final void synpred171_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- EObject this_IndexedNamedTupleExpressionList_1 = null;
-
-
- // InternalAppliedStereotypeProperty.g:7338:2: (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList )
- // InternalAppliedStereotypeProperty.g:7338:2: this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_IndexedNamedTupleExpressionList_1=ruleIndexedNamedTupleExpressionList();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred171_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred178_InternalAppliedStereotypeProperty
- public final void synpred178_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- EObject this_SequenceRange_0 = null;
-
-
- // InternalAppliedStereotypeProperty.g:7731:2: (this_SequenceRange_0= ruleSequenceRange )
- // InternalAppliedStereotypeProperty.g:7731:2: this_SequenceRange_0= ruleSequenceRange
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_SequenceRange_0=ruleSequenceRange();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred178_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred188_InternalAppliedStereotypeProperty
- public final void synpred188_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- EObject this_PostfixExpression_0 = null;
-
-
- // InternalAppliedStereotypeProperty.g:8394:2: (this_PostfixExpression_0= rulePostfixExpression )
- // InternalAppliedStereotypeProperty.g:8394:2: this_PostfixExpression_0= rulePostfixExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_PostfixExpression_0=rulePostfixExpression();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred188_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred189_InternalAppliedStereotypeProperty
- public final void synpred189_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- EObject this_CastExpression_1 = null;
-
-
- // InternalAppliedStereotypeProperty.g:8407:2: (this_CastExpression_1= ruleCastExpression )
- // InternalAppliedStereotypeProperty.g:8407:2: this_CastExpression_1= ruleCastExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_CastExpression_1=ruleCastExpression();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred189_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred221_InternalAppliedStereotypeProperty
- public final void synpred221_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- EObject this_NameLeftHandSide_0 = null;
-
-
- // InternalAppliedStereotypeProperty.g:10237:2: (this_NameLeftHandSide_0= ruleNameLeftHandSide )
- // InternalAppliedStereotypeProperty.g:10237:2: this_NameLeftHandSide_0= ruleNameLeftHandSide
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_NameLeftHandSide_0=ruleNameLeftHandSide();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred221_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred237_InternalAppliedStereotypeProperty
- public final void synpred237_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- EObject this_LocalNameDeclarationStatement_3 = null;
-
-
- // InternalAppliedStereotypeProperty.g:10557:2: (this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement )
- // InternalAppliedStereotypeProperty.g:10557:2: this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_LocalNameDeclarationStatement_3=ruleLocalNameDeclarationStatement();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred237_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred238_InternalAppliedStereotypeProperty
- public final void synpred238_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- EObject this_ExpressionStatement_4 = null;
-
-
- // InternalAppliedStereotypeProperty.g:10570:2: (this_ExpressionStatement_4= ruleExpressionStatement )
- // InternalAppliedStereotypeProperty.g:10570:2: this_ExpressionStatement_4= ruleExpressionStatement
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_ExpressionStatement_4=ruleExpressionStatement();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred238_InternalAppliedStereotypeProperty
-
- // $ANTLR start synpred269_InternalAppliedStereotypeProperty
- public final void synpred269_InternalAppliedStereotypeProperty_fragment() throws RecognitionException {
- Token otherlv_1=null;
- EObject lv_acceptBlock_0_0 = null;
-
-
- // InternalAppliedStereotypeProperty.g:12315:2: ( ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' ) )
- // InternalAppliedStereotypeProperty.g:12315:2: ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' )
- {
- // InternalAppliedStereotypeProperty.g:12315:2: ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' )
- // InternalAppliedStereotypeProperty.g:12315:3: ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';'
- {
- // InternalAppliedStereotypeProperty.g:12315:3: ( (lv_acceptBlock_0_0= ruleAcceptClause ) )
- // InternalAppliedStereotypeProperty.g:12316:1: (lv_acceptBlock_0_0= ruleAcceptClause )
- {
- // InternalAppliedStereotypeProperty.g:12316:1: (lv_acceptBlock_0_0= ruleAcceptClause )
- // InternalAppliedStereotypeProperty.g:12317: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,23,FOLLOW_2); if (state.failed) return ;
-
- }
-
-
- }
- }
- // $ANTLR end synpred269_InternalAppliedStereotypeProperty
-
- // Delegated rules
-
- public final boolean synpred153_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred153_InternalAppliedStereotypeProperty_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_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred156_InternalAppliedStereotypeProperty_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 synpred237_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred237_InternalAppliedStereotypeProperty_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 synpred130_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred130_InternalAppliedStereotypeProperty_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 synpred171_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred171_InternalAppliedStereotypeProperty_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 synpred129_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred129_InternalAppliedStereotypeProperty_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 synpred115_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred115_InternalAppliedStereotypeProperty_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 synpred151_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred151_InternalAppliedStereotypeProperty_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 synpred178_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred178_InternalAppliedStereotypeProperty_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_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred133_InternalAppliedStereotypeProperty_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 synpred238_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred238_InternalAppliedStereotypeProperty_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 synpred154_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred154_InternalAppliedStereotypeProperty_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 synpred135_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred135_InternalAppliedStereotypeProperty_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_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred155_InternalAppliedStereotypeProperty_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 synpred140_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred140_InternalAppliedStereotypeProperty_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 synpred189_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred189_InternalAppliedStereotypeProperty_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_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred139_InternalAppliedStereotypeProperty_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 synpred168_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred168_InternalAppliedStereotypeProperty_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 synpred221_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred221_InternalAppliedStereotypeProperty_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 synpred141_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred141_InternalAppliedStereotypeProperty_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 synpred188_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred188_InternalAppliedStereotypeProperty_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_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred134_InternalAppliedStereotypeProperty_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 synpred8_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred8_InternalAppliedStereotypeProperty_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 synpred269_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred269_InternalAppliedStereotypeProperty_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 synpred152_InternalAppliedStereotypeProperty() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred152_InternalAppliedStereotypeProperty_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 DFA100 dfa100 = new DFA100(this);
- protected DFA118 dfa118 = new DFA118(this);
- protected DFA122 dfa122 = new DFA122(this);
- protected DFA125 dfa125 = new DFA125(this);
- protected DFA126 dfa126 = new DFA126(this);
- protected DFA138 dfa138 = new DFA138(this);
- protected DFA145 dfa145 = new DFA145(this);
- protected DFA154 dfa154 = new DFA154(this);
- protected DFA180 dfa180 = new DFA180(this);
- static final String dfa_1s = "\12\uffff";
- static final String dfa_2s = "\1\4\11\uffff";
- static final String dfa_3s = "\1\17\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\5\1\6\1\3\1\2\1\4\1\1\1\0\1\uffff}>";
- static final String[] dfa_7s = {
- "\1\10\2\uffff\1\3\1\2\3\uffff\1\6\10\uffff\1\5\23\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 DFA100 extends DFA {
-
- public DFA100(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 100;
- 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 "4599: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 LA100_8 = input.LA(1);
-
-
- int index100_8 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred115_InternalAppliedStereotypeProperty()) ) {s = 1;}
-
- else if ( (true) ) {s = 9;}
-
-
- input.seek(index100_8);
- if ( s>=0 ) return s;
- break;
- case 1 :
- int LA100_7 = input.LA(1);
-
-
- int index100_7 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred115_InternalAppliedStereotypeProperty()) ) {s = 1;}
-
- else if ( (true) ) {s = 9;}
-
-
- input.seek(index100_7);
- if ( s>=0 ) return s;
- break;
- case 2 :
- int LA100_5 = input.LA(1);
-
-
- int index100_5 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred115_InternalAppliedStereotypeProperty()) ) {s = 1;}
-
- else if ( (true) ) {s = 9;}
-
-
- input.seek(index100_5);
- if ( s>=0 ) return s;
- break;
- case 3 :
- int LA100_4 = input.LA(1);
-
-
- int index100_4 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred115_InternalAppliedStereotypeProperty()) ) {s = 1;}
-
- else if ( (true) ) {s = 9;}
-
-
- input.seek(index100_4);
- if ( s>=0 ) return s;
- break;
- case 4 :
- int LA100_6 = input.LA(1);
-
-
- int index100_6 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred115_InternalAppliedStereotypeProperty()) ) {s = 1;}
-
- else if ( (true) ) {s = 9;}
-
-
- input.seek(index100_6);
- if ( s>=0 ) return s;
- break;
- case 5 :
- int LA100_2 = input.LA(1);
-
-
- int index100_2 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred115_InternalAppliedStereotypeProperty()) ) {s = 1;}
-
- else if ( (true) ) {s = 9;}
-
-
- input.seek(index100_2);
- if ( s>=0 ) return s;
- break;
- case 6 :
- int LA100_3 = input.LA(1);
-
-
- int index100_3 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred115_InternalAppliedStereotypeProperty()) ) {s = 1;}
-
- else if ( (true) ) {s = 9;}
-
-
- input.seek(index100_3);
- if ( s>=0 ) return s;
- break;
- }
- if (state.backtracking>0) {state.failed=true; return -1;}
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 100, _s, input);
- error(nvae);
- throw nvae;
- }
- }
- static final String dfa_8s = "\115\uffff";
- static final String dfa_9s = "\1\2\114\uffff";
- static final String dfa_10s = "\1\10\1\0\113\uffff";
- static final String dfa_11s = "\1\167\1\0\113\uffff";
- static final String dfa_12s = "\2\uffff\1\2\111\uffff\1\1";
- static final String dfa_13s = "\1\uffff\1\0\113\uffff}>";
- static final String[] dfa_14s = {
- "\2\2\5\uffff\5\2\1\uffff\1\2\1\uffff\1\2\1\uffff\6\2\1\uffff\2\2\1\uffff\2\2\1\1\2\2\1\uffff\11\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 DFA118 extends DFA {
-
- public DFA118(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 118;
- 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 "5511: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 LA118_1 = input.LA(1);
-
-
- int index118_1 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred135_InternalAppliedStereotypeProperty()) ) {s = 76;}
-
- else if ( (true) ) {s = 2;}
-
-
- input.seek(index118_1);
- if ( s>=0 ) return s;
- break;
- }
- if (state.backtracking>0) {state.failed=true; return -1;}
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 118, _s, input);
- error(nvae);
- throw nvae;
- }
- }
- static final String dfa_15s = "\25\uffff";
- static final String dfa_16s = "\1\4\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\uffff\1\1\1\2\7\uffff\1\14\3\uffff\1\5\35\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 DFA122 extends DFA {
-
- public DFA122(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 122;
- 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 "5787: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 LA122_1 = input.LA(1);
-
-
- int index122_1 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred139_InternalAppliedStereotypeProperty()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index122_1);
- if ( s>=0 ) return s;
- break;
- case 1 :
- int LA122_2 = input.LA(1);
-
-
- int index122_2 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred139_InternalAppliedStereotypeProperty()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index122_2);
- if ( s>=0 ) return s;
- break;
- case 2 :
- int LA122_3 = input.LA(1);
-
-
- int index122_3 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred139_InternalAppliedStereotypeProperty()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index122_3);
- if ( s>=0 ) return s;
- break;
- case 3 :
- int LA122_4 = input.LA(1);
-
-
- int index122_4 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred139_InternalAppliedStereotypeProperty()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index122_4);
- if ( s>=0 ) return s;
- break;
- case 4 :
- int LA122_5 = input.LA(1);
-
-
- int index122_5 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred139_InternalAppliedStereotypeProperty()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index122_5);
- if ( s>=0 ) return s;
- break;
- case 5 :
- int LA122_6 = input.LA(1);
-
-
- int index122_6 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred139_InternalAppliedStereotypeProperty()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index122_6);
- if ( s>=0 ) return s;
- break;
- case 6 :
- int LA122_7 = input.LA(1);
-
-
- int index122_7 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred139_InternalAppliedStereotypeProperty()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index122_7);
- if ( s>=0 ) return s;
- break;
- case 7 :
- int LA122_8 = input.LA(1);
-
-
- int index122_8 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred139_InternalAppliedStereotypeProperty()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index122_8);
- if ( s>=0 ) return s;
- break;
- case 8 :
- int LA122_9 = input.LA(1);
-
-
- int index122_9 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred139_InternalAppliedStereotypeProperty()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index122_9);
- if ( s>=0 ) return s;
- break;
- case 9 :
- int LA122_10 = input.LA(1);
-
-
- int index122_10 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred139_InternalAppliedStereotypeProperty()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index122_10);
- if ( s>=0 ) return s;
- break;
- case 10 :
- int LA122_11 = input.LA(1);
-
-
- int index122_11 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred139_InternalAppliedStereotypeProperty()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index122_11);
- if ( s>=0 ) return s;
- break;
- case 11 :
- int LA122_12 = input.LA(1);
-
-
- int index122_12 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred139_InternalAppliedStereotypeProperty()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index122_12);
- 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_21s = "\64\uffff";
- static final String dfa_22s = "\1\1\63\uffff";
- static final String dfa_23s = "\1\17\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 = {
- "\1\1\2\uffff\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\5\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 DFA125 extends DFA {
-
- public DFA125(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 125;
- 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 5845: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 LA125_47 = input.LA(1);
-
-
- int index125_47 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred140_InternalAppliedStereotypeProperty()) ) {s = 50;}
-
- else if ( (synpred141_InternalAppliedStereotypeProperty()) ) {s = 51;}
-
-
- input.seek(index125_47);
- if ( s>=0 ) return s;
- break;
- }
- if (state.backtracking>0) {state.failed=true; return -1;}
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 125, _s, input);
- error(nvae);
- throw nvae;
- }
- }
- static final String dfa_28s = "\22\uffff";
- static final String dfa_29s = "\1\4\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\uffff\1\10\1\11\7\uffff\1\14\3\uffff\1\1\35\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 DFA126 extends DFA {
-
- public DFA126(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 126;
- 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 "6171: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 LA126_8 = input.LA(1);
-
-
- int index126_8 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred151_InternalAppliedStereotypeProperty()) ) {s = 13;}
-
- else if ( (synpred152_InternalAppliedStereotypeProperty()) ) {s = 14;}
-
- else if ( (synpred153_InternalAppliedStereotypeProperty()) ) {s = 10;}
-
- else if ( (synpred154_InternalAppliedStereotypeProperty()) ) {s = 15;}
-
- else if ( (synpred155_InternalAppliedStereotypeProperty()) ) {s = 16;}
-
- else if ( (synpred156_InternalAppliedStereotypeProperty()) ) {s = 17;}
-
-
- input.seek(index126_8);
- if ( s>=0 ) return s;
- break;
- case 1 :
- int LA126_9 = input.LA(1);
-
-
- int index126_9 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred151_InternalAppliedStereotypeProperty()) ) {s = 13;}
-
- else if ( (synpred152_InternalAppliedStereotypeProperty()) ) {s = 14;}
-
- else if ( (synpred153_InternalAppliedStereotypeProperty()) ) {s = 10;}
-
- else if ( (synpred154_InternalAppliedStereotypeProperty()) ) {s = 15;}
-
- else if ( (synpred155_InternalAppliedStereotypeProperty()) ) {s = 16;}
-
- else if ( (synpred156_InternalAppliedStereotypeProperty()) ) {s = 17;}
-
-
- input.seek(index126_9);
- 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_34s = "\26\uffff";
- static final String dfa_35s = "\1\4\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\uffff\1\1\1\2\7\uffff\2\3\2\uffff\1\3\35\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 DFA138 extends DFA {
-
- public DFA138(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 138;
- 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 "7337: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 LA138_1 = input.LA(1);
-
-
- int index138_1 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred171_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 3;}
-
-
- input.seek(index138_1);
- if ( s>=0 ) return s;
- break;
- case 1 :
- int LA138_2 = input.LA(1);
-
-
- int index138_2 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred171_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 3;}
-
-
- input.seek(index138_2);
- if ( s>=0 ) return s;
- break;
- }
- if (state.backtracking>0) {state.failed=true; return -1;}
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 138, _s, input);
- error(nvae);
- throw nvae;
- }
- }
- static final String dfa_40s = "\1\4\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\uffff\1\1\1\2\7\uffff\1\14\3\uffff\1\5\12\uffff\1\24\22\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 DFA145 extends DFA {
-
- public DFA145(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 145;
- 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 "7730: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 LA145_1 = input.LA(1);
-
-
- int index145_1 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred178_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index145_1);
- if ( s>=0 ) return s;
- break;
- case 1 :
- int LA145_2 = input.LA(1);
-
-
- int index145_2 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred178_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index145_2);
- if ( s>=0 ) return s;
- break;
- case 2 :
- int LA145_3 = input.LA(1);
-
-
- int index145_3 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred178_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index145_3);
- if ( s>=0 ) return s;
- break;
- case 3 :
- int LA145_4 = input.LA(1);
-
-
- int index145_4 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred178_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index145_4);
- if ( s>=0 ) return s;
- break;
- case 4 :
- int LA145_5 = input.LA(1);
-
-
- int index145_5 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred178_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index145_5);
- if ( s>=0 ) return s;
- break;
- case 5 :
- int LA145_6 = input.LA(1);
-
-
- int index145_6 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred178_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index145_6);
- if ( s>=0 ) return s;
- break;
- case 6 :
- int LA145_7 = input.LA(1);
-
-
- int index145_7 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred178_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index145_7);
- if ( s>=0 ) return s;
- break;
- case 7 :
- int LA145_8 = input.LA(1);
-
-
- int index145_8 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred178_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index145_8);
- if ( s>=0 ) return s;
- break;
- case 8 :
- int LA145_9 = input.LA(1);
-
-
- int index145_9 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred178_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index145_9);
- if ( s>=0 ) return s;
- break;
- case 9 :
- int LA145_10 = input.LA(1);
-
-
- int index145_10 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred178_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index145_10);
- if ( s>=0 ) return s;
- break;
- case 10 :
- int LA145_11 = input.LA(1);
-
-
- int index145_11 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred178_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index145_11);
- if ( s>=0 ) return s;
- break;
- case 11 :
- int LA145_12 = input.LA(1);
-
-
- int index145_12 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred178_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index145_12);
- if ( s>=0 ) return s;
- break;
- case 12 :
- int LA145_13 = input.LA(1);
-
-
- int index145_13 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred178_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index145_13);
- if ( s>=0 ) return s;
- break;
- case 13 :
- int LA145_14 = input.LA(1);
-
-
- int index145_14 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred178_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index145_14);
- if ( s>=0 ) return s;
- break;
- case 14 :
- int LA145_15 = input.LA(1);
-
-
- int index145_15 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred178_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index145_15);
- if ( s>=0 ) return s;
- break;
- case 15 :
- int LA145_16 = input.LA(1);
-
-
- int index145_16 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred178_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index145_16);
- if ( s>=0 ) return s;
- break;
- case 16 :
- int LA145_17 = input.LA(1);
-
-
- int index145_17 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred178_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index145_17);
- if ( s>=0 ) return s;
- break;
- case 17 :
- int LA145_18 = input.LA(1);
-
-
- int index145_18 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred178_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index145_18);
- if ( s>=0 ) return s;
- break;
- case 18 :
- int LA145_19 = input.LA(1);
-
-
- int index145_19 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred178_InternalAppliedStereotypeProperty()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index145_19);
- if ( s>=0 ) return s;
- break;
- }
- if (state.backtracking>0) {state.failed=true; return -1;}
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 145, _s, input);
- error(nvae);
- throw nvae;
- }
- }
- static final String dfa_45s = "\20\uffff";
- static final String dfa_46s = "\1\4\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\uffff\1\1\1\2\7\uffff\1\14\3\uffff\1\5\35\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 DFA154 extends DFA {
-
- public DFA154(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 154;
- 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 "8393: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 LA154_1 = input.LA(1);
-
-
- int index154_1 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred188_InternalAppliedStereotypeProperty()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index154_1);
- if ( s>=0 ) return s;
- break;
- case 1 :
- int LA154_2 = input.LA(1);
-
-
- int index154_2 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred188_InternalAppliedStereotypeProperty()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index154_2);
- if ( s>=0 ) return s;
- break;
- case 2 :
- int LA154_3 = input.LA(1);
-
-
- int index154_3 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred188_InternalAppliedStereotypeProperty()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index154_3);
- if ( s>=0 ) return s;
- break;
- case 3 :
- int LA154_4 = input.LA(1);
-
-
- int index154_4 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred188_InternalAppliedStereotypeProperty()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index154_4);
- if ( s>=0 ) return s;
- break;
- case 4 :
- int LA154_5 = input.LA(1);
-
-
- int index154_5 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred188_InternalAppliedStereotypeProperty()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index154_5);
- if ( s>=0 ) return s;
- break;
- case 5 :
- int LA154_6 = input.LA(1);
-
-
- int index154_6 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred188_InternalAppliedStereotypeProperty()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index154_6);
- if ( s>=0 ) return s;
- break;
- case 6 :
- int LA154_7 = input.LA(1);
-
-
- int index154_7 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred188_InternalAppliedStereotypeProperty()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index154_7);
- if ( s>=0 ) return s;
- break;
- case 7 :
- int LA154_8 = input.LA(1);
-
-
- int index154_8 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred188_InternalAppliedStereotypeProperty()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index154_8);
- if ( s>=0 ) return s;
- break;
- case 8 :
- int LA154_9 = input.LA(1);
-
-
- int index154_9 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred188_InternalAppliedStereotypeProperty()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index154_9);
- if ( s>=0 ) return s;
- break;
- case 9 :
- int LA154_10 = input.LA(1);
-
-
- int index154_10 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred188_InternalAppliedStereotypeProperty()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index154_10);
- if ( s>=0 ) return s;
- break;
- case 10 :
- int LA154_11 = input.LA(1);
-
-
- int index154_11 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred188_InternalAppliedStereotypeProperty()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index154_11);
- if ( s>=0 ) return s;
- break;
- case 11 :
- int LA154_12 = input.LA(1);
-
-
- int index154_12 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred188_InternalAppliedStereotypeProperty()) ) {s = 13;}
-
- else if ( (synpred189_InternalAppliedStereotypeProperty()) ) {s = 15;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index154_12);
- if ( s>=0 ) return s;
- break;
- }
- if (state.backtracking>0) {state.failed=true; return -1;}
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 154, _s, input);
- error(nvae);
- throw nvae;
- }
- }
- static final String dfa_51s = "\41\uffff";
- static final String dfa_52s = "\1\4\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\uffff\1\6\1\7\1\uffff\1\1\5\uffff\1\10\3\uffff\1\10\1\uffff\1\3\10\uffff\1\2\7\uffff\1\34\12\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 DFA180 extends DFA {
-
- public DFA180(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 180;
- 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 "10517: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 LA180_5 = input.LA(1);
-
-
- int index180_5 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred237_InternalAppliedStereotypeProperty()) ) {s = 4;}
-
- else if ( (synpred238_InternalAppliedStereotypeProperty()) ) {s = 8;}
-
-
- input.seek(index180_5);
- if ( s>=0 ) return s;
- break;
- case 1 :
- int LA180_6 = input.LA(1);
-
-
- int index180_6 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred237_InternalAppliedStereotypeProperty()) ) {s = 4;}
-
- else if ( (synpred238_InternalAppliedStereotypeProperty()) ) {s = 8;}
-
-
- input.seek(index180_6);
- if ( s>=0 ) return s;
- break;
- case 2 :
- int LA180_7 = input.LA(1);
-
-
- int index180_7 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred237_InternalAppliedStereotypeProperty()) ) {s = 4;}
-
- else if ( (synpred238_InternalAppliedStereotypeProperty()) ) {s = 8;}
-
-
- input.seek(index180_7);
- if ( s>=0 ) return s;
- break;
- }
- if (state.backtracking>0) {state.failed=true; return -1;}
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 180, _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[]{0xC008000100220370L,0x0000000000001FE1L});
- public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0008000000000300L});
- public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000020002L});
- public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000040000L});
- public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000080002L});
- public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000100000L});
- public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000000200070L,0x0000000000000C00L});
- public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000800000L});
- public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000001000000L});
- public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000002000002L});
- public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000000300L});
- public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x000000000C000000L});
- public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000004000000L});
- public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000000200000L});
- public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000008000000L});
- public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000100000000L});
- public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000000230010080L});
- public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000100800000L});
- public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000030010080L});
- public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x00003E9880000000L});
- public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000000400000002L});
- public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000001000000000L});
- public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000002400000002L});
- public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000000000380L});
- public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000004000080000L});
- public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x00003E9AF0010380L});
- public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x00003E98F0010380L});
- public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000008000000000L});
- public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x08003E9AF0010380L});
- public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0000010000000002L});
- public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000000100000300L});
- public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x08003E98F0010380L});
- public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x0000020000000000L});
- public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x0000000210010380L});
- public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x0000000010010380L});
- public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x0000040000000000L});
- public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x0000000200000380L});
- public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x0000000200080000L});
- public static final BitSet FOLLOW_42 = new BitSet(new long[]{0x0000100000000000L});
- public static final BitSet FOLLOW_43 = new BitSet(new long[]{0x0000002000020000L});
- public static final BitSet FOLLOW_44 = new BitSet(new long[]{0x0000000000020000L});
- public static final BitSet FOLLOW_45 = new BitSet(new long[]{0x0003800000050080L});
- public static final BitSet FOLLOW_46 = new BitSet(new long[]{0x00000000000C0000L});
- public static final BitSet FOLLOW_47 = new BitSet(new long[]{0x0003800000010080L});
- public static final BitSet FOLLOW_48 = new BitSet(new long[]{0x0000400000000002L});
- public static final BitSet FOLLOW_49 = new BitSet(new long[]{0x0000400000000000L});
- public static final BitSet FOLLOW_50 = new BitSet(new long[]{0x0000000000808000L});
- 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[]{0x0020000000200020L});
- 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[]{0x0400400000000002L});
- public static final BitSet FOLLOW_60 = new BitSet(new long[]{0x0400000000000002L});
- public static final BitSet FOLLOW_61 = new BitSet(new long[]{0x000000000C000002L});
- public static final BitSet FOLLOW_62 = new BitSet(new long[]{0x0000000004000002L});
- public static final BitSet FOLLOW_63 = new BitSet(new long[]{0x0000000008000002L});
- public static final BitSet FOLLOW_64 = new BitSet(new long[]{0x0000002000000002L});
- public static final BitSet FOLLOW_65 = new BitSet(new long[]{0x0000004000000000L});
- public static final BitSet FOLLOW_66 = new BitSet(new long[]{0x1010000008000002L});
- public static final BitSet FOLLOW_67 = new BitSet(new long[]{0x2008000000000300L});
- public static final BitSet FOLLOW_68 = new BitSet(new long[]{0x0088000000000300L});
- public static final BitSet FOLLOW_69 = new BitSet(new long[]{0xC008000000220370L,0x0000000000001FE1L});
- public static final BitSet FOLLOW_70 = new BitSet(new long[]{0xC008000000260370L,0x0000000000001FE1L});
- public static final BitSet FOLLOW_71 = new BitSet(new long[]{0x0000000008020000L});
- public static final BitSet FOLLOW_72 = new BitSet(new long[]{0x0010000100000000L});
- public static final BitSet FOLLOW_73 = new BitSet(new long[]{0xC008000300220370L,0x0000000000001FE1L});
- public static final BitSet FOLLOW_74 = new BitSet(new long[]{0x0000000200000000L});
- public static final BitSet FOLLOW_75 = new BitSet(new long[]{0x0000000000000000L,0x000000000000000EL});
- public static final BitSet FOLLOW_76 = new BitSet(new long[]{0x1010000008100000L});
- 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[]{0xC008000000220370L,0x0000000000000021L});
- public static final BitSet FOLLOW_80 = new BitSet(new long[]{0x0000000000000000L,0x00000000000000C0L});
- public static final BitSet FOLLOW_81 = new BitSet(new long[]{0x0000000000200002L,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[]{0x0000006000000002L,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[]{0x0000000000008000L,0x000001FFC0000000L});
- public static final BitSet FOLLOW_94 = new BitSet(new long[]{0xC008010300A20FF0L,0x003F260000001FE1L});
- public static final BitSet FOLLOW_95 = new BitSet(new long[]{0xC008010100A20FF0L,0x003F260000001FE1L});
- public static final BitSet FOLLOW_96 = new BitSet(new long[]{0x0010000000008000L});
- public static final BitSet FOLLOW_97 = new BitSet(new long[]{0x0000000000008000L});
- 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[]{0x0000000200000000L,0x0000C00000000000L});
- public static final BitSet FOLLOW_103 = new BitSet(new long[]{0xC008010100A20FF0L,0x003F660000001FE1L});
- public static final BitSet FOLLOW_104 = new BitSet(new long[]{0xC008010100A20FF2L,0x003F260000001FE1L});
- public static final BitSet FOLLOW_105 = new BitSet(new long[]{0x0000000000000000L,0x0001000000000000L});
- public static final BitSet FOLLOW_106 = new BitSet(new long[]{0x0000800000000000L});
- public static final BitSet FOLLOW_107 = new BitSet(new long[]{0x0040000000000002L});
- public static final BitSet FOLLOW_108 = new BitSet(new long[]{0xC008000000A20370L,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[]{0x0000000000800000L,0x00C0000000000000L});
+ int index154_8 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred188_InternalAppliedStereotypeProperty())) {
+ s = 13;
+ }
+
+ else if ((true)) {
+ s = 14;
+ }
+
+
+ input.seek(index154_8);
+ if (s >= 0)
+ return s;
+ break;
+ case 8:
+ int LA154_9 = input.LA(1);
+
+
+ int index154_9 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred188_InternalAppliedStereotypeProperty())) {
+ s = 13;
+ }
+
+ else if ((true)) {
+ s = 14;
+ }
+
+
+ input.seek(index154_9);
+ if (s >= 0)
+ return s;
+ break;
+ case 9:
+ int LA154_10 = input.LA(1);
+
+
+ int index154_10 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred188_InternalAppliedStereotypeProperty())) {
+ s = 13;
+ }
+
+ else if ((true)) {
+ s = 14;
+ }
+
+
+ input.seek(index154_10);
+ if (s >= 0)
+ return s;
+ break;
+ case 10:
+ int LA154_11 = input.LA(1);
+
+
+ int index154_11 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred188_InternalAppliedStereotypeProperty())) {
+ s = 13;
+ }
+
+ else if ((true)) {
+ s = 14;
+ }
+
+
+ input.seek(index154_11);
+ if (s >= 0)
+ return s;
+ break;
+ case 11:
+ int LA154_12 = input.LA(1);
+
+
+ int index154_12 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred188_InternalAppliedStereotypeProperty())) {
+ s = 13;
+ }
+
+ else if ((synpred189_InternalAppliedStereotypeProperty())) {
+ s = 15;
+ }
+
+ else if ((true)) {
+ s = 14;
+ }
+
+
+ input.seek(index154_12);
+ if (s >= 0)
+ return s;
+ break;
+ }
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return -1;
+ }
+ NoViableAltException nvae = new NoViableAltException(getDescription(), 154, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+
+ static final String dfa_51s = "\41\uffff";
+ static final String dfa_52s = "\1\4\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\uffff\1\6\1\7\1\uffff\1\1\5\uffff\1\10\3\uffff\1\10\1\uffff\1\3\10\uffff\1\2\7\uffff\1\34\12\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 DFA180 extends DFA {
+
+ public DFA180(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 180;
+ 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 "10517: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 LA180_5 = input.LA(1);
+
+
+ int index180_5 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred237_InternalAppliedStereotypeProperty())) {
+ s = 4;
+ }
+
+ else if ((synpred238_InternalAppliedStereotypeProperty())) {
+ s = 8;
+ }
+
+
+ input.seek(index180_5);
+ if (s >= 0)
+ return s;
+ break;
+ case 1:
+ int LA180_6 = input.LA(1);
+
+
+ int index180_6 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred237_InternalAppliedStereotypeProperty())) {
+ s = 4;
+ }
+
+ else if ((synpred238_InternalAppliedStereotypeProperty())) {
+ s = 8;
+ }
+
+
+ input.seek(index180_6);
+ if (s >= 0)
+ return s;
+ break;
+ case 2:
+ int LA180_7 = input.LA(1);
+
+
+ int index180_7 = input.index();
+ input.rewind();
+ s = -1;
+ if ((synpred237_InternalAppliedStereotypeProperty())) {
+ s = 4;
+ }
+
+ else if ((synpred238_InternalAppliedStereotypeProperty())) {
+ s = 8;
+ }
+
+
+ input.seek(index180_7);
+ if (s >= 0)
+ return s;
+ break;
+ }
+ if (state.backtracking > 0) {
+ state.failed = true;
+ return -1;
+ }
+ NoViableAltException nvae = new NoViableAltException(getDescription(), 180, _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[] { 0xC008000100220370L, 0x0000000000001FE1L });
+ public static final BitSet FOLLOW_4 = new BitSet(new long[] { 0x0008000000000300L });
+ public static final BitSet FOLLOW_5 = new BitSet(new long[] { 0x0000000000020002L });
+ public static final BitSet FOLLOW_6 = new BitSet(new long[] { 0x0000000000040000L });
+ public static final BitSet FOLLOW_7 = new BitSet(new long[] { 0x0000000000080002L });
+ public static final BitSet FOLLOW_8 = new BitSet(new long[] { 0x0000000000100000L });
+ public static final BitSet FOLLOW_9 = new BitSet(new long[] { 0x0000000000200070L, 0x0000000000000C00L });
+ public static final BitSet FOLLOW_10 = new BitSet(new long[] { 0x0000000000000020L });
+ public static final BitSet FOLLOW_11 = new BitSet(new long[] { 0x0000000000800000L });
+ public static final BitSet FOLLOW_12 = new BitSet(new long[] { 0x0000000001000000L });
+ public static final BitSet FOLLOW_13 = new BitSet(new long[] { 0x0000000002000002L });
+ public static final BitSet FOLLOW_14 = new BitSet(new long[] { 0x0000000000000300L });
+ public static final BitSet FOLLOW_15 = new BitSet(new long[] { 0x000000000C000000L });
+ public static final BitSet FOLLOW_16 = new BitSet(new long[] { 0x0000000004000000L });
+ public static final BitSet FOLLOW_17 = new BitSet(new long[] { 0x0000000000200000L });
+ public static final BitSet FOLLOW_18 = new BitSet(new long[] { 0x0000000008000000L });
+ public static final BitSet FOLLOW_19 = new BitSet(new long[] { 0x0000000100000000L });
+ public static final BitSet FOLLOW_20 = new BitSet(new long[] { 0x0000000230010080L });
+ public static final BitSet FOLLOW_21 = new BitSet(new long[] { 0x0000000100800000L });
+ public static final BitSet FOLLOW_22 = new BitSet(new long[] { 0x0000000030010080L });
+ public static final BitSet FOLLOW_23 = new BitSet(new long[] { 0x00003E9880000000L });
+ public static final BitSet FOLLOW_24 = new BitSet(new long[] { 0x0000000400000002L });
+ public static final BitSet FOLLOW_25 = new BitSet(new long[] { 0x0000001000000000L });
+ public static final BitSet FOLLOW_26 = new BitSet(new long[] { 0x0000002400000002L });
+ public static final BitSet FOLLOW_27 = new BitSet(new long[] { 0x0000000000000380L });
+ public static final BitSet FOLLOW_28 = new BitSet(new long[] { 0x0000004000080000L });
+ public static final BitSet FOLLOW_29 = new BitSet(new long[] { 0x00003E9AF0010380L });
+ public static final BitSet FOLLOW_30 = new BitSet(new long[] { 0x00003E98F0010380L });
+ public static final BitSet FOLLOW_31 = new BitSet(new long[] { 0x0000008000000000L });
+ public static final BitSet FOLLOW_32 = new BitSet(new long[] { 0x08003E9AF0010380L });
+ public static final BitSet FOLLOW_33 = new BitSet(new long[] { 0x0000010000000002L });
+ public static final BitSet FOLLOW_34 = new BitSet(new long[] { 0x0000000100000300L });
+ public static final BitSet FOLLOW_35 = new BitSet(new long[] { 0x08003E98F0010380L });
+ public static final BitSet FOLLOW_36 = new BitSet(new long[] { 0x0000020000000000L });
+ public static final BitSet FOLLOW_37 = new BitSet(new long[] { 0x0000000210010380L });
+ public static final BitSet FOLLOW_38 = new BitSet(new long[] { 0x0000000010010380L });
+ public static final BitSet FOLLOW_39 = new BitSet(new long[] { 0x0000040000000000L });
+ public static final BitSet FOLLOW_40 = new BitSet(new long[] { 0x0000000200000380L });
+ public static final BitSet FOLLOW_41 = new BitSet(new long[] { 0x0000000200080000L });
+ public static final BitSet FOLLOW_42 = new BitSet(new long[] { 0x0000100000000000L });
+ public static final BitSet FOLLOW_43 = new BitSet(new long[] { 0x0000002000020000L });
+ public static final BitSet FOLLOW_44 = new BitSet(new long[] { 0x0000000000020000L });
+ public static final BitSet FOLLOW_45 = new BitSet(new long[] { 0x0003800000050080L });
+ public static final BitSet FOLLOW_46 = new BitSet(new long[] { 0x00000000000C0000L });
+ public static final BitSet FOLLOW_47 = new BitSet(new long[] { 0x0003800000010080L });
+ public static final BitSet FOLLOW_48 = new BitSet(new long[] { 0x0000400000000002L });
+ public static final BitSet FOLLOW_49 = new BitSet(new long[] { 0x0000400000000000L });
+ public static final BitSet FOLLOW_50 = new BitSet(new long[] { 0x0000000000808000L });
+ 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[] { 0x0020000000200020L });
+ 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[] { 0x0400400000000002L });
+ public static final BitSet FOLLOW_60 = new BitSet(new long[] { 0x0400000000000002L });
+ public static final BitSet FOLLOW_61 = new BitSet(new long[] { 0x000000000C000002L });
+ public static final BitSet FOLLOW_62 = new BitSet(new long[] { 0x0000000004000002L });
+ public static final BitSet FOLLOW_63 = new BitSet(new long[] { 0x0000000008000002L });
+ public static final BitSet FOLLOW_64 = new BitSet(new long[] { 0x0000002000000002L });
+ public static final BitSet FOLLOW_65 = new BitSet(new long[] { 0x0000004000000000L });
+ public static final BitSet FOLLOW_66 = new BitSet(new long[] { 0x1010000008000002L });
+ public static final BitSet FOLLOW_67 = new BitSet(new long[] { 0x2008000000000300L });
+ public static final BitSet FOLLOW_68 = new BitSet(new long[] { 0x0088000000000300L });
+ public static final BitSet FOLLOW_69 = new BitSet(new long[] { 0xC008000000220370L, 0x0000000000001FE1L });
+ public static final BitSet FOLLOW_70 = new BitSet(new long[] { 0xC008000000260370L, 0x0000000000001FE1L });
+ public static final BitSet FOLLOW_71 = new BitSet(new long[] { 0x0000000008020000L });
+ public static final BitSet FOLLOW_72 = new BitSet(new long[] { 0x0010000100000000L });
+ public static final BitSet FOLLOW_73 = new BitSet(new long[] { 0xC008000300220370L, 0x0000000000001FE1L });
+ public static final BitSet FOLLOW_74 = new BitSet(new long[] { 0x0000000200000000L });
+ public static final BitSet FOLLOW_75 = new BitSet(new long[] { 0x0000000000000000L, 0x000000000000000EL });
+ public static final BitSet FOLLOW_76 = new BitSet(new long[] { 0x1010000008100000L });
+ 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[] { 0xC008000000220370L, 0x0000000000000021L });
+ public static final BitSet FOLLOW_80 = new BitSet(new long[] { 0x0000000000000000L, 0x00000000000000C0L });
+ public static final BitSet FOLLOW_81 = new BitSet(new long[] { 0x0000000000200002L, 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[] { 0x0000006000000002L, 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[] { 0x0000000000008000L, 0x000001FFC0000000L });
+ public static final BitSet FOLLOW_94 = new BitSet(new long[] { 0xC008010300A20FF0L, 0x003F260000001FE1L });
+ public static final BitSet FOLLOW_95 = new BitSet(new long[] { 0xC008010100A20FF0L, 0x003F260000001FE1L });
+ public static final BitSet FOLLOW_96 = new BitSet(new long[] { 0x0010000000008000L });
+ public static final BitSet FOLLOW_97 = new BitSet(new long[] { 0x0000000000008000L });
+ 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[] { 0x0000000200000000L, 0x0000C00000000000L });
+ public static final BitSet FOLLOW_103 = new BitSet(new long[] { 0xC008010100A20FF0L, 0x003F660000001FE1L });
+ public static final BitSet FOLLOW_104 = new BitSet(new long[] { 0xC008010100A20FF2L, 0x003F260000001FE1L });
+ public static final BitSet FOLLOW_105 = new BitSet(new long[] { 0x0000000000000000L, 0x0001000000000000L });
+ public static final BitSet FOLLOW_106 = new BitSet(new long[] { 0x0000800000000000L });
+ public static final BitSet FOLLOW_107 = new BitSet(new long[] { 0x0040000000000002L });
+ public static final BitSet FOLLOW_108 = new BitSet(new long[] { 0xC008000000A20370L, 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[] { 0x0000000000800000L, 0x00C0000000000000L });
} \ No newline at end of file
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/serializer/AppliedStereotypePropertySemanticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/serializer/AppliedStereotypePropertySemanticSequencer.java
index 5026d8c55b0..e5435ea76a7 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/serializer/AppliedStereotypePropertySemanticSequencer.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/serializer/AppliedStereotypePropertySemanticSequencer.java
@@ -3,8 +3,8 @@
*/
package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.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;
@@ -114,12 +114,14 @@ import org.eclipse.xtext.serializer.ISerializationContext;
import org.eclipse.xtext.serializer.acceptor.SequenceFeeder;
import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient;
+import com.google.inject.Inject;
+
@SuppressWarnings("all")
public class AppliedStereotypePropertySemanticSequencer extends AlfSemanticSequencer {
@Inject
private AppliedStereotypePropertyGrammarAccess grammarAccess;
-
+
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
@@ -130,242 +132,225 @@ public class AppliedStereotypePropertySemanticSequencer extends AlfSemanticSeque
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;
+ 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;
+ 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()
+ 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()
+ 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;
+ 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()
+ 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()
+ 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;
+ 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;
+ sequence_AnnotatedStatement(context, (AnnotatedStatement) semanticObject);
+ return;
case AlfPackage.ARITHMETIC_EXPRESSION:
- sequence_AdditiveExpression_MultiplicativeExpression(context, (ArithmeticExpression) semanticObject);
- return;
+ sequence_AdditiveExpression_MultiplicativeExpression(context, (ArithmeticExpression) semanticObject);
+ return;
case AlfPackage.ASSIGNMENT_EXPRESSION:
- sequence_AssignmentExpression(context, (AssignmentExpression) semanticObject);
- return;
+ 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()
+ 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()
+ 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;
+ sequence_AssociationDeclaration_AssociationDefinition(context, (AssociationDefinition) semanticObject);
+ return;
+ } else
+ break;
case AlfPackage.BEHAVIOR_INVOCATION_EXPRESSION:
- sequence_BehaviorInvocationExpression(context, (BehaviorInvocationExpression) semanticObject);
- return;
+ sequence_BehaviorInvocationExpression(context, (BehaviorInvocationExpression) semanticObject);
+ return;
case AlfPackage.BIT_STRING_UNARY_EXPRESSION:
- sequence_BitStringUnaryExpression(context, (BitStringUnaryExpression) semanticObject);
- return;
+ sequence_BitStringUnaryExpression(context, (BitStringUnaryExpression) semanticObject);
+ return;
case AlfPackage.BLOCK:
if (rule == grammarAccess.getBlockRule()) {
- sequence_Block(context, (Block) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getSwitchDefaultClauseRule()
+ 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;
+ 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;
+ sequence_BlockStatement(context, (BlockStatement) semanticObject);
+ return;
case AlfPackage.BOOLEAN_LITERAL_EXPRESSION:
- sequence_BooleanLiteralExpression(context, (BooleanLiteralExpression) semanticObject);
- return;
+ sequence_BooleanLiteralExpression(context, (BooleanLiteralExpression) semanticObject);
+ return;
case AlfPackage.BOOLEAN_UNARY_EXPRESSION:
- sequence_BooleanUnaryExpression(context, (BooleanUnaryExpression) semanticObject);
- return;
+ sequence_BooleanUnaryExpression(context, (BooleanUnaryExpression) semanticObject);
+ return;
case AlfPackage.BREAK_STATEMENT:
- sequence_BreakStatement(context, (BreakStatement) semanticObject);
- return;
+ sequence_BreakStatement(context, (BreakStatement) semanticObject);
+ return;
case AlfPackage.CAST_EXPRESSION:
- sequence_CastExpression(context, (CastExpression) semanticObject);
- return;
+ 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()
+ 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()
+ 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;
+ sequence_ClassDeclaration_ClassDefinition(context, (ClassDefinition) semanticObject);
+ return;
+ } else
+ break;
case AlfPackage.CLASS_EXTENT_EXPRESSION:
- sequence_ClassExtentExpression(context, (ClassExtentExpression) semanticObject);
- return;
+ sequence_ClassExtentExpression(context, (ClassExtentExpression) semanticObject);
+ return;
case AlfPackage.CLASSIFICATION_EXPRESSION:
- sequence_ClassificationExpression(context, (ClassificationExpression) semanticObject);
- return;
+ sequence_ClassificationExpression(context, (ClassificationExpression) semanticObject);
+ return;
case AlfPackage.CLASSIFIER_DEFINITION:
- sequence_ClassifierSignature(context, (ClassifierDefinition) semanticObject);
- return;
+ sequence_ClassifierSignature(context, (ClassifierDefinition) semanticObject);
+ return;
case AlfPackage.CLASSIFIER_TEMPLATE_PARAMETER:
- sequence_ClassifierTemplateParameterDefinition(context, (ClassifierTemplateParameter) semanticObject);
- return;
+ sequence_ClassifierTemplateParameterDefinition(context, (ClassifierTemplateParameter) semanticObject);
+ return;
case AlfPackage.CLASSIFY_STATEMENT:
- sequence_ClassifyStatement(context, (ClassifyStatement) semanticObject);
- return;
+ sequence_ClassifyStatement(context, (ClassifyStatement) semanticObject);
+ return;
case AlfPackage.CONCURRENT_CLAUSES:
- sequence_ConcurrentClauses(context, (ConcurrentClauses) semanticObject);
- return;
+ sequence_ConcurrentClauses(context, (ConcurrentClauses) semanticObject);
+ return;
case AlfPackage.CONDITIONAL_LOGICAL_EXPRESSION:
- sequence_ConditionalAndExpression_ConditionalOrExpression(context, (ConditionalLogicalExpression) semanticObject);
- return;
+ sequence_ConditionalAndExpression_ConditionalOrExpression(context, (ConditionalLogicalExpression) semanticObject);
+ return;
case AlfPackage.CONDITIONAL_TEST_EXPRESSION:
- sequence_ConditionalExpression(context, (ConditionalTestExpression) semanticObject);
- return;
+ 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()
+ 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()
+ 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;
+ sequence_DataTypeDeclaration_DataTypeDefinition(context, (DataTypeDefinition) semanticObject);
+ return;
+ } else
+ break;
case AlfPackage.DO_STATEMENT:
- sequence_DoStatement(context, (DoStatement) semanticObject);
- return;
+ sequence_DoStatement(context, (DoStatement) semanticObject);
+ return;
case AlfPackage.ELEMENT_IMPORT_REFERENCE:
- sequence_ElementImportReference(context, (ElementImportReference) semanticObject);
- return;
+ sequence_ElementImportReference(context, (ElementImportReference) semanticObject);
+ return;
case AlfPackage.EMPTY_STATEMENT:
- sequence_EmptyStatement(context, (EmptyStatement) semanticObject);
- return;
+ 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()
+ 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()
+ 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;
+ sequence_EnumerationDeclaration_EnumerationDefinition(context, (EnumerationDefinition) semanticObject);
+ return;
+ } else
+ break;
case AlfPackage.ENUMERATION_LITERAL_NAME:
- sequence_EnumerationLiteralNameDefinition(context, (EnumerationLiteralName) semanticObject);
- return;
+ sequence_EnumerationLiteralNameDefinition(context, (EnumerationLiteralName) semanticObject);
+ return;
case AlfPackage.EQUALITY_EXPRESSION:
- sequence_EqualityExpression(context, (EqualityExpression) semanticObject);
- return;
+ sequence_EqualityExpression(context, (EqualityExpression) semanticObject);
+ return;
case AlfPackage.EXPRESSION_STATEMENT:
- sequence_ExpressionStatement(context, (ExpressionStatement) semanticObject);
- return;
+ 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()
+ 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;
+ 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()
@@ -407,42 +392,39 @@ public class AppliedStereotypePropertySemanticSequencer extends AlfSemanticSeque
|| 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;
+ 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;
+ 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;
+ 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;
+ sequence_ForStatement(context, (ForStatement) semanticObject);
+ return;
case AlfPackage.IF_STATEMENT:
- sequence_IfStatement(context, (IfStatement) semanticObject);
- return;
+ sequence_IfStatement(context, (IfStatement) semanticObject);
+ return;
case AlfPackage.IN_LINE_STATEMENT:
- sequence_InLineStatement(context, (InLineStatement) semanticObject);
- return;
+ 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()
+ sequence_PostfixExpression(context, (IncrementOrDecrementExpression) semanticObject);
+ return;
+ } else if (rule == grammarAccess.getAttributeInitializerRule()
|| rule == grammarAccess.getExpressionRule()
|| rule == grammarAccess.getPrimaryExpressionRule()
|| action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0()
@@ -482,15 +464,14 @@ public class AppliedStereotypePropertySemanticSequencer extends AlfSemanticSeque
|| action == grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0()
|| rule == grammarAccess.getInitializationExpressionRule()
|| rule == grammarAccess.getSwitchCaseRule()) {
- sequence_PostfixExpression_PrefixExpression(context, (IncrementOrDecrementExpression) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getPrefixExpressionRule()
+ sequence_PostfixExpression_PrefixExpression(context, (IncrementOrDecrementExpression) semanticObject);
+ return;
+ } else if (rule == grammarAccess.getPrefixExpressionRule()
|| rule == grammarAccess.getNonPostfixNonCastUnaryExpressionRule()) {
- sequence_PrefixExpression(context, (IncrementOrDecrementExpression) semanticObject);
- return;
- }
- else break;
+ sequence_PrefixExpression(context, (IncrementOrDecrementExpression) semanticObject);
+ return;
+ } else
+ break;
case AlfPackage.INSTANCE_CREATION_EXPRESSION:
if (rule == grammarAccess.getExpressionRule()
|| rule == grammarAccess.getPrimaryExpressionRule()
@@ -531,227 +512,206 @@ public class AppliedStereotypePropertySemanticSequencer extends AlfSemanticSeque
|| rule == grammarAccess.getConditionalExpressionRule()
|| action == grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0()
|| rule == grammarAccess.getSwitchCaseRule()) {
- sequence_InstanceCreationOrSequenceConstructionExpression(context, (InstanceCreationExpression) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getAttributeInitializerRule()
+ 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;
+ 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;
+ sequence_IsolationExpression(context, (IsolationExpression) semanticObject);
+ return;
case AlfPackage.LINK_OPERATION_EXPRESSION:
- sequence_LinkOperationExpression(context, (LinkOperationExpression) semanticObject);
- return;
+ sequence_LinkOperationExpression(context, (LinkOperationExpression) semanticObject);
+ return;
case AlfPackage.LOCAL_NAME_DECLARATION_STATEMENT:
- sequence_LocalNameDeclarationStatement(context, (LocalNameDeclarationStatement) semanticObject);
- return;
+ sequence_LocalNameDeclarationStatement(context, (LocalNameDeclarationStatement) semanticObject);
+ return;
case AlfPackage.LOGICAL_EXPRESSION:
- sequence_AndExpression_ExclusiveOrExpression_InclusiveOrExpression(context, (LogicalExpression) semanticObject);
- return;
+ sequence_AndExpression_ExclusiveOrExpression_InclusiveOrExpression(context, (LogicalExpression) semanticObject);
+ return;
case AlfPackage.LOOP_VARIABLE_DEFINITION:
- sequence_LoopVariableDefinition(context, (LoopVariableDefinition) semanticObject);
- return;
+ 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;
+ 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;
+ sequence_NameBinding(context, (NameBinding) semanticObject);
+ return;
case AlfPackage.NAME_EXPRESSION:
- sequence_NameExpression(context, (NameExpression) semanticObject);
- return;
+ sequence_NameExpression(context, (NameExpression) semanticObject);
+ return;
case AlfPackage.NAME_LEFT_HAND_SIDE:
- sequence_NameLeftHandSide(context, (NameLeftHandSide) semanticObject);
- return;
+ 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;
+ 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;
+ 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()
+ sequence_IndexedNamedTupleExpressionList(context, (NamedTuple) semanticObject);
+ return;
+ } else if (rule == grammarAccess.getTupleRule()
|| rule == grammarAccess.getNamedTupleExpressionListRule()) {
- sequence_NamedTupleExpressionList(context, (NamedTuple) semanticObject);
- return;
- }
- else break;
+ sequence_NamedTupleExpressionList(context, (NamedTuple) semanticObject);
+ return;
+ } else
+ break;
case AlfPackage.NATURAL_LITERAL_EXPRESSION:
- sequence_NaturalLiteralExpression(context, (NaturalLiteralExpression) semanticObject);
- return;
+ sequence_NaturalLiteralExpression(context, (NaturalLiteralExpression) semanticObject);
+ return;
case AlfPackage.NON_FINAL_CLAUSE:
- sequence_NonFinalClause(context, (NonFinalClause) semanticObject);
- return;
+ sequence_NonFinalClause(context, (NonFinalClause) semanticObject);
+ return;
case AlfPackage.NON_RETURN_PARAMETER:
- sequence_FormalParameterDefinition(context, (NonReturnParameter) semanticObject);
- return;
+ sequence_FormalParameterDefinition(context, (NonReturnParameter) semanticObject);
+ return;
case AlfPackage.NUMERIC_UNARY_EXPRESSION:
- sequence_NumericUnaryExpression(context, (NumericUnaryExpression) semanticObject);
- return;
+ 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()
+ 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;
+ 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()
+ sequence_PackageDefinitionOrStub(context, (PackageDefinition) semanticObject);
+ return;
+ } else if (rule == grammarAccess.getNamespaceDefinitionRule()
|| rule == grammarAccess.getPackageDefinitionRule()) {
- sequence_PackageDefinition(context, (PackageDefinition) semanticObject);
- return;
- }
- else break;
+ sequence_PackageDefinition(context, (PackageDefinition) semanticObject);
+ return;
+ } else
+ break;
case AlfPackage.PACKAGE_IMPORT_REFERENCE:
- sequence_PackageImportReference(context, (PackageImportReference) semanticObject);
- return;
+ sequence_PackageImportReference(context, (PackageImportReference) semanticObject);
+ return;
case AlfPackage.POSITIONAL_TEMPLATE_BINDING:
- sequence_PositionalTemplateBinding(context, (PositionalTemplateBinding) semanticObject);
- return;
+ sequence_PositionalTemplateBinding(context, (PositionalTemplateBinding) semanticObject);
+ return;
case AlfPackage.POSITIONAL_TUPLE:
- sequence_PositionalTupleExpressionList(context, (PositionalTuple) semanticObject);
- return;
+ sequence_PositionalTupleExpressionList(context, (PositionalTuple) semanticObject);
+ return;
case AlfPackage.PROPERTY_ACCESS_EXPRESSION:
- sequence_PrimaryExpression(context, (PropertyAccessExpression) semanticObject);
- return;
+ 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()
+ sequence_AttributeDefinition_PropertyDeclaration(context, (PropertyDefinition) semanticObject);
+ return;
+ } else if (rule == grammarAccess.getPropertyDefinitionRule()
|| rule == grammarAccess.getPropertyDeclarationRule()) {
- sequence_PropertyDeclaration(context, (PropertyDefinition) semanticObject);
- return;
- }
- else break;
+ 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()
+ 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;
+ 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;
+ 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;
+ sequence_ReceptionDefinition(context, (ReceptionDefinition) semanticObject);
+ return;
case AlfPackage.RELATIONAL_EXPRESSION:
- sequence_RelationalExpression(context, (RelationalExpression) semanticObject);
- return;
+ sequence_RelationalExpression(context, (RelationalExpression) semanticObject);
+ return;
case AlfPackage.RETURN_PARAMETER:
- sequence_ReturnParameterDefinition(context, (ReturnParameter) semanticObject);
- return;
+ sequence_ReturnParameterDefinition(context, (ReturnParameter) semanticObject);
+ return;
case AlfPackage.RETURN_STATEMENT:
- sequence_ReturnStatement(context, (ReturnStatement) semanticObject);
- return;
+ sequence_ReturnStatement(context, (ReturnStatement) semanticObject);
+ return;
case AlfPackage.SEQUENCE_ACCESS_EXPRESSION:
- sequence_PrimaryExpression(context, (SequenceAccessExpression) semanticObject);
- return;
+ 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()
+ 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()
@@ -788,24 +748,21 @@ public class AppliedStereotypePropertySemanticSequencer extends AlfSemanticSeque
|| rule == grammarAccess.getConditionalExpressionRule()
|| action == grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0()
|| rule == grammarAccess.getSwitchCaseRule()) {
- sequence_InstanceCreationOrSequenceConstructionExpression_SequenceConstructionExpression(context, (SequenceConstructionExpression) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getAttributeInitializerRule()
+ 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;
+ 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()
@@ -847,17 +804,16 @@ public class AppliedStereotypePropertySemanticSequencer extends AlfSemanticSeque
|| 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;
+ 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;
+ sequence_SequenceExpressionList(context, (SequenceExpressionList) semanticObject);
+ return;
case AlfPackage.SEQUENCE_OPERATION_EXPRESSION:
if (rule == grammarAccess.getAttributeInitializerRule()
|| rule == grammarAccess.getExpressionRule()
@@ -899,17 +855,16 @@ public class AppliedStereotypePropertySemanticSequencer extends AlfSemanticSeque
|| 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;
+ 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;
+ sequence_SequenceRange(context, (SequenceRange) semanticObject);
+ return;
case AlfPackage.SEQUENCE_REDUCTION_EXPRESSION:
if (rule == grammarAccess.getAttributeInitializerRule()
|| rule == grammarAccess.getExpressionRule()
@@ -951,108 +906,104 @@ public class AppliedStereotypePropertySemanticSequencer extends AlfSemanticSeque
|| 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;
+ 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;
+ 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()
+ 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()
+ 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;
+ 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()
+ 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;
+ sequence_SignalReceptionDeclaration_SignalReceptionDefinitionOrStub(context, (SignalReceptionDefinition) semanticObject);
+ return;
+ } else
+ break;
case AlfPackage.STEREOTYPE_ANNOTATION:
- sequence_StereotypeAnnotation(context, (StereotypeAnnotation) semanticObject);
- return;
+ sequence_StereotypeAnnotation(context, (StereotypeAnnotation) semanticObject);
+ return;
case AlfPackage.STRING_LITERAL_EXPRESSION:
- sequence_StringLiteralExpression(context, (StringLiteralExpression) semanticObject);
- return;
+ sequence_StringLiteralExpression(context, (StringLiteralExpression) semanticObject);
+ return;
case AlfPackage.SUPER_INVOCATION_EXPRESSION:
- sequence_SuperInvocationExpression(context, (SuperInvocationExpression) semanticObject);
- return;
+ sequence_SuperInvocationExpression(context, (SuperInvocationExpression) semanticObject);
+ return;
case AlfPackage.SWITCH_CLAUSE:
- sequence_SwitchClause(context, (SwitchClause) semanticObject);
- return;
+ sequence_SwitchClause(context, (SwitchClause) semanticObject);
+ return;
case AlfPackage.SWITCH_STATEMENT:
- sequence_SwitchStatement(context, (SwitchStatement) semanticObject);
- return;
+ sequence_SwitchStatement(context, (SwitchStatement) semanticObject);
+ return;
case AlfPackage.TAGGED_VALUE:
- sequence_TaggedValue(context, (TaggedValue) semanticObject);
- return;
+ sequence_TaggedValue(context, (TaggedValue) semanticObject);
+ return;
case AlfPackage.TAGGED_VALUE_LIST:
- sequence_TaggedValueList(context, (TaggedValueList) semanticObject);
- return;
+ sequence_TaggedValueList(context, (TaggedValueList) semanticObject);
+ return;
case AlfPackage.TEMPLATE_PARAMETER_SUBSTITUTION:
- sequence_TemplateParameterSubstitution(context, (TemplateParameterSubstitution) semanticObject);
- return;
+ sequence_TemplateParameterSubstitution(context, (TemplateParameterSubstitution) semanticObject);
+ return;
case AlfPackage.THIS_EXPRESSION:
- sequence_ThisExpression(context, (ThisExpression) semanticObject);
- return;
+ sequence_ThisExpression(context, (ThisExpression) semanticObject);
+ return;
case AlfPackage.TYPED_ELEMENT_DEFINITION:
- sequence_TypePart(context, (TypedElementDefinition) semanticObject);
- return;
+ sequence_TypePart(context, (TypedElementDefinition) semanticObject);
+ return;
case AlfPackage.UNBOUNDED_LITERAL_EXPRESSION:
- sequence_UnboundedLiteralExpression(context, (UnboundedLiteralExpression) semanticObject);
- return;
+ sequence_UnboundedLiteralExpression(context, (UnboundedLiteralExpression) semanticObject);
+ return;
case AlfPackage.UNIT_DEFINITION:
- sequence_UnitDefinition(context, (UnitDefinition) semanticObject);
- return;
+ sequence_UnitDefinition(context, (UnitDefinition) semanticObject);
+ return;
case AlfPackage.WHILE_STATEMENT:
- sequence_WhileStatement(context, (WhileStatement) semanticObject);
- return;
+ sequence_WhileStatement(context, (WhileStatement) semanticObject);
+ return;
}
else if (epackage == AppliedStereotypePropertyPackage.eINSTANCE)
switch (semanticObject.eClass().getClassifierID()) {
case AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE:
- sequence_AppliedStereotypePropertyRule(context, (AppliedStereotypePropertyRule) semanticObject);
- return;
+ sequence_AppliedStereotypePropertyRule(context, (AppliedStereotypePropertyRule) semanticObject);
+ return;
case AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE:
- sequence_ExpressionValueRule(context, (ExpressionValueRule) semanticObject);
- return;
+ sequence_ExpressionValueRule(context, (ExpressionValueRule) semanticObject);
+ return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
-
+
/**
* Contexts:
- * AppliedStereotypePropertyRule returns AppliedStereotypePropertyRule
+ * AppliedStereotypePropertyRule returns AppliedStereotypePropertyRule
*
* Constraint:
- * value=ExpressionValueRule
+ * value=ExpressionValueRule
*/
protected void sequence_AppliedStereotypePropertyRule(ISerializationContext context, AppliedStereotypePropertyRule semanticObject) {
if (errorAcceptor != null) {
@@ -1063,14 +1014,14 @@ public class AppliedStereotypePropertySemanticSequencer extends AlfSemanticSeque
feeder.accept(grammarAccess.getAppliedStereotypePropertyRuleAccess().getValueExpressionValueRuleParserRuleCall_0(), semanticObject.getValue());
feeder.finish();
}
-
-
+
+
/**
* Contexts:
- * ExpressionValueRule returns ExpressionValueRule
+ * ExpressionValueRule returns ExpressionValueRule
*
* Constraint:
- * expression=SequenceElement
+ * expression=SequenceElement
*/
protected void sequence_ExpressionValueRule(ISerializationContext context, ExpressionValueRule semanticObject) {
if (errorAcceptor != null) {
@@ -1081,6 +1032,6 @@ public class AppliedStereotypePropertySemanticSequencer extends AlfSemanticSeque
feeder.accept(grammarAccess.getExpressionValueRuleAccess().getExpressionSequenceElementParserRuleCall_1_0(), semanticObject.getExpression());
feeder.finish();
}
-
-
+
+
}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/serializer/AppliedStereotypePropertySyntacticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/serializer/AppliedStereotypePropertySyntacticSequencer.java
index 1e4d4461faa..271fbae7799 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/serializer/AppliedStereotypePropertySyntacticSequencer.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/serializer/AppliedStereotypePropertySyntacticSequencer.java
@@ -3,8 +3,8 @@
*/
package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.serializer;
-import com.google.inject.Inject;
import java.util.List;
+
import org.eclipse.emf.ecore.EObject;
import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.services.AppliedStereotypePropertyGrammarAccess;
import org.eclipse.xtext.IGrammarAccess;
@@ -18,6 +18,8 @@ import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISyn
import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
+import com.google.inject.Inject;
+
@SuppressWarnings("all")
public class AppliedStereotypePropertySyntacticSequencer extends AbstractSyntacticSequencer {
@@ -27,17 +29,21 @@ public class AppliedStereotypePropertySyntacticSequencer extends AbstractSyntact
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 = (AppliedStereotypePropertyGrammarAccess) 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_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())
@@ -46,10 +52,10 @@ public class AppliedStereotypePropertySyntacticSequencer extends AbstractSyntact
return getReclassifyAllClauseToken(semanticObject, ruleCall, node);
return "";
}
-
+
/**
- * MultiplicityIndicator :
- * '[' ']'
+ * MultiplicityIndicator :
+ * '[' ']'
* ;
*/
protected String getMultiplicityIndicatorToken(EObject semanticObject, RuleCall ruleCall, INode node) {
@@ -57,10 +63,10 @@ public class AppliedStereotypePropertySyntacticSequencer extends AbstractSyntact
return getTokenText(node);
return "[]";
}
-
+
/**
- * ReclassifyAllClause :
- * 'from' '*'
+ * ReclassifyAllClause :
+ * 'from' '*'
* ;
*/
protected String getReclassifyAllClauseToken(EObject semanticObject, RuleCall ruleCall, INode node) {
@@ -68,10 +74,11 @@ public class AppliedStereotypePropertySyntacticSequencer extends AbstractSyntact
return getTokenText(node);
return "from*";
}
-
+
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
- if (transition.getAmbiguousSyntaxes().isEmpty()) return;
+ if (transition.getAmbiguousSyntaxes().isEmpty())
+ return;
List<INode> transitionNodes = collectNodes(fromNode, toNode);
for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
@@ -85,262 +92,263 @@ public class AppliedStereotypePropertySyntacticSequencer extends AbstractSyntact
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);
+ else
+ acceptNodes(getLastNavigableState(), syntaxNodes);
}
}
/**
* Ambiguous syntax:
- * ('::' '*') | ('.' '*')
+ * ('::' '*') | ('.' '*')
*
* This ambiguous syntax occurs at:
- * nameBinding+=NameBinding (ambiguity) (rule end)
+ * 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=}
+ * (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=}
+ * (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)
+ * 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'?
+ * 'new'?
*
* This ambiguous syntax occurs at:
- * (rule start) '=' (ambiguity) '{' elements=SequenceElements
- * (rule start) (ambiguity) '{' elements=SequenceElements
+ * (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/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/services/AppliedStereotypePropertyGrammarAccess.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/services/AppliedStereotypePropertyGrammarAccess.java
index 58e952f6afc..652cc3c4000 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/services/AppliedStereotypePropertyGrammarAccess.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/services/AppliedStereotypePropertyGrammarAccess.java
@@ -3,78 +3,102 @@
*/
package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.services;
-import com.google.inject.Singleton;
-import com.google.inject.Inject;
-
import java.util.List;
-import org.eclipse.xtext.*;
+import org.eclipse.papyrus.uml.alf.services.AlfGrammarAccess;
+import org.eclipse.xtext.Assignment;
+import org.eclipse.xtext.Grammar;
+import org.eclipse.xtext.GrammarUtil;
+import org.eclipse.xtext.Group;
+import org.eclipse.xtext.Keyword;
+import org.eclipse.xtext.ParserRule;
+import org.eclipse.xtext.RuleCall;
+import org.eclipse.xtext.TerminalRule;
+import org.eclipse.xtext.service.AbstractElementFinder.AbstractGrammarElementFinder;
import org.eclipse.xtext.service.GrammarProvider;
-import org.eclipse.xtext.service.AbstractElementFinder.*;
-import org.eclipse.papyrus.uml.alf.services.AlfGrammarAccess;
+import com.google.inject.Inject;
+import com.google.inject.Singleton;
@Singleton
public class AppliedStereotypePropertyGrammarAccess extends AbstractGrammarElementFinder {
-
-
+
+
public class AppliedStereotypePropertyRuleElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.AppliedStereotypeProperty.AppliedStereotypePropertyRule");
- private final Assignment cValueAssignment = (Assignment)rule.eContents().get(1);
- private final RuleCall cValueExpressionValueRuleParserRuleCall_0 = (RuleCall)cValueAssignment.eContents().get(0);
-
- //AppliedStereotypePropertyRule:
- // value=ExpressionValueRule;
- @Override public ParserRule getRule() { return rule; }
+ private final Assignment cValueAssignment = (Assignment) rule.eContents().get(1);
+ private final RuleCall cValueExpressionValueRuleParserRuleCall_0 = (RuleCall) cValueAssignment.eContents().get(0);
+
+ // AppliedStereotypePropertyRule:
+ // value=ExpressionValueRule;
+ @Override
+ public ParserRule getRule() {
+ return rule;
+ }
- //value=ExpressionValueRule
- public Assignment getValueAssignment() { return cValueAssignment; }
+ // value=ExpressionValueRule
+ public Assignment getValueAssignment() {
+ return cValueAssignment;
+ }
- //ExpressionValueRule
- public RuleCall getValueExpressionValueRuleParserRuleCall_0() { return cValueExpressionValueRuleParserRuleCall_0; }
+ // ExpressionValueRule
+ public RuleCall getValueExpressionValueRuleParserRuleCall_0() {
+ return cValueExpressionValueRuleParserRuleCall_0;
+ }
}
public class ExpressionValueRuleElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.AppliedStereotypeProperty.ExpressionValueRule");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cEqualsSignKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Assignment cExpressionAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cExpressionSequenceElementParserRuleCall_1_0 = (RuleCall)cExpressionAssignment_1.eContents().get(0);
-
- //ExpressionValueRule:
- // '=' expression=SequenceElement;
- @Override public ParserRule getRule() { return rule; }
+ private final Group cGroup = (Group) rule.eContents().get(1);
+ private final Keyword cEqualsSignKeyword_0 = (Keyword) cGroup.eContents().get(0);
+ private final Assignment cExpressionAssignment_1 = (Assignment) cGroup.eContents().get(1);
+ private final RuleCall cExpressionSequenceElementParserRuleCall_1_0 = (RuleCall) cExpressionAssignment_1.eContents().get(0);
+
+ // ExpressionValueRule:
+ // '=' expression=SequenceElement;
+ @Override
+ public ParserRule getRule() {
+ return rule;
+ }
- //'=' expression=SequenceElement
- public Group getGroup() { return cGroup; }
+ // '=' expression=SequenceElement
+ public Group getGroup() {
+ return cGroup;
+ }
- //'='
- public Keyword getEqualsSignKeyword_0() { return cEqualsSignKeyword_0; }
+ // '='
+ public Keyword getEqualsSignKeyword_0() {
+ return cEqualsSignKeyword_0;
+ }
- //expression=SequenceElement
- public Assignment getExpressionAssignment_1() { return cExpressionAssignment_1; }
+ // expression=SequenceElement
+ public Assignment getExpressionAssignment_1() {
+ return cExpressionAssignment_1;
+ }
- //SequenceElement
- public RuleCall getExpressionSequenceElementParserRuleCall_1_0() { return cExpressionSequenceElementParserRuleCall_1_0; }
+ // SequenceElement
+ public RuleCall getExpressionSequenceElementParserRuleCall_1_0() {
+ return cExpressionSequenceElementParserRuleCall_1_0;
+ }
}
-
-
+
+
private final AppliedStereotypePropertyRuleElements pAppliedStereotypePropertyRule;
private final ExpressionValueRuleElements pExpressionValueRule;
-
+
private final Grammar grammar;
private final AlfGrammarAccess gaAlf;
@Inject
public AppliedStereotypePropertyGrammarAccess(GrammarProvider grammarProvider,
- AlfGrammarAccess gaAlf) {
+ AlfGrammarAccess gaAlf) {
this.grammar = internalFindGrammar(grammarProvider);
this.gaAlf = gaAlf;
this.pAppliedStereotypePropertyRule = new AppliedStereotypePropertyRuleElements();
this.pExpressionValueRule = new ExpressionValueRuleElements();
}
-
+
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
Grammar grammar = grammarProvider.getGrammar(this);
while (grammar != null) {
@@ -90,2124 +114,2115 @@ public class AppliedStereotypePropertyGrammarAccess extends AbstractGrammarEleme
}
return grammar;
}
-
+
@Override
public Grammar getGrammar() {
return grammar;
}
-
+
public AlfGrammarAccess getAlfGrammarAccess() {
return gaAlf;
}
-
- //AppliedStereotypePropertyRule:
- // value=ExpressionValueRule;
+
+ // AppliedStereotypePropertyRule:
+ // value=ExpressionValueRule;
public AppliedStereotypePropertyRuleElements getAppliedStereotypePropertyRuleAccess() {
return pAppliedStereotypePropertyRule;
}
-
+
public ParserRule getAppliedStereotypePropertyRuleRule() {
return getAppliedStereotypePropertyRuleAccess().getRule();
}
- //ExpressionValueRule:
- // '=' expression=SequenceElement;
+ // ExpressionValueRule:
+ // '=' expression=SequenceElement;
public ExpressionValueRuleElements getExpressionValueRuleAccess() {
return pExpressionValueRule;
}
-
+
public ParserRule getExpressionValueRuleRule() {
return getExpressionValueRuleAccess().getRule();
}
/// *********
// * UNITS *
- // ********* / UnitDefinition:
- // namespaceName=NamespaceDeclaration?
- // ^import+=ImportDeclaration*
- // documentation+=DOCUMENTATION_COMMENT?
- // annotation+=StereotypeAnnotation*
- // definition=NamespaceDefinition;
+ // *********/ UnitDefinition:
+ // namespaceName=NamespaceDeclaration? ^import+=ImportDeclaration* documentation+=DOCUMENTATION_COMMENT?
+ // annotation+=StereotypeAnnotation* definition=NamespaceDefinition;
public AlfGrammarAccess.UnitDefinitionElements getUnitDefinitionAccess() {
return gaAlf.getUnitDefinitionAccess();
}
-
+
public ParserRule getUnitDefinitionRule() {
return getUnitDefinitionAccess().getRule();
}
- //StereotypeAnnotation:
- // '@' stereotypeName=QualifiedName ('(' (names=QualifiedNameList | taggedValues=TaggedValueList) ')')?;
+ // StereotypeAnnotation:
+ // '@' stereotypeName=QualifiedName ('(' (names=QualifiedNameList | taggedValues=TaggedValueList) ')')?;
public AlfGrammarAccess.StereotypeAnnotationElements getStereotypeAnnotationAccess() {
return gaAlf.getStereotypeAnnotationAccess();
}
-
+
public ParserRule getStereotypeAnnotationRule() {
return getStereotypeAnnotationAccess().getRule();
}
- //TaggedValueList:
- // taggedValue+=TaggedValue ("," taggedValue+=TaggedValue)*;
+ // TaggedValueList:
+ // taggedValue+=TaggedValue ("," taggedValue+=TaggedValue)*;
public AlfGrammarAccess.TaggedValueListElements getTaggedValueListAccess() {
return gaAlf.getTaggedValueListAccess();
}
-
+
public ParserRule getTaggedValueListRule() {
return getTaggedValueListAccess().getRule();
}
- //TaggedValue:
- // name=Name '=>' (value=BOOLEAN_VALUE | operator=NumericUnaryOperator? value=NATURAL_VALUE | value='*' | value=STRING);
+ // TaggedValue:
+ // name=Name '=>' (value=BOOLEAN_VALUE | operator=NumericUnaryOperator? value=NATURAL_VALUE | value='*' | value=STRING);
public AlfGrammarAccess.TaggedValueElements getTaggedValueAccess() {
return gaAlf.getTaggedValueAccess();
}
-
+
public ParserRule getTaggedValueRule() {
return getTaggedValueAccess().getRule();
}
- //NamespaceDeclaration QualifiedName:
- // 'namespace' QualifiedName ';'
+ // NamespaceDeclaration QualifiedName:
+ // 'namespace' QualifiedName ';';
public AlfGrammarAccess.NamespaceDeclarationElements getNamespaceDeclarationAccess() {
return gaAlf.getNamespaceDeclarationAccess();
}
-
+
public ParserRule getNamespaceDeclarationRule() {
return getNamespaceDeclarationAccess().getRule();
}
- //ImportDeclaration ImportReference:
- // (PackageImportReference | ElementImportReference) ';'
+ // ImportDeclaration ImportReference:
+ // (PackageImportReference | ElementImportReference) ';';
public AlfGrammarAccess.ImportDeclarationElements getImportDeclarationAccess() {
return gaAlf.getImportDeclarationAccess();
}
-
+
public ParserRule getImportDeclarationRule() {
return getImportDeclarationAccess().getRule();
}
- //ElementImportReference:
- // visibility=ImportVisibilityIndicator 'import' referentName=QualifiedName ('as' alias=Name)?;
+ // ElementImportReference:
+ // visibility=ImportVisibilityIndicator 'import' referentName=QualifiedName ('as' alias=Name)?;
public AlfGrammarAccess.ElementImportReferenceElements getElementImportReferenceAccess() {
return gaAlf.getElementImportReferenceAccess();
}
-
+
public ParserRule getElementImportReferenceRule() {
return getElementImportReferenceAccess().getRule();
}
- //PackageImportReference:
- // visibility=ImportVisibilityIndicator 'import' referentName=PackageImportQualifiedName
- // // (
- // // referentName = UnqualifiedName ('::' | '.') '*' |
- // // referentName = ColonQualifiedName '::' '*' |
- // // referentName = DotQualifiedName '.' '*'
- // // )
- //;
+ // PackageImportReference:
+ // visibility=ImportVisibilityIndicator 'import' referentName=PackageImportQualifiedName // (
+ //
+ // // referentName = UnqualifiedName ('::' | '.') '*' |
+ // // referentName = ColonQualifiedName '::' '*' |
+ //
+ // // referentName = DotQualifiedName '.' '*'
+ // // )
+ // ;
public AlfGrammarAccess.PackageImportReferenceElements getPackageImportReferenceAccess() {
return gaAlf.getPackageImportReferenceAccess();
}
-
+
public ParserRule getPackageImportReferenceRule() {
return getPackageImportReferenceAccess().getRule();
}
- //PackageImportQualifiedName QualifiedName:
- // nameBinding+=NameBinding (('::' nameBinding+=NameBinding)* '::' '*' | ('.' nameBinding+=NameBinding)* '.' '*')
+ // PackageImportQualifiedName QualifiedName:
+ // nameBinding+=NameBinding (('::' nameBinding+=NameBinding)* '::' '*' | ('.' nameBinding+=NameBinding)* '.' '*');
public AlfGrammarAccess.PackageImportQualifiedNameElements getPackageImportQualifiedNameAccess() {
return gaAlf.getPackageImportQualifiedNameAccess();
}
-
+
public ParserRule getPackageImportQualifiedNameRule() {
return getPackageImportQualifiedNameAccess().getRule();
}
- //ImportVisibilityIndicator:
- // 'public' | 'private';
+ // ImportVisibilityIndicator:
+ // 'public' | 'private';
public AlfGrammarAccess.ImportVisibilityIndicatorElements getImportVisibilityIndicatorAccess() {
return gaAlf.getImportVisibilityIndicatorAccess();
}
-
+
public ParserRule getImportVisibilityIndicatorRule() {
return getImportVisibilityIndicatorAccess().getRule();
}
- /// * NAMESPACES * / NamespaceDefinition:
- // PackageDefinition | ClassifierDefinition;
+ /// * NAMESPACES */ NamespaceDefinition:
+ // PackageDefinition | ClassifierDefinition;
public AlfGrammarAccess.NamespaceDefinitionElements getNamespaceDefinitionAccess() {
return gaAlf.getNamespaceDefinitionAccess();
}
-
+
public ParserRule getNamespaceDefinitionRule() {
return getNamespaceDefinitionAccess().getRule();
}
- //VisibilityIndicator:
- // ImportVisibilityIndicator | 'protected';
+ // VisibilityIndicator:
+ // ImportVisibilityIndicator | 'protected';
public AlfGrammarAccess.VisibilityIndicatorElements getVisibilityIndicatorAccess() {
return gaAlf.getVisibilityIndicatorAccess();
}
-
+
public ParserRule getVisibilityIndicatorRule() {
return getVisibilityIndicatorAccess().getRule();
}
//// CHANGE: Separated Member into Member with a composite reference to MemberDefinition.
- /// * PACKAGES * / PackageDefinition:
- // 'package' name=Name '{' ownedMember+=PackagedElement* '}';
+ // /* PACKAGES */
+ // PackageDefinition:
+ // 'package' name=Name '{' ownedMember+=PackagedElement* '}';
public AlfGrammarAccess.PackageDefinitionElements getPackageDefinitionAccess() {
return gaAlf.getPackageDefinitionAccess();
}
-
+
public ParserRule getPackageDefinitionRule() {
return getPackageDefinitionAccess().getRule();
}
- //PackageDefinitionOrStub PackageDefinition:
- // 'package' name=Name (isStub?=';' | '{' ownedMember+=PackagedElement* '}')
+ // PackageDefinitionOrStub PackageDefinition:
+ // 'package' name=Name (isStub?=';' | '{' ownedMember+=PackagedElement* '}');
public AlfGrammarAccess.PackageDefinitionOrStubElements getPackageDefinitionOrStubAccess() {
return gaAlf.getPackageDefinitionOrStubAccess();
}
-
+
public ParserRule getPackageDefinitionOrStubRule() {
return getPackageDefinitionOrStubAccess().getRule();
}
- //// PackageBody :
- //// {PackageBody}'{' ( packagedElement += PackagedElement )* '}'
- //// ;
- //PackagedElement Member:
- // documentation+=DOCUMENTATION_COMMENT?
- // annotation+=StereotypeAnnotation*
- // visibility=ImportVisibilityIndicator
- // definition=PackagedElementDefinition
+ //// PackageBody :
+ // // {PackageBody}'{' ( packagedElement += PackagedElement )* '}'
+ // // ;
+ // PackagedElement Member:
+ // documentation+=DOCUMENTATION_COMMENT? annotation+=StereotypeAnnotation* visibility=ImportVisibilityIndicator
+ // definition=PackagedElementDefinition;
public AlfGrammarAccess.PackagedElementElements getPackagedElementAccess() {
return gaAlf.getPackagedElementAccess();
}
-
+
public ParserRule getPackagedElementRule() {
return getPackagedElementAccess().getRule();
}
- //PackagedElementDefinition MemberDefinition:
- // PackageDefinitionOrStub | ClassifierDefinitionOrStub
+ // PackagedElementDefinition MemberDefinition:
+ // PackageDefinitionOrStub | ClassifierDefinitionOrStub;
public AlfGrammarAccess.PackagedElementDefinitionElements getPackagedElementDefinitionAccess() {
return gaAlf.getPackagedElementDefinitionAccess();
}
-
+
public ParserRule getPackagedElementDefinitionRule() {
return getPackagedElementDefinitionAccess().getRule();
}
/// ***************
// * CLASSIFIERS *
- // *************** / ClassifierDefinition:
- // ClassDefinition | ActiveClassDefinition | DataTypeDefinition | EnumerationDefinition | AssociationDefinition |
- // SignalDefinition | ActivityDefinition;
+ // ***************/ ClassifierDefinition:
+ // ClassDefinition | ActiveClassDefinition | DataTypeDefinition | EnumerationDefinition | AssociationDefinition |
+ // SignalDefinition | ActivityDefinition;
public AlfGrammarAccess.ClassifierDefinitionElements getClassifierDefinitionAccess() {
return gaAlf.getClassifierDefinitionAccess();
}
-
+
public ParserRule getClassifierDefinitionRule() {
return getClassifierDefinitionAccess().getRule();
}
- //ClassifierDefinitionOrStub ClassifierDefinition:
- // ClassDefinitionOrStub | ActiveClassDefinitionOrStub | DataTypeDefinitionOrStub | EnumerationDefinitionOrStub |
- // AssociationDefinitionOrStub | SignalDefinitionOrStub | ActivityDefinitionOrStub
+ // ClassifierDefinitionOrStub ClassifierDefinition:
+ // ClassDefinitionOrStub | ActiveClassDefinitionOrStub | DataTypeDefinitionOrStub | EnumerationDefinitionOrStub |
+ // AssociationDefinitionOrStub | SignalDefinitionOrStub | ActivityDefinitionOrStub;
public AlfGrammarAccess.ClassifierDefinitionOrStubElements getClassifierDefinitionOrStubAccess() {
return gaAlf.getClassifierDefinitionOrStubAccess();
}
-
+
public ParserRule getClassifierDefinitionOrStubRule() {
return getClassifierDefinitionOrStubAccess().getRule();
}
- //ClassifierSignature ClassifierDefinition:
- // name=Name ('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
- // specialization=SpecializationClause?
+ // ClassifierSignature ClassifierDefinition:
+ // name=Name ('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
+ // specialization=SpecializationClause?;
public AlfGrammarAccess.ClassifierSignatureElements getClassifierSignatureAccess() {
return gaAlf.getClassifierSignatureAccess();
}
-
+
public ParserRule getClassifierSignatureRule() {
return getClassifierSignatureAccess().getRule();
}
- //ClassifierTemplateParameter Member:
- // documentation+=DOCUMENTATION_COMMENT?
- // definition=ClassifierTemplateParameterDefinition
+ // ClassifierTemplateParameter Member:
+ // documentation+=DOCUMENTATION_COMMENT? definition=ClassifierTemplateParameterDefinition
+ // // TODO: isAbstract = true visibility = 'private'
+ // ;
public AlfGrammarAccess.ClassifierTemplateParameterElements getClassifierTemplateParameterAccess() {
return gaAlf.getClassifierTemplateParameterAccess();
}
-
+
public ParserRule getClassifierTemplateParameterRule() {
return getClassifierTemplateParameterAccess().getRule();
}
- //ClassifierTemplateParameterDefinition ClassifierTemplateParameter:
- // name=Name ('specializes' specialization=TemplateParameterConstraint)?
+ // ClassifierTemplateParameterDefinition ClassifierTemplateParameter:
+ // name=Name ('specializes' specialization=TemplateParameterConstraint)?;
public AlfGrammarAccess.ClassifierTemplateParameterDefinitionElements getClassifierTemplateParameterDefinitionAccess() {
return gaAlf.getClassifierTemplateParameterDefinitionAccess();
}
-
+
public ParserRule getClassifierTemplateParameterDefinitionRule() {
return getClassifierTemplateParameterDefinitionAccess().getRule();
}
- //TemplateParameterConstraint QualifiedNameList:
- // name+=QualifiedName
+ // TemplateParameterConstraint QualifiedNameList:
+ // name+=QualifiedName;
public AlfGrammarAccess.TemplateParameterConstraintElements getTemplateParameterConstraintAccess() {
return gaAlf.getTemplateParameterConstraintAccess();
}
-
+
public ParserRule getTemplateParameterConstraintRule() {
return getTemplateParameterConstraintAccess().getRule();
}
- //SpecializationClause QualifiedNameList:
- // 'specializes' QualifiedNameList
+ // SpecializationClause QualifiedNameList:
+ // 'specializes' QualifiedNameList;
public AlfGrammarAccess.SpecializationClauseElements getSpecializationClauseAccess() {
return gaAlf.getSpecializationClauseAccess();
}
-
+
public ParserRule getSpecializationClauseRule() {
return getSpecializationClauseAccess().getRule();
}
- /// * CLASSES * / ClassDeclaration ClassDefinition:
- // isAbstract?='abstract'? 'class' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- // ownedMember+=ClassifierTemplateParameter)* '>')?
- // specialization=SpecializationClause?
+ /// * CLASSES */ ClassDeclaration ClassDefinition:
+ // isAbstract?='abstract'? 'class' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ // ownedMember+=ClassifierTemplateParameter)* '>')? specialization=SpecializationClause?;
public AlfGrammarAccess.ClassDeclarationElements getClassDeclarationAccess() {
return gaAlf.getClassDeclarationAccess();
}
-
+
public ParserRule getClassDeclarationRule() {
return getClassDeclarationAccess().getRule();
}
- //ClassDefinition:
- // ClassDeclaration
- // '{' ownedMember+=ClassMember* '}';
+ // ClassDefinition:
+ // ClassDeclaration '{' ownedMember+=ClassMember* '}';
public AlfGrammarAccess.ClassDefinitionElements getClassDefinitionAccess() {
return gaAlf.getClassDefinitionAccess();
}
-
+
public ParserRule getClassDefinitionRule() {
return getClassDefinitionAccess().getRule();
}
- //ClassDefinitionOrStub ClassDefinition:
- // ClassDeclaration (isStub?=';' | '{' ownedMember+=ClassMember* '}')
+ // ClassDefinitionOrStub ClassDefinition:
+ // ClassDeclaration (isStub?=';' | '{' ownedMember+=ClassMember* '}');
public AlfGrammarAccess.ClassDefinitionOrStubElements getClassDefinitionOrStubAccess() {
return gaAlf.getClassDefinitionOrStubAccess();
}
-
+
public ParserRule getClassDefinitionOrStubRule() {
return getClassDefinitionOrStubAccess().getRule();
}
- //ClassMember Member:
- // documentation+=DOCUMENTATION_COMMENT*
- // annotation+=StereotypeAnnotation*
- // visibility=VisibilityIndicator?
- // definition=ClassMemberDefinition
+ // ClassMember Member:
+ // documentation+=DOCUMENTATION_COMMENT* annotation+=StereotypeAnnotation* visibility=VisibilityIndicator?
+ // definition=ClassMemberDefinition;
public AlfGrammarAccess.ClassMemberElements getClassMemberAccess() {
return gaAlf.getClassMemberAccess();
}
-
+
public ParserRule getClassMemberRule() {
return getClassMemberAccess().getRule();
}
- //ClassMemberDefinition MemberDefinition:
- // ClassifierDefinitionOrStub | FeatureDefinitionOrStub
+ // ClassMemberDefinition MemberDefinition:
+ // ClassifierDefinitionOrStub | FeatureDefinitionOrStub;
public AlfGrammarAccess.ClassMemberDefinitionElements getClassMemberDefinitionAccess() {
return gaAlf.getClassMemberDefinitionAccess();
}
-
+
public ParserRule getClassMemberDefinitionRule() {
return getClassMemberDefinitionAccess().getRule();
}
- /// * ACTIVE CLASSES * / ActiveClassDeclaration ActiveClassDefinition:
- // isAbstract?='abstract'? 'active' 'class' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- // ownedMember+=ClassifierTemplateParameter)* '>')?
- // specialization=SpecializationClause?
+ /// * ACTIVE CLASSES */ ActiveClassDeclaration ActiveClassDefinition:
+ // isAbstract?='abstract'? 'active' 'class' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ // ownedMember+=ClassifierTemplateParameter)* '>')? specialization=SpecializationClause?;
public AlfGrammarAccess.ActiveClassDeclarationElements getActiveClassDeclarationAccess() {
return gaAlf.getActiveClassDeclarationAccess();
}
-
+
public ParserRule getActiveClassDeclarationRule() {
return getActiveClassDeclarationAccess().getRule();
}
- //ActiveClassDefinition:
- // ActiveClassDeclaration
- // '{' ownedMember+=ActiveClassMember* '}' ('do' classifierBehavior=BehaviorClause)?;
+ // ActiveClassDefinition:
+ // ActiveClassDeclaration '{' ownedMember+=ActiveClassMember* '}' ('do' classifierBehavior=BehaviorClause)?;
public AlfGrammarAccess.ActiveClassDefinitionElements getActiveClassDefinitionAccess() {
return gaAlf.getActiveClassDefinitionAccess();
}
-
+
public ParserRule getActiveClassDefinitionRule() {
return getActiveClassDefinitionAccess().getRule();
}
- //ActiveClassDefinitionOrStub ActiveClassDefinition:
- // ActiveClassDeclaration (isStub?=';' |
- // '{' ownedMember+=ActiveClassMember* '}' ('do' classifierBehavior=BehaviorClause)?)
+ // ActiveClassDefinitionOrStub ActiveClassDefinition:
+ // ActiveClassDeclaration (isStub?=';' | '{' ownedMember+=ActiveClassMember* '}' ('do'
+ // classifierBehavior=BehaviorClause)?);
public AlfGrammarAccess.ActiveClassDefinitionOrStubElements getActiveClassDefinitionOrStubAccess() {
return gaAlf.getActiveClassDefinitionOrStubAccess();
}
-
+
public ParserRule getActiveClassDefinitionOrStubRule() {
return getActiveClassDefinitionOrStubAccess().getRule();
}
- //BehaviorClause ActivityDefinition:
- // body=Block | name=Name
+ // BehaviorClause ActivityDefinition:
+ // body=Block | name=Name // NOTE: Does not set isStub = true.
+ // ;
public AlfGrammarAccess.BehaviorClauseElements getBehaviorClauseAccess() {
return gaAlf.getBehaviorClauseAccess();
}
-
+
public ParserRule getBehaviorClauseRule() {
return getBehaviorClauseAccess().getRule();
}
- //ActiveClassMember Member:
- // documentation+=DOCUMENTATION_COMMENT?
- // annotation+=StereotypeAnnotation*
- // visibility=VisibilityIndicator?
- // definition=ActiveClassMemberDefinition
+ // ActiveClassMember Member:
+ // documentation+=DOCUMENTATION_COMMENT? annotation+=StereotypeAnnotation* visibility=VisibilityIndicator?
+ // definition=ActiveClassMemberDefinition;
public AlfGrammarAccess.ActiveClassMemberElements getActiveClassMemberAccess() {
return gaAlf.getActiveClassMemberAccess();
}
-
+
public ParserRule getActiveClassMemberRule() {
return getActiveClassMemberAccess().getRule();
}
- //ActiveClassMemberDefinition MemberDefinition:
- // ClassMemberDefinition | ActiveFeatureDefinitionOrStub
+ // ActiveClassMemberDefinition MemberDefinition:
+ // ClassMemberDefinition | ActiveFeatureDefinitionOrStub;
public AlfGrammarAccess.ActiveClassMemberDefinitionElements getActiveClassMemberDefinitionAccess() {
return gaAlf.getActiveClassMemberDefinitionAccess();
}
-
+
public ParserRule getActiveClassMemberDefinitionRule() {
return getActiveClassMemberDefinitionAccess().getRule();
}
- /// * DATA TYPES * / DataTypeDeclaration DataTypeDefinition:
- // isAbstract?='abstract'? 'datatype' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- // ownedMember+=ClassifierTemplateParameter)* '>')?
- // specialization=SpecializationClause?
+ /// * DATA TYPES */ DataTypeDeclaration DataTypeDefinition:
+ // isAbstract?='abstract'? 'datatype' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ // ownedMember+=ClassifierTemplateParameter)* '>')? specialization=SpecializationClause?;
public AlfGrammarAccess.DataTypeDeclarationElements getDataTypeDeclarationAccess() {
return gaAlf.getDataTypeDeclarationAccess();
}
-
+
public ParserRule getDataTypeDeclarationRule() {
return getDataTypeDeclarationAccess().getRule();
}
- //DataTypeDefinition:
- // DataTypeDeclaration
- // '{' ownedMember+=StructuredMember* '}';
+ // DataTypeDefinition:
+ // DataTypeDeclaration '{' ownedMember+=StructuredMember* '}';
public AlfGrammarAccess.DataTypeDefinitionElements getDataTypeDefinitionAccess() {
return gaAlf.getDataTypeDefinitionAccess();
}
-
+
public ParserRule getDataTypeDefinitionRule() {
return getDataTypeDefinitionAccess().getRule();
}
- //DataTypeDefinitionOrStub DataTypeDefinition:
- // DataTypeDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ // DataTypeDefinitionOrStub DataTypeDefinition:
+ // DataTypeDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}');
public AlfGrammarAccess.DataTypeDefinitionOrStubElements getDataTypeDefinitionOrStubAccess() {
return gaAlf.getDataTypeDefinitionOrStubAccess();
}
-
+
public ParserRule getDataTypeDefinitionOrStubRule() {
return getDataTypeDefinitionOrStubAccess().getRule();
}
- //StructuredMember Member:
- // documentation+=DOCUMENTATION_COMMENT?
- // annotation+=StereotypeAnnotation*
- // visibility='public'?
- // definition=PropertyDefinition
+ // StructuredMember Member:
+ // documentation+=DOCUMENTATION_COMMENT? annotation+=StereotypeAnnotation* visibility='public'?
+ // definition=PropertyDefinition;
public AlfGrammarAccess.StructuredMemberElements getStructuredMemberAccess() {
return gaAlf.getStructuredMemberAccess();
}
-
+
public ParserRule getStructuredMemberRule() {
return getStructuredMemberAccess().getRule();
}
- /// * ASSOCIATIONS * / AssociationDeclaration AssociationDefinition:
- // isAbstract?='abstract'? 'assoc' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- // ownedMember+=ClassifierTemplateParameter)* '>')?
- // specialization=SpecializationClause?
+ /// * ASSOCIATIONS */ AssociationDeclaration AssociationDefinition:
+ // isAbstract?='abstract'? 'assoc' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ // ownedMember+=ClassifierTemplateParameter)* '>')? specialization=SpecializationClause?;
public AlfGrammarAccess.AssociationDeclarationElements getAssociationDeclarationAccess() {
return gaAlf.getAssociationDeclarationAccess();
}
-
+
public ParserRule getAssociationDeclarationRule() {
return getAssociationDeclarationAccess().getRule();
}
- //AssociationDefinition:
- // AssociationDeclaration
- // '{' ownedMember+=StructuredMember* '}';
+ // AssociationDefinition:
+ // AssociationDeclaration '{' ownedMember+=StructuredMember* '}';
public AlfGrammarAccess.AssociationDefinitionElements getAssociationDefinitionAccess() {
return gaAlf.getAssociationDefinitionAccess();
}
-
+
public ParserRule getAssociationDefinitionRule() {
return getAssociationDefinitionAccess().getRule();
}
- //AssociationDefinitionOrStub AssociationDefinition:
- // AssociationDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ // AssociationDefinitionOrStub AssociationDefinition:
+ // AssociationDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}');
public AlfGrammarAccess.AssociationDefinitionOrStubElements getAssociationDefinitionOrStubAccess() {
return gaAlf.getAssociationDefinitionOrStubAccess();
}
-
+
public ParserRule getAssociationDefinitionOrStubRule() {
return getAssociationDefinitionOrStubAccess().getRule();
}
- /// * ENUMERATIONS * / EnumerationDeclaration EnumerationDefinition:
- // 'enum' name=Name specialization=SpecializationClause?
+ /// * ENUMERATIONS */ EnumerationDeclaration EnumerationDefinition:
+ // 'enum' name=Name specialization=SpecializationClause?;
public AlfGrammarAccess.EnumerationDeclarationElements getEnumerationDeclarationAccess() {
return gaAlf.getEnumerationDeclarationAccess();
}
-
+
public ParserRule getEnumerationDeclarationRule() {
return getEnumerationDeclarationAccess().getRule();
}
- //EnumerationDefinition:
- // EnumerationDeclaration
- // '{' (ownedMember+=EnumerationLiteralName (',' ownedMember+=EnumerationLiteralName)*)? '}';
+ // EnumerationDefinition:
+ // EnumerationDeclaration '{' (ownedMember+=EnumerationLiteralName (',' ownedMember+=EnumerationLiteralName)*)? '}';
public AlfGrammarAccess.EnumerationDefinitionElements getEnumerationDefinitionAccess() {
return gaAlf.getEnumerationDefinitionAccess();
}
-
+
public ParserRule getEnumerationDefinitionRule() {
return getEnumerationDefinitionAccess().getRule();
}
- //EnumerationDefinitionOrStub EnumerationDefinition:
- // EnumerationDeclaration (isStub?=';' | '{' (ownedMember+=EnumerationLiteralName (','
- // ownedMember+=EnumerationLiteralName)*)? '}')
+ // EnumerationDefinitionOrStub EnumerationDefinition:
+ // EnumerationDeclaration (isStub?=';' | '{' (ownedMember+=EnumerationLiteralName (','
+ // ownedMember+=EnumerationLiteralName)*)? '}');
public AlfGrammarAccess.EnumerationDefinitionOrStubElements getEnumerationDefinitionOrStubAccess() {
return gaAlf.getEnumerationDefinitionOrStubAccess();
}
-
+
public ParserRule getEnumerationDefinitionOrStubRule() {
return getEnumerationDefinitionOrStubAccess().getRule();
}
- //EnumerationLiteralName Member:
- // documentation+=DOCUMENTATION_COMMENT?
- // // TODO: visibility = 'public'
- // definition=EnumerationLiteralNameDefinition
+ // EnumerationLiteralName Member:
+ // documentation+=DOCUMENTATION_COMMENT? // TODO: visibility = 'public'
+ // definition=EnumerationLiteralNameDefinition;
public AlfGrammarAccess.EnumerationLiteralNameElements getEnumerationLiteralNameAccess() {
return gaAlf.getEnumerationLiteralNameAccess();
}
-
+
public ParserRule getEnumerationLiteralNameRule() {
return getEnumerationLiteralNameAccess().getRule();
}
- //EnumerationLiteralNameDefinition EnumerationLiteralName:
- // name=Name
+ // EnumerationLiteralNameDefinition EnumerationLiteralName:
+ // name=Name;
public AlfGrammarAccess.EnumerationLiteralNameDefinitionElements getEnumerationLiteralNameDefinitionAccess() {
return gaAlf.getEnumerationLiteralNameDefinitionAccess();
}
-
+
public ParserRule getEnumerationLiteralNameDefinitionRule() {
return getEnumerationLiteralNameDefinitionAccess().getRule();
}
- /// * SIGNALS * / SignalDeclaration SignalDefinition:
- // isAbstract?='abstract'? 'signal' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- // ownedMember+=ClassifierTemplateParameter)* '>')?
- // specialization=SpecializationClause?
+ /// * SIGNALS */ SignalDeclaration SignalDefinition:
+ // isAbstract?='abstract'? 'signal' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ // ownedMember+=ClassifierTemplateParameter)* '>')? specialization=SpecializationClause?;
public AlfGrammarAccess.SignalDeclarationElements getSignalDeclarationAccess() {
return gaAlf.getSignalDeclarationAccess();
}
-
+
public ParserRule getSignalDeclarationRule() {
return getSignalDeclarationAccess().getRule();
}
- //SignalDefinition:
- // SignalDeclaration
- // '{' ownedMember+=StructuredMember* '}';
+ // SignalDefinition:
+ // SignalDeclaration '{' ownedMember+=StructuredMember* '}';
public AlfGrammarAccess.SignalDefinitionElements getSignalDefinitionAccess() {
return gaAlf.getSignalDefinitionAccess();
}
-
+
public ParserRule getSignalDefinitionRule() {
return getSignalDefinitionAccess().getRule();
}
- //SignalDefinitionOrStub SignalDefinition:
- // SignalDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ // SignalDefinitionOrStub SignalDefinition:
+ // SignalDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}');
public AlfGrammarAccess.SignalDefinitionOrStubElements getSignalDefinitionOrStubAccess() {
return gaAlf.getSignalDefinitionOrStubAccess();
}
-
+
public ParserRule getSignalDefinitionOrStubRule() {
return getSignalDefinitionOrStubAccess().getRule();
}
- /// * ACTIVITIES * / ActivityDeclaration ActivityDefinition:
- // 'activity' name=Name ('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)*
- // '>')?
- // '(' (ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)? ')'
- // ownedMember+=ReturnParameter?
+ /// * ACTIVITIES */ ActivityDeclaration ActivityDefinition:
+ // 'activity' name=Name ('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)*
+ // '>')? '(' (ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)? ')' ownedMember+=ReturnParameter?;
public AlfGrammarAccess.ActivityDeclarationElements getActivityDeclarationAccess() {
return gaAlf.getActivityDeclarationAccess();
}
-
+
public ParserRule getActivityDeclarationRule() {
return getActivityDeclarationAccess().getRule();
}
- //ActivityDefinition:
- // ActivityDeclaration
- // body=Block;
+ // ActivityDefinition:
+ // ActivityDeclaration body=Block;
public AlfGrammarAccess.ActivityDefinitionElements getActivityDefinitionAccess() {
return gaAlf.getActivityDefinitionAccess();
}
-
+
public ParserRule getActivityDefinitionRule() {
return getActivityDefinitionAccess().getRule();
}
- //ActivityDefinitionOrStub ActivityDefinition:
- // ActivityDeclaration (isStub?=';' | body=Block)
+ // ActivityDefinitionOrStub ActivityDefinition:
+ // ActivityDeclaration (isStub?=';' | body=Block);
public AlfGrammarAccess.ActivityDefinitionOrStubElements getActivityDefinitionOrStubAccess() {
return gaAlf.getActivityDefinitionOrStubAccess();
}
-
+
public ParserRule getActivityDefinitionOrStubRule() {
return getActivityDefinitionOrStubAccess().getRule();
}
- //FormalParameter Member:
- // documentation+=DOCUMENTATION_COMMENT?
- // annotation+=StereotypeAnnotation*
- // definition=FormalParameterDefinition
+ // FormalParameter Member:
+ // documentation+=DOCUMENTATION_COMMENT? annotation+=StereotypeAnnotation* definition=FormalParameterDefinition;
public AlfGrammarAccess.FormalParameterElements getFormalParameterAccess() {
return gaAlf.getFormalParameterAccess();
}
-
+
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
+ // FormalParameterDefinition NonReturnParameter:
+ // direction=ParameterDirection name=Name ':'
+ // // CHANGE: Made TypedElementDefinition a composite part of FormalParameter, rather than the supertype
+ //
+ // typePart=TypePart;
public AlfGrammarAccess.FormalParameterDefinitionElements getFormalParameterDefinitionAccess() {
return gaAlf.getFormalParameterDefinitionAccess();
}
-
+
public ParserRule getFormalParameterDefinitionRule() {
return getFormalParameterDefinitionAccess().getRule();
}
- //ReturnParameter Member:
- // definition=ReturnParameterDefinition
+ // ReturnParameter Member:
+ // definition=ReturnParameterDefinition;
public AlfGrammarAccess.ReturnParameterElements getReturnParameterAccess() {
return gaAlf.getReturnParameterAccess();
}
-
+
public ParserRule getReturnParameterRule() {
return getReturnParameterAccess().getRule();
}
- //ReturnParameterDefinition ReturnParameter: // CHANGE: Added the NonReturnParameter subtype of FormalParameter to accomodate Xtext serialization.
- // ':' typePart=TypePart
+ // ReturnParameterDefinition ReturnParameter:
+ //// CHANGE: Added the NonReturnParameter subtype of FormalParameter to accomodate Xtext serialization.
+ // ':'
+ // typePart=TypePart // CHANGE: Made return the default for direction
+ // ;
public AlfGrammarAccess.ReturnParameterDefinitionElements getReturnParameterDefinitionAccess() {
return gaAlf.getReturnParameterDefinitionAccess();
}
-
+
public ParserRule getReturnParameterDefinitionRule() {
return getReturnParameterDefinitionAccess().getRule();
}
- //ParameterDirection:
- // 'in' | 'out' | 'inout';
+ // ParameterDirection:
+ // 'in' | 'out' | 'inout';
public AlfGrammarAccess.ParameterDirectionElements getParameterDirectionAccess() {
return gaAlf.getParameterDirectionAccess();
}
-
+
public ParserRule getParameterDirectionRule() {
return getParameterDirectionAccess().getRule();
}
- /// * FEATURES * / FeatureDefinitionOrStub MemberDefinition:
- // AttributeDefinition | OperationDefinitionOrStub
+ /// * FEATURES */ FeatureDefinitionOrStub MemberDefinition:
+ // AttributeDefinition | OperationDefinitionOrStub;
public AlfGrammarAccess.FeatureDefinitionOrStubElements getFeatureDefinitionOrStubAccess() {
return gaAlf.getFeatureDefinitionOrStubAccess();
}
-
+
public ParserRule getFeatureDefinitionOrStubRule() {
return getFeatureDefinitionOrStubAccess().getRule();
}
- //ActiveFeatureDefinitionOrStub MemberDefinition:
- // ReceptionDefinition | SignalReceptionDefinitionOrStub
+ // ActiveFeatureDefinitionOrStub MemberDefinition:
+ // ReceptionDefinition | SignalReceptionDefinitionOrStub;
public AlfGrammarAccess.ActiveFeatureDefinitionOrStubElements getActiveFeatureDefinitionOrStubAccess() {
return gaAlf.getActiveFeatureDefinitionOrStubAccess();
}
-
+
public ParserRule getActiveFeatureDefinitionOrStubRule() {
return getActiveFeatureDefinitionOrStubAccess().getRule();
}
- /// * PROPERTIES * / PropertyDefinition:
- // PropertyDeclaration ';';
+ /// * PROPERTIES */ PropertyDefinition:
+ // PropertyDeclaration ';';
public AlfGrammarAccess.PropertyDefinitionElements getPropertyDefinitionAccess() {
return gaAlf.getPropertyDefinitionAccess();
}
-
+
public ParserRule getPropertyDefinitionRule() {
return getPropertyDefinitionAccess().getRule();
}
- //AttributeDefinition PropertyDefinition:
- // PropertyDeclaration initializer=AttributeInitializer? ';'
+ // AttributeDefinition PropertyDefinition:
+ // PropertyDeclaration initializer=AttributeInitializer? ';';
public AlfGrammarAccess.AttributeDefinitionElements getAttributeDefinitionAccess() {
return gaAlf.getAttributeDefinitionAccess();
}
-
+
public ParserRule getAttributeDefinitionRule() {
return getAttributeDefinitionAccess().getRule();
}
- //AttributeInitializer Expression:
- // '=' InitializationExpression
+ // AttributeInitializer Expression:
+ // '=' InitializationExpression;
public AlfGrammarAccess.AttributeInitializerElements getAttributeInitializerAccess() {
return gaAlf.getAttributeInitializerAccess();
}
-
+
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
+ // PropertyDeclaration PropertyDefinition:
+ // name=Name ':' isComposite?='compose'?
+ // // CHANGE: Made TypedElementDefinition a composite part of PropertyDefinition instead of the supertype
+ //
+ // typePart=TypePart;
public AlfGrammarAccess.PropertyDeclarationElements getPropertyDeclarationAccess() {
return gaAlf.getPropertyDeclarationAccess();
}
-
+
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')?)?
+ // TypePart TypedElementDefinition:
+ // (isAny?='any' | typeName=QualifiedName) (('[' (isMultiplicity?=']' | (lowerBound=NATURAL_VALUE '..')?
+ // upperBound=UnlimitedNaturalLiteral ']'))? (isOrdered?='ordered' isNonunique?='nonunique'? | isNonunique?='nonunique'
+ // isOrdered?='ordered'? | isSequence?='sequence')?)?;
public AlfGrammarAccess.TypePartElements getTypePartAccess() {
return gaAlf.getTypePartAccess();
}
-
+
public ParserRule getTypePartRule() {
return getTypePartAccess().getRule();
}
/// *
- //TypeName returns QualifiedName :
- // 'any' | QualifiedName
- //;
- // * / UnlimitedNaturalLiteral:
- // NATURAL_VALUE | '*';
+ // TypeName returns QualifiedName :
+ // 'any' | QualifiedName
+ // ;
+ // */ UnlimitedNaturalLiteral:
+ // NATURAL_VALUE | '*';
public AlfGrammarAccess.UnlimitedNaturalLiteralElements getUnlimitedNaturalLiteralAccess() {
return gaAlf.getUnlimitedNaturalLiteralAccess();
}
-
+
public ParserRule getUnlimitedNaturalLiteralRule() {
return getUnlimitedNaturalLiteralAccess().getRule();
}
- /// * OPERATIONS * / OperationDeclaration OperationDefinition:
- // isAbstract?='abstract'? name=Name
- // '(' (ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)? ')'
- // ownedMember+=ReturnParameter?
- // redefinition=RedefinitionClause?
+ /// * OPERATIONS */ OperationDeclaration OperationDefinition:
+ // isAbstract?='abstract'? name=Name '(' (ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)? ')'
+ // ownedMember+=ReturnParameter? redefinition=RedefinitionClause?;
public AlfGrammarAccess.OperationDeclarationElements getOperationDeclarationAccess() {
return gaAlf.getOperationDeclarationAccess();
}
-
+
public ParserRule getOperationDeclarationRule() {
return getOperationDeclarationAccess().getRule();
}
- //OperationDefinitionOrStub OperationDefinition:
- // OperationDeclaration (isStub?=';' | body=Block)
+ // OperationDefinitionOrStub OperationDefinition:
+ // OperationDeclaration (isStub?=';' | body=Block);
public AlfGrammarAccess.OperationDefinitionOrStubElements getOperationDefinitionOrStubAccess() {
return gaAlf.getOperationDefinitionOrStubAccess();
}
-
+
public ParserRule getOperationDefinitionOrStubRule() {
return getOperationDefinitionOrStubAccess().getRule();
}
- //RedefinitionClause QualifiedNameList:
- // 'redefines' QualifiedNameList
+ // RedefinitionClause QualifiedNameList:
+ // 'redefines' QualifiedNameList;
public AlfGrammarAccess.RedefinitionClauseElements getRedefinitionClauseAccess() {
return gaAlf.getRedefinitionClauseAccess();
}
-
+
public ParserRule getRedefinitionClauseRule() {
return getRedefinitionClauseAccess().getRule();
}
- /// * RECEPTIONS * / ReceptionDefinition:
- // 'receive' signalName=QualifiedName ';'
- // // TODO: name = signal.nameBinding->last().name
- //;
+ /// * RECEPTIONS */ ReceptionDefinition:
+ // 'receive' signalName=QualifiedName ';' // TODO: name = signal.nameBinding->last().name
+ // ;
public AlfGrammarAccess.ReceptionDefinitionElements getReceptionDefinitionAccess() {
return gaAlf.getReceptionDefinitionAccess();
}
-
+
public ParserRule getReceptionDefinitionRule() {
return getReceptionDefinitionAccess().getRule();
}
- //SignalReceptionDeclaration SignalReceptionDefinition:
- // 'receive' 'signal' name=Name specialization=SpecializationClause?
+ // SignalReceptionDeclaration SignalReceptionDefinition:
+ // 'receive' 'signal' name=Name specialization=SpecializationClause?;
public AlfGrammarAccess.SignalReceptionDeclarationElements getSignalReceptionDeclarationAccess() {
return gaAlf.getSignalReceptionDeclarationAccess();
}
-
+
public ParserRule getSignalReceptionDeclarationRule() {
return getSignalReceptionDeclarationAccess().getRule();
}
- //SignalReceptionDefinitionOrStub SignalReceptionDefinition:
- // SignalReceptionDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ // SignalReceptionDefinitionOrStub SignalReceptionDefinition:
+ // SignalReceptionDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}');
public AlfGrammarAccess.SignalReceptionDefinitionOrStubElements getSignalReceptionDefinitionOrStubAccess() {
return gaAlf.getSignalReceptionDefinitionOrStubAccess();
}
-
+
public ParserRule getSignalReceptionDefinitionOrStubRule() {
return getSignalReceptionDefinitionOrStubAccess().getRule();
}
/// ***************
- // * NAMES *
- // *************** / Name:
- // ID | UNRESTRICTED_NAME;
+ // * NAMES *
+ // ***************/ Name:
+ // ID | UNRESTRICTED_NAME;
public AlfGrammarAccess.NameElements getNameAccess() {
return gaAlf.getNameAccess();
}
-
+
public ParserRule getNameRule() {
return getNameAccess().getRule();
}
- //QualifiedName:
- // UnqualifiedName (('::' nameBinding+=NameBinding)+ | ('.' nameBinding+=NameBinding)+)?;
+ // QualifiedName:
+ // UnqualifiedName (('::' nameBinding+=NameBinding)+ | ('.' nameBinding+=NameBinding)+)?;
public AlfGrammarAccess.QualifiedNameElements getQualifiedNameAccess() {
return gaAlf.getQualifiedNameAccess();
}
-
+
public ParserRule getQualifiedNameRule() {
return getQualifiedNameAccess().getRule();
}
- //PotentiallyAmbiguousQualifiedName QualifiedName:
- // UnqualifiedName (('::' nameBinding+=NameBinding)+ | isAmbiguous?='.' nameBinding+=NameBinding ('.'
- // nameBinding+=NameBinding)*)?
+ // PotentiallyAmbiguousQualifiedName QualifiedName:
+ // UnqualifiedName (('::' nameBinding+=NameBinding)+ | isAmbiguous?='.' nameBinding+=NameBinding ('.'
+ // nameBinding+=NameBinding)*)?;
public AlfGrammarAccess.PotentiallyAmbiguousQualifiedNameElements getPotentiallyAmbiguousQualifiedNameAccess() {
return gaAlf.getPotentiallyAmbiguousQualifiedNameAccess();
}
-
+
public ParserRule getPotentiallyAmbiguousQualifiedNameRule() {
return getPotentiallyAmbiguousQualifiedNameAccess().getRule();
}
- //ColonQualifiedName QualifiedName:
- // UnqualifiedName ('::' nameBinding+=NameBinding)+
+ // ColonQualifiedName QualifiedName:
+ // UnqualifiedName ('::' nameBinding+=NameBinding)+;
public AlfGrammarAccess.ColonQualifiedNameElements getColonQualifiedNameAccess() {
return gaAlf.getColonQualifiedNameAccess();
}
-
+
public ParserRule getColonQualifiedNameRule() {
return getColonQualifiedNameAccess().getRule();
}
- //DotQualifiedName QualifiedName:
- // UnqualifiedName ('.' nameBinding+=NameBinding)+
+ // DotQualifiedName QualifiedName:
+ // UnqualifiedName ('.' nameBinding+=NameBinding)+;
public AlfGrammarAccess.DotQualifiedNameElements getDotQualifiedNameAccess() {
return gaAlf.getDotQualifiedNameAccess();
}
-
+
public ParserRule getDotQualifiedNameRule() {
return getDotQualifiedNameAccess().getRule();
}
- //UnqualifiedName QualifiedName:
- // nameBinding+=NameBinding
+ // UnqualifiedName QualifiedName:
+ // nameBinding+=NameBinding;
public AlfGrammarAccess.UnqualifiedNameElements getUnqualifiedNameAccess() {
return gaAlf.getUnqualifiedNameAccess();
}
-
+
public ParserRule getUnqualifiedNameRule() {
return getUnqualifiedNameAccess().getRule();
}
- //NameBinding:
- // name=Name binding=TemplateBinding?;
+ // NameBinding:
+ // name=Name binding=TemplateBinding?;
public AlfGrammarAccess.NameBindingElements getNameBindingAccess() {
return gaAlf.getNameBindingAccess();
}
-
+
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) '>';
+ // QualifiedNameWithoutBinding :
+ // // unqualified = UnqualifiedName (nameCompletion = (ColonQualifiedNameCompletion | DotQualifiedNameCompletion))?
+ // unqualified = Name (nameCompletion = (ColonQualifiedNameCompletionWithoutBinding))?
+ // ;
+ // */
+ /// *
+ // ColonQualifiedNameCompletionWithoutBinding :
+ // ( '::' names+=Name)+
+ // ;
+ // */ /* Unbounded lookahead required here */
+ // TemplateBinding:
+ // '<' (NamedTemplateBinding | PositionalTemplateBinding) '>';
public AlfGrammarAccess.TemplateBindingElements getTemplateBindingAccess() {
return gaAlf.getTemplateBindingAccess();
}
-
+
public ParserRule getTemplateBindingRule() {
return getTemplateBindingAccess().getRule();
}
- //PositionalTemplateBinding:
- // argumentName+=QualifiedName (',' argumentName+=QualifiedName)*;
+ // PositionalTemplateBinding:
+ // argumentName+=QualifiedName (',' argumentName+=QualifiedName)*;
public AlfGrammarAccess.PositionalTemplateBindingElements getPositionalTemplateBindingAccess() {
return gaAlf.getPositionalTemplateBindingAccess();
}
-
+
public ParserRule getPositionalTemplateBindingRule() {
return getPositionalTemplateBindingAccess().getRule();
}
- //NamedTemplateBinding:
- // substitution+=TemplateParameterSubstitution (',' substitution+=TemplateParameterSubstitution)*;
+ // NamedTemplateBinding:
+ // substitution+=TemplateParameterSubstitution (',' substitution+=TemplateParameterSubstitution)*;
public AlfGrammarAccess.NamedTemplateBindingElements getNamedTemplateBindingAccess() {
return gaAlf.getNamedTemplateBindingAccess();
}
-
+
public ParserRule getNamedTemplateBindingRule() {
return getNamedTemplateBindingAccess().getRule();
}
- //TemplateParameterSubstitution:
- // parameterName=Name "=>" argumentName=QualifiedName;
+ // TemplateParameterSubstitution:
+ // parameterName=Name "=>" argumentName=QualifiedName;
public AlfGrammarAccess.TemplateParameterSubstitutionElements getTemplateParameterSubstitutionAccess() {
return gaAlf.getTemplateParameterSubstitutionAccess();
}
-
+
public ParserRule getTemplateParameterSubstitutionRule() {
return getTemplateParameterSubstitutionAccess().getRule();
}
/// ***************
// * EXPRESSIONS *
- // *************** / Expression:
- // AssignmentExpression | ConditionalExpression;
+ // ***************/ Expression:
+ // AssignmentExpression | ConditionalExpression;
public AlfGrammarAccess.ExpressionElements getExpressionAccess() {
return gaAlf.getExpressionAccess();
}
-
+
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)*
+ /// * 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 AlfGrammarAccess.PrimaryExpressionElements getPrimaryExpressionAccess() {
return gaAlf.getPrimaryExpressionAccess();
}
-
+
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
+ //// 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 AlfGrammarAccess.BaseExpressionElements getBaseExpressionAccess() {
return gaAlf.getBaseExpressionAccess();
}
-
+
public ParserRule getBaseExpressionRule() {
return getBaseExpressionAccess().getRule();
}
- /// * LITERAL EXPRESSIONS * / LiteralExpression:
- // BooleanLiteralExpression | NaturalLiteralExpression | UnboundedLiteralExpression | StringLiteralExpression;
+ /// * LITERAL EXPRESSIONS */ LiteralExpression:
+ // BooleanLiteralExpression | NaturalLiteralExpression | UnboundedLiteralExpression | StringLiteralExpression;
public AlfGrammarAccess.LiteralExpressionElements getLiteralExpressionAccess() {
return gaAlf.getLiteralExpressionAccess();
}
-
+
public ParserRule getLiteralExpressionRule() {
return getLiteralExpressionAccess().getRule();
}
- //BooleanLiteralExpression:
- // image=BOOLEAN_VALUE;
+ // BooleanLiteralExpression:
+ // image=BOOLEAN_VALUE;
public AlfGrammarAccess.BooleanLiteralExpressionElements getBooleanLiteralExpressionAccess() {
return gaAlf.getBooleanLiteralExpressionAccess();
}
-
+
public ParserRule getBooleanLiteralExpressionRule() {
return getBooleanLiteralExpressionAccess().getRule();
}
- //NaturalLiteralExpression:
- // image=NATURAL_VALUE;
+ // NaturalLiteralExpression:
+ // image=NATURAL_VALUE;
public AlfGrammarAccess.NaturalLiteralExpressionElements getNaturalLiteralExpressionAccess() {
return gaAlf.getNaturalLiteralExpressionAccess();
}
-
+
public ParserRule getNaturalLiteralExpressionRule() {
return getNaturalLiteralExpressionAccess().getRule();
}
- //UnboundedLiteralExpression:
- // {UnboundedLiteralExpression} '*';
+ // UnboundedLiteralExpression:
+ // {UnboundedLiteralExpression} '*';
public AlfGrammarAccess.UnboundedLiteralExpressionElements getUnboundedLiteralExpressionAccess() {
return gaAlf.getUnboundedLiteralExpressionAccess();
}
-
+
public ParserRule getUnboundedLiteralExpressionRule() {
return getUnboundedLiteralExpressionAccess().getRule();
}
- //StringLiteralExpression:
- // image=STRING;
+ // StringLiteralExpression:
+ // image=STRING;
public AlfGrammarAccess.StringLiteralExpressionElements getStringLiteralExpressionAccess() {
return gaAlf.getStringLiteralExpressionAccess();
}
-
+
public ParserRule getStringLiteralExpressionRule() {
return getStringLiteralExpressionAccess().getRule();
}
- /// * Name EXPRESSIONS * / NameExpression:
- // name=PotentiallyAmbiguousQualifiedName;
+ /// * Name EXPRESSIONS */ NameExpression:
+ // name=PotentiallyAmbiguousQualifiedName;
public AlfGrammarAccess.NameExpressionElements getNameExpressionAccess() {
return gaAlf.getNameExpressionAccess();
}
-
+
public ParserRule getNameExpressionRule() {
return getNameExpressionAccess().getRule();
}
- /// * THIS EXPRESSIONS * / ThisExpression Expression:
- // {FeatureInvocationExpression} 'this' tuple=Tuple | {ThisExpression} 'this'
+ /// * THIS EXPRESSIONS */ ThisExpression Expression:
+ // {FeatureInvocationExpression} 'this' tuple=Tuple | {ThisExpression} 'this';
public AlfGrammarAccess.ThisExpressionElements getThisExpressionAccess() {
return gaAlf.getThisExpressionAccess();
}
-
+
public ParserRule getThisExpressionRule() {
return getThisExpressionAccess().getRule();
}
- /// * PARENTHESIZED EXPRESSIONS * / ParenthesizedExpression Expression:
- // '(' Expression ')'
+ /// * PARENTHESIZED EXPRESSIONS */ ParenthesizedExpression Expression:
+ // '(' Expression ')';
public AlfGrammarAccess.ParenthesizedExpressionElements getParenthesizedExpressionAccess() {
return gaAlf.getParenthesizedExpressionAccess();
}
-
+
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;
+ /// * 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 AlfGrammarAccess.BehaviorInvocationExpressionElements getBehaviorInvocationExpressionAccess() {
return gaAlf.getBehaviorInvocationExpressionAccess();
}
-
+
public ParserRule getBehaviorInvocationExpressionRule() {
return getBehaviorInvocationExpressionAccess().getRule();
}
- //Tuple:
- /// * {Tuple}'(' ( namedTupleExpressionList = NamedTupleExpressionList | ( positionalTupleExpressionList = PositionalTupleExpressionList )? ) ')' * /
- // '(' (NamedTupleExpressionList | PositionalTupleExpressionList) ')';
+ // Tuple:
+ /// * {Tuple}'(' ( namedTupleExpressionList = NamedTupleExpressionList | ( positionalTupleExpressionList = PositionalTupleExpressionList )? ) ')' */
+ // '(' (NamedTupleExpressionList | PositionalTupleExpressionList) ')';
public AlfGrammarAccess.TupleElements getTupleAccess() {
return gaAlf.getTupleAccess();
}
-
+
public ParserRule getTupleRule() {
return getTupleAccess().getRule();
}
- //PositionalTupleExpressionList PositionalTuple:
- // {PositionalTuple} (expression+=Expression (',' expression+=Expression)*)?
+ // PositionalTupleExpressionList PositionalTuple:
+ // {PositionalTuple} (expression+=Expression (',' expression+=Expression)*)?;
public AlfGrammarAccess.PositionalTupleExpressionListElements getPositionalTupleExpressionListAccess() {
return gaAlf.getPositionalTupleExpressionListAccess();
}
-
+
public ParserRule getPositionalTupleExpressionListRule() {
return getPositionalTupleExpressionListAccess().getRule();
}
- //NamedTupleExpressionList NamedTuple:
- // namedExpression+=NamedExpression (',' namedExpression+=NamedExpression)*
+ // NamedTupleExpressionList NamedTuple:
+ // namedExpression+=NamedExpression (',' namedExpression+=NamedExpression)*;
public AlfGrammarAccess.NamedTupleExpressionListElements getNamedTupleExpressionListAccess() {
return gaAlf.getNamedTupleExpressionListAccess();
}
-
+
public ParserRule getNamedTupleExpressionListRule() {
return getNamedTupleExpressionListAccess().getRule();
}
- //NamedExpression:
- // name=Name '=>' expression=Expression;
+ // NamedExpression:
+ // name=Name '=>' expression=Expression;
public AlfGrammarAccess.NamedExpressionElements getNamedExpressionAccess() {
return gaAlf.getNamedExpressionAccess();
}
-
+
public ParserRule getNamedExpressionRule() {
return getNamedExpressionAccess().getRule();
}
- //SuperInvocationExpression:
- // 'super' ('.' target=QualifiedName)? tuple=Tuple;
+ // SuperInvocationExpression:
+ // 'super' ('.' target=QualifiedName)? tuple=Tuple;
public AlfGrammarAccess.SuperInvocationExpressionElements getSuperInvocationExpressionAccess() {
return gaAlf.getSuperInvocationExpressionAccess();
}
-
+
public ParserRule getSuperInvocationExpressionRule() {
return getSuperInvocationExpressionAccess().getRule();
}
- /// * INSTANCE CREATION EXPRESSIONS * / InstanceCreationOrSequenceConstructionExpression Expression:
- // 'new' ({SequenceConstructionExpression} typeName=QualifiedName hasMultiplicity?=MultiplicityIndicator? '{'
- // elements=SequenceElements? '}' | {InstanceCreationExpression} constructor=QualifiedName tuple=Tuple)
+ /// * INSTANCE CREATION EXPRESSIONS */ InstanceCreationOrSequenceConstructionExpression Expression:
+ // 'new' ({SequenceConstructionExpression} typeName=QualifiedName hasMultiplicity?=MultiplicityIndicator? '{'
+ // elements=SequenceElements? '}' | {InstanceCreationExpression} constructor=QualifiedName tuple=Tuple);
public AlfGrammarAccess.InstanceCreationOrSequenceConstructionExpressionElements getInstanceCreationOrSequenceConstructionExpressionAccess() {
return gaAlf.getInstanceCreationOrSequenceConstructionExpressionAccess();
}
-
+
public ParserRule getInstanceCreationOrSequenceConstructionExpressionRule() {
return getInstanceCreationOrSequenceConstructionExpressionAccess().getRule();
}
- /// * LINK OPERATION EXPRESSIONS * / LinkOperationExpression:
- // associationName=PotentiallyAmbiguousQualifiedName '.' operation=LinkOperation tuple=LinkOperationTuple;
+ /// * LINK OPERATION EXPRESSIONS */ LinkOperationExpression:
+ // associationName=PotentiallyAmbiguousQualifiedName '.' operation=LinkOperation tuple=LinkOperationTuple;
public AlfGrammarAccess.LinkOperationExpressionElements getLinkOperationExpressionAccess() {
return gaAlf.getLinkOperationExpressionAccess();
}
-
+
public ParserRule getLinkOperationExpressionRule() {
return getLinkOperationExpressionAccess().getRule();
}
- //LinkOperation:
- // 'createLink' | 'destroyLink' | 'clearAssoc';
+ // LinkOperation:
+ // 'createLink' | 'destroyLink' | 'clearAssoc';
public AlfGrammarAccess.LinkOperationElements getLinkOperationAccess() {
return gaAlf.getLinkOperationAccess();
}
-
+
public ParserRule getLinkOperationRule() {
return getLinkOperationAccess().getRule();
}
- //LinkOperationTuple Tuple:
- // '(' (IndexedNamedTupleExpressionList | PositionalTupleExpressionList) ')'
+ // LinkOperationTuple Tuple:
+ // '(' (IndexedNamedTupleExpressionList | PositionalTupleExpressionList) ')';
public AlfGrammarAccess.LinkOperationTupleElements getLinkOperationTupleAccess() {
return gaAlf.getLinkOperationTupleAccess();
}
-
+
public ParserRule getLinkOperationTupleRule() {
return getLinkOperationTupleAccess().getRule();
}
- //IndexedNamedTupleExpressionList NamedTuple:
- // namedExpression+=IndexedNamedExpression (',' namedExpression+=IndexedNamedExpression)*
+ // IndexedNamedTupleExpressionList NamedTuple:
+ // namedExpression+=IndexedNamedExpression (',' namedExpression+=IndexedNamedExpression)*;
public AlfGrammarAccess.IndexedNamedTupleExpressionListElements getIndexedNamedTupleExpressionListAccess() {
return gaAlf.getIndexedNamedTupleExpressionListAccess();
}
-
+
public ParserRule getIndexedNamedTupleExpressionListRule() {
return getIndexedNamedTupleExpressionListAccess().getRule();
}
- //IndexedNamedExpression NamedExpression:
- // name=Name index=Index? '=>' expression=Expression
+ // IndexedNamedExpression NamedExpression:
+ // name=Name index=Index? '=>' expression=Expression;
public AlfGrammarAccess.IndexedNamedExpressionElements getIndexedNamedExpressionAccess() {
return gaAlf.getIndexedNamedExpressionAccess();
}
-
+
public ParserRule getIndexedNamedExpressionRule() {
return getIndexedNamedExpressionAccess().getRule();
}
- /// * CLASS EXTENT EXPRESSIONS * / ClassExtentExpression:
- // className=PotentiallyAmbiguousQualifiedName '.' 'allInstances' '(' ')';
+ /// * CLASS EXTENT EXPRESSIONS */ ClassExtentExpression:
+ // className=PotentiallyAmbiguousQualifiedName '.' 'allInstances' '(' ')';
public AlfGrammarAccess.ClassExtentExpressionElements getClassExtentExpressionAccess() {
return gaAlf.getClassExtentExpressionAccess();
}
-
+
public ParserRule getClassExtentExpressionRule() {
return getClassExtentExpressionAccess().getRule();
}
- /// * SEQUENCE CONSTRUCTION EXPRESSIONS * / SequenceConstructionExpression:
- // (isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? '{' elements=SequenceElements? '}' |
- // hasMultiplicity?='null';
+ /// * SEQUENCE CONSTRUCTION EXPRESSIONS */ SequenceConstructionExpression:
+ // (isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? '{' elements=SequenceElements? '}' |
+ // hasMultiplicity?='null';
public AlfGrammarAccess.SequenceConstructionExpressionElements getSequenceConstructionExpressionAccess() {
return gaAlf.getSequenceConstructionExpressionAccess();
}
-
+
public ParserRule getSequenceConstructionExpressionRule() {
return getSequenceConstructionExpressionAccess().getRule();
}
- //MultiplicityIndicator:
- // '[' ']';
+ // MultiplicityIndicator:
+ // '[' ']';
public AlfGrammarAccess.MultiplicityIndicatorElements getMultiplicityIndicatorAccess() {
return gaAlf.getMultiplicityIndicatorAccess();
}
-
+
public ParserRule getMultiplicityIndicatorRule() {
return getMultiplicityIndicatorAccess().getRule();
}
- //SequenceElements:
- // SequenceRange | SequenceExpressionList;
+ // SequenceElements:
+ // SequenceRange | SequenceExpressionList;
public AlfGrammarAccess.SequenceElementsElements getSequenceElementsAccess() {
return gaAlf.getSequenceElementsAccess();
}
-
+
public ParserRule getSequenceElementsRule() {
return getSequenceElementsAccess().getRule();
}
- //SequenceRange:
- // rangeLower=Expression '..' rangeUpper=Expression;
+ // SequenceRange:
+ // rangeLower=Expression '..' rangeUpper=Expression;
public AlfGrammarAccess.SequenceRangeElements getSequenceRangeAccess() {
return gaAlf.getSequenceRangeAccess();
}
-
+
public ParserRule getSequenceRangeRule() {
return getSequenceRangeAccess().getRule();
}
- //SequenceExpressionList:
- // element+=SequenceElement (',' element+=SequenceElement)* ','?;
+ // SequenceExpressionList:
+ // element+=SequenceElement (',' element+=SequenceElement)* ','?;
public AlfGrammarAccess.SequenceExpressionListElements getSequenceExpressionListAccess() {
return gaAlf.getSequenceExpressionListAccess();
}
-
+
public ParserRule getSequenceExpressionListRule() {
return getSequenceExpressionListAccess().getRule();
}
- //SequenceElement Expression:
- // Expression | SequenceInitializationExpression
+ // SequenceElement Expression:
+ // Expression | SequenceInitializationExpression;
public AlfGrammarAccess.SequenceElementElements getSequenceElementAccess() {
return gaAlf.getSequenceElementAccess();
}
-
+
public ParserRule getSequenceElementRule() {
return getSequenceElementAccess().getRule();
}
- //SequenceInitializationExpression SequenceConstructionExpression:
- // 'new'? '{' elements=SequenceElements '}'
+ // SequenceInitializationExpression SequenceConstructionExpression:
+ // 'new'? '{' elements=SequenceElements '}';
public AlfGrammarAccess.SequenceInitializationExpressionElements getSequenceInitializationExpressionAccess() {
return gaAlf.getSequenceInitializationExpressionAccess();
}
-
+
public ParserRule getSequenceInitializationExpressionRule() {
return getSequenceInitializationExpressionAccess().getRule();
}
- /// * SEQUENCE ACCESS EXPRESSIONS * / Index Expression:
- // '[' Expression ']'
+ /// * SEQUENCE ACCESS EXPRESSIONS */ Index Expression:
+ // '[' Expression ']';
public AlfGrammarAccess.IndexElements getIndexAccess() {
return gaAlf.getIndexAccess();
}
-
+
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 ')')
+ /// * 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 AlfGrammarAccess.SequenceOperationOrReductionOrExpansionExpressionElements getSequenceOperationOrReductionOrExpansionExpressionAccess() {
return gaAlf.getSequenceOperationOrReductionOrExpansionExpressionAccess();
}
-
+
public ParserRule getSequenceOperationOrReductionOrExpansionExpressionRule() {
return getSequenceOperationOrReductionOrExpansionExpressionAccess().getRule();
}
- /// * INCREMENT OR DECREMENT EXPRESSIONS * / PrefixExpression IncrementOrDecrementExpression:
- // operator=AffixOperator operand=LeftHandSide
+ /// * INCREMENT OR DECREMENT EXPRESSIONS */ PrefixExpression IncrementOrDecrementExpression:
+ // operator=AffixOperator operand=LeftHandSide // isPrefix ?= ''
+ // ;
public AlfGrammarAccess.PrefixExpressionElements getPrefixExpressionAccess() {
return gaAlf.getPrefixExpressionAccess();
}
-
+
public ParserRule getPrefixExpressionRule() {
return getPrefixExpressionAccess().getRule();
}
- //AffixOperator:
- // '++' | '--';
+ // AffixOperator:
+ // '++' | '--';
public AlfGrammarAccess.AffixOperatorElements getAffixOperatorAccess() {
return gaAlf.getAffixOperatorAccess();
}
-
+
public ParserRule getAffixOperatorRule() {
return getAffixOperatorAccess().getRule();
}
- /// * UNARY EXPRESSIONS * / UnaryExpression Expression:
- // PostfixOrCastExpression | NonPostfixNonCastUnaryExpression
+ /// * UNARY EXPRESSIONS */ UnaryExpression Expression:
+ // PostfixOrCastExpression | NonPostfixNonCastUnaryExpression;
public AlfGrammarAccess.UnaryExpressionElements getUnaryExpressionAccess() {
return gaAlf.getUnaryExpressionAccess();
}
-
+
public ParserRule getUnaryExpressionRule() {
return getUnaryExpressionAccess().getRule();
}
- //PostfixOrCastExpression Expression:
- // PostfixExpression | CastExpression | PrimaryExpression
+ // PostfixOrCastExpression Expression:
+ // PostfixExpression | CastExpression | PrimaryExpression;
public AlfGrammarAccess.PostfixOrCastExpressionElements getPostfixOrCastExpressionAccess() {
return gaAlf.getPostfixOrCastExpressionAccess();
}
-
+
public ParserRule getPostfixOrCastExpressionRule() {
return getPostfixOrCastExpressionAccess().getRule();
}
- //PostfixExpression IncrementOrDecrementExpression:
- // operand=LeftHandSide operator=AffixOperator
+ // PostfixExpression IncrementOrDecrementExpression:
+ // operand=LeftHandSide operator=AffixOperator;
public AlfGrammarAccess.PostfixExpressionElements getPostfixExpressionAccess() {
return gaAlf.getPostfixExpressionAccess();
}
-
+
public ParserRule getPostfixExpressionRule() {
return getPostfixExpressionAccess().getRule();
}
- //NonPostfixNonCastUnaryExpression Expression:
- // PrefixExpression | NumericUnaryExpression | BooleanUnaryExpression | BitStringUnaryExpression | IsolationExpression
+ // NonPostfixNonCastUnaryExpression Expression:
+ // PrefixExpression | NumericUnaryExpression | BooleanUnaryExpression | BitStringUnaryExpression | IsolationExpression;
public AlfGrammarAccess.NonPostfixNonCastUnaryExpressionElements getNonPostfixNonCastUnaryExpressionAccess() {
return gaAlf.getNonPostfixNonCastUnaryExpressionAccess();
}
-
+
public ParserRule getNonPostfixNonCastUnaryExpressionRule() {
return getNonPostfixNonCastUnaryExpressionAccess().getRule();
}
- //BooleanUnaryExpression:
- // operator='!' operand=UnaryExpression;
+ // BooleanUnaryExpression:
+ // operator='!' operand=UnaryExpression;
public AlfGrammarAccess.BooleanUnaryExpressionElements getBooleanUnaryExpressionAccess() {
return gaAlf.getBooleanUnaryExpressionAccess();
}
-
+
public ParserRule getBooleanUnaryExpressionRule() {
return getBooleanUnaryExpressionAccess().getRule();
}
- //BitStringUnaryExpression:
- // operator='~' operand=UnaryExpression;
+ // BitStringUnaryExpression:
+ // operator='~' operand=UnaryExpression;
public AlfGrammarAccess.BitStringUnaryExpressionElements getBitStringUnaryExpressionAccess() {
return gaAlf.getBitStringUnaryExpressionAccess();
}
-
+
public ParserRule getBitStringUnaryExpressionRule() {
return getBitStringUnaryExpressionAccess().getRule();
}
- //NumericUnaryExpression:
- // operator=NumericUnaryOperator operand=UnaryExpression;
+ // NumericUnaryExpression:
+ // operator=NumericUnaryOperator operand=UnaryExpression;
public AlfGrammarAccess.NumericUnaryExpressionElements getNumericUnaryExpressionAccess() {
return gaAlf.getNumericUnaryExpressionAccess();
}
-
+
public ParserRule getNumericUnaryExpressionRule() {
return getNumericUnaryExpressionAccess().getRule();
}
- //NumericUnaryOperator:
- // '+' | '-';
+ // NumericUnaryOperator:
+ // '+' | '-';
public AlfGrammarAccess.NumericUnaryOperatorElements getNumericUnaryOperatorAccess() {
return gaAlf.getNumericUnaryOperatorAccess();
}
-
+
public ParserRule getNumericUnaryOperatorRule() {
return getNumericUnaryOperatorAccess().getRule();
}
- //IsolationExpression:
- // operator='$' operand=UnaryExpression;
+ // IsolationExpression:
+ // operator='$' operand=UnaryExpression;
public AlfGrammarAccess.IsolationExpressionElements getIsolationExpressionAccess() {
return gaAlf.getIsolationExpressionAccess();
}
-
+
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;
+ // CastExpression: // CHANGE: Added isAny attribute to CastExpression in order to allow Xtext serialization.
+ // '('
+ // (isAny?='any' | typeName=QualifiedName) ')' operand=CastCompletion;
public AlfGrammarAccess.CastExpressionElements getCastExpressionAccess() {
return gaAlf.getCastExpressionAccess();
}
-
+
public ParserRule getCastExpressionRule() {
return getCastExpressionAccess().getRule();
}
- //CastCompletion Expression:
- // PostfixOrCastExpression | BooleanUnaryExpression | BitStringUnaryExpression | IsolationExpression
+ // CastCompletion Expression:
+ // PostfixOrCastExpression | BooleanUnaryExpression | BitStringUnaryExpression | IsolationExpression;
public AlfGrammarAccess.CastCompletionElements getCastCompletionAccess() {
return gaAlf.getCastCompletionAccess();
}
-
+
public ParserRule getCastCompletionRule() {
return getCastCompletionAccess().getRule();
}
- /// * ARITHMETIC EXPRESSIONS * / MultiplicativeExpression Expression:
- // UnaryExpression ({ArithmeticExpression.operand1=current} operator=MultiplicativeOperator operand2=UnaryExpression)*
+ /// * ARITHMETIC EXPRESSIONS */ MultiplicativeExpression Expression:
+ // UnaryExpression ({ArithmeticExpression.operand1=current} operator=MultiplicativeOperator operand2=UnaryExpression)*;
public AlfGrammarAccess.MultiplicativeExpressionElements getMultiplicativeExpressionAccess() {
return gaAlf.getMultiplicativeExpressionAccess();
}
-
+
public ParserRule getMultiplicativeExpressionRule() {
return getMultiplicativeExpressionAccess().getRule();
}
- //MultiplicativeOperator:
- // '*' | '/' | '%';
+ // MultiplicativeOperator:
+ // '*' | '/' | '%';
public AlfGrammarAccess.MultiplicativeOperatorElements getMultiplicativeOperatorAccess() {
return gaAlf.getMultiplicativeOperatorAccess();
}
-
+
public ParserRule getMultiplicativeOperatorRule() {
return getMultiplicativeOperatorAccess().getRule();
}
- //AdditiveExpression Expression:
- // MultiplicativeExpression ({ArithmeticExpression.operand1=current} operator=AdditiveOperator
- // operand2=MultiplicativeExpression)*
+ // AdditiveExpression Expression:
+ // MultiplicativeExpression ({ArithmeticExpression.operand1=current} operator=AdditiveOperator
+ // operand2=MultiplicativeExpression)*;
public AlfGrammarAccess.AdditiveExpressionElements getAdditiveExpressionAccess() {
return gaAlf.getAdditiveExpressionAccess();
}
-
+
public ParserRule getAdditiveExpressionRule() {
return getAdditiveExpressionAccess().getRule();
}
- //AdditiveOperator:
- // '+' | '-';
+ // AdditiveOperator:
+ // '+' | '-';
public AlfGrammarAccess.AdditiveOperatorElements getAdditiveOperatorAccess() {
return gaAlf.getAdditiveOperatorAccess();
}
-
+
public ParserRule getAdditiveOperatorRule() {
return getAdditiveOperatorAccess().getRule();
}
- /// * SHIFT EXPRESSIONS * / ShiftExpression Expression:
- // AdditiveExpression ({ShiftExpression.operand1=current} operator=ShiftOperator operand2=AdditiveExpression)*
+ /// * SHIFT EXPRESSIONS */ ShiftExpression Expression:
+ // AdditiveExpression ({ShiftExpression.operand1=current} operator=ShiftOperator operand2=AdditiveExpression)*;
public AlfGrammarAccess.ShiftExpressionElements getShiftExpressionAccess() {
return gaAlf.getShiftExpressionAccess();
}
-
+
public ParserRule getShiftExpressionRule() {
return getShiftExpressionAccess().getRule();
}
- //ShiftOperator:
- // '<<' | '>>' | '>>>';
+ // ShiftOperator:
+ // '<<' | '>>' | '>>>';
public AlfGrammarAccess.ShiftOperatorElements getShiftOperatorAccess() {
return gaAlf.getShiftOperatorAccess();
}
-
+
public ParserRule getShiftOperatorRule() {
return getShiftOperatorAccess().getRule();
}
- /// * RELATIONAL EXPRESSIONS * / RelationalExpression Expression:
- // ShiftExpression ({RelationalExpression.operand1=current} operator=RelationalOperator operand2=ShiftExpression)?
+ /// * RELATIONAL EXPRESSIONS */ RelationalExpression Expression:
+ // ShiftExpression ({RelationalExpression.operand1=current} operator=RelationalOperator operand2=ShiftExpression)?;
public AlfGrammarAccess.RelationalExpressionElements getRelationalExpressionAccess() {
return gaAlf.getRelationalExpressionAccess();
}
-
+
public ParserRule getRelationalExpressionRule() {
return getRelationalExpressionAccess().getRule();
}
- //RelationalOperator:
- // '<' | '>' | '<=' | '>=';
+ // RelationalOperator:
+ // '<' | '>' | '<=' | '>=';
public AlfGrammarAccess.RelationalOperatorElements getRelationalOperatorAccess() {
return gaAlf.getRelationalOperatorAccess();
}
-
+
public ParserRule getRelationalOperatorRule() {
return getRelationalOperatorAccess().getRule();
}
- /// * CLASSIFICATION EXPRESSIONS * / ClassificationExpression Expression:
- // RelationalExpression ({ClassificationExpression.operand=current} operator=ClassificationOperator
- // typeName=QualifiedName)?
+ /// * CLASSIFICATION EXPRESSIONS */ ClassificationExpression Expression:
+ // RelationalExpression ({ClassificationExpression.operand=current} operator=ClassificationOperator
+ // typeName=QualifiedName)?;
public AlfGrammarAccess.ClassificationExpressionElements getClassificationExpressionAccess() {
return gaAlf.getClassificationExpressionAccess();
}
-
+
public ParserRule getClassificationExpressionRule() {
return getClassificationExpressionAccess().getRule();
}
- //ClassificationOperator:
- // 'instanceof' | 'hastype';
+ // ClassificationOperator:
+ // 'instanceof' | 'hastype';
public AlfGrammarAccess.ClassificationOperatorElements getClassificationOperatorAccess() {
return gaAlf.getClassificationOperatorAccess();
}
-
+
public ParserRule getClassificationOperatorRule() {
return getClassificationOperatorAccess().getRule();
}
- /// * EQUALITY EXPRESSIONS * / EqualityExpression Expression:
- // ClassificationExpression ({EqualityExpression.operand1=current} operator=EqualityOperator
- // operand2=ClassificationExpression)*
+ /// * EQUALITY EXPRESSIONS */ EqualityExpression Expression:
+ // ClassificationExpression ({EqualityExpression.operand1=current} operator=EqualityOperator
+ // operand2=ClassificationExpression)*;
public AlfGrammarAccess.EqualityExpressionElements getEqualityExpressionAccess() {
return gaAlf.getEqualityExpressionAccess();
}
-
+
public ParserRule getEqualityExpressionRule() {
return getEqualityExpressionAccess().getRule();
}
- //EqualityOperator:
- // '==' | '!=';
+ // EqualityOperator:
+ // '==' | '!=';
public AlfGrammarAccess.EqualityOperatorElements getEqualityOperatorAccess() {
return gaAlf.getEqualityOperatorAccess();
}
-
+
public ParserRule getEqualityOperatorRule() {
return getEqualityOperatorAccess().getRule();
}
- /// * LOGICAL EXPRESSIONS * / AndExpression Expression:
- // EqualityExpression ({LogicalExpression.operand1=current} operator='&' operand2=EqualityExpression)*
+ /// * LOGICAL EXPRESSIONS */ AndExpression Expression:
+ // EqualityExpression ({LogicalExpression.operand1=current} operator='&' operand2=EqualityExpression)*;
public AlfGrammarAccess.AndExpressionElements getAndExpressionAccess() {
return gaAlf.getAndExpressionAccess();
}
-
+
public ParserRule getAndExpressionRule() {
return getAndExpressionAccess().getRule();
}
- //ExclusiveOrExpression Expression:
- // AndExpression ({LogicalExpression.operand1=current} operator='^' operand2=AndExpression)*
+ // ExclusiveOrExpression Expression:
+ // AndExpression ({LogicalExpression.operand1=current} operator='^' operand2=AndExpression)*;
public AlfGrammarAccess.ExclusiveOrExpressionElements getExclusiveOrExpressionAccess() {
return gaAlf.getExclusiveOrExpressionAccess();
}
-
+
public ParserRule getExclusiveOrExpressionRule() {
return getExclusiveOrExpressionAccess().getRule();
}
- //InclusiveOrExpression Expression:
- // ExclusiveOrExpression ({LogicalExpression.operand1=current} operator='|' operand2=ExclusiveOrExpression)*
+ // InclusiveOrExpression Expression:
+ // ExclusiveOrExpression ({LogicalExpression.operand1=current} operator='|' operand2=ExclusiveOrExpression)*;
public AlfGrammarAccess.InclusiveOrExpressionElements getInclusiveOrExpressionAccess() {
return gaAlf.getInclusiveOrExpressionAccess();
}
-
+
public ParserRule getInclusiveOrExpressionRule() {
return getInclusiveOrExpressionAccess().getRule();
}
- /// * CONDITIONAL LOGICAL EXPRESSIONS * / ConditionalAndExpression Expression:
- // InclusiveOrExpression ({ConditionalLogicalExpression.operand1=current} operator='&&' operand2=InclusiveOrExpression)*
+ /// * CONDITIONAL LOGICAL EXPRESSIONS */ ConditionalAndExpression Expression:
+ // InclusiveOrExpression ({ConditionalLogicalExpression.operand1=current} operator='&&'
+ // operand2=InclusiveOrExpression)*;
public AlfGrammarAccess.ConditionalAndExpressionElements getConditionalAndExpressionAccess() {
return gaAlf.getConditionalAndExpressionAccess();
}
-
+
public ParserRule getConditionalAndExpressionRule() {
return getConditionalAndExpressionAccess().getRule();
}
- //ConditionalOrExpression Expression:
- // ConditionalAndExpression ({ConditionalLogicalExpression.operand1=current} operator='||'
- // operand2=ConditionalAndExpression)*
+ // ConditionalOrExpression Expression:
+ // ConditionalAndExpression ({ConditionalLogicalExpression.operand1=current} operator='||'
+ // operand2=ConditionalAndExpression)*;
public AlfGrammarAccess.ConditionalOrExpressionElements getConditionalOrExpressionAccess() {
return gaAlf.getConditionalOrExpressionAccess();
}
-
+
public ParserRule getConditionalOrExpressionRule() {
return getConditionalOrExpressionAccess().getRule();
}
- /// * CONDITIONAL-TEST EXPRESSIONS * / ConditionalExpression Expression:
- // ConditionalOrExpression ({ConditionalTestExpression.operand1=current}
- // '?' operand2=Expression ':' operand3=ConditionalExpression)?
+ /// * CONDITIONAL-TEST EXPRESSIONS */ ConditionalExpression Expression:
+ // ConditionalOrExpression ({ConditionalTestExpression.operand1=current} '?' operand2=Expression ':'
+ // operand3=ConditionalExpression)?;
public AlfGrammarAccess.ConditionalExpressionElements getConditionalExpressionAccess() {
return gaAlf.getConditionalExpressionAccess();
}
-
+
public ParserRule getConditionalExpressionRule() {
return getConditionalExpressionAccess().getRule();
}
- /// * ASSIGNMENT EXPRESSIONS * / AssignmentExpression:
- // leftHandSide=LeftHandSide operator=AssignmentOperator rightHandSide=Expression;
+ /// * ASSIGNMENT EXPRESSIONS */ AssignmentExpression:
+ // leftHandSide=LeftHandSide operator=AssignmentOperator rightHandSide=Expression;
public AlfGrammarAccess.AssignmentExpressionElements getAssignmentExpressionAccess() {
return gaAlf.getAssignmentExpressionAccess();
}
-
+
public ParserRule getAssignmentExpressionRule() {
return getAssignmentExpressionAccess().getRule();
}
- //LeftHandSide:
- // NameLeftHandSide | FeatureLeftHandSide // ( index = Index )? |
- // // "(" LeftHandSide ")"
- //;
+ // LeftHandSide:
+ // NameLeftHandSide | FeatureLeftHandSide // ( index = Index )? |
+ // // "(" LeftHandSide ")"
+ // ;
public AlfGrammarAccess.LeftHandSideElements getLeftHandSideAccess() {
return gaAlf.getLeftHandSideAccess();
}
-
+
public ParserRule getLeftHandSideRule() {
return getLeftHandSideAccess().getRule();
}
- //NameLeftHandSide:
- // target=PotentiallyAmbiguousQualifiedName index=Index?;
+ // NameLeftHandSide:
+ // target=PotentiallyAmbiguousQualifiedName index=Index?;
public AlfGrammarAccess.NameLeftHandSideElements getNameLeftHandSideAccess() {
return gaAlf.getNameLeftHandSideAccess();
}
-
+
public ParserRule getNameLeftHandSideRule() {
return getNameLeftHandSideAccess().getRule();
}
- //FeatureLeftHandSide:
- // expression=PrimaryExpression;
+ // FeatureLeftHandSide:
+ // expression=PrimaryExpression;
public AlfGrammarAccess.FeatureLeftHandSideElements getFeatureLeftHandSideAccess() {
return gaAlf.getFeatureLeftHandSideAccess();
}
-
+
public ParserRule getFeatureLeftHandSideRule() {
return getFeatureLeftHandSideAccess().getRule();
}
- //AssignmentOperator:
- // '=' | '+=' | '-=' | '*=' | '/=' | '%=' | '&=' | '|=' | '^=' | '<<=' | '>>=' | '>>>=';
+ // AssignmentOperator:
+ // '=' | '+=' | '-=' | '*=' | '/=' | '%=' | '&=' | '|=' | '^=' | '<<=' | '>>=' | '>>>=';
public AlfGrammarAccess.AssignmentOperatorElements getAssignmentOperatorAccess() {
return gaAlf.getAssignmentOperatorAccess();
}
-
+
public ParserRule getAssignmentOperatorRule() {
return getAssignmentOperatorAccess().getRule();
}
/// **************
// * STATEMENTS *
- // ************** / StatementSequence Block:
- // {Block} statement+=DocumentedStatement*
+ // **************/ StatementSequence Block:
+ // {Block} statement+=DocumentedStatement*;
public AlfGrammarAccess.StatementSequenceElements getStatementSequenceAccess() {
return gaAlf.getStatementSequenceAccess();
}
-
+
public ParserRule getStatementSequenceRule() {
return getStatementSequenceAccess().getRule();
}
- //DocumentedStatement AnnotatedStatement:
- // AnnotatedStatement
+ // DocumentedStatement AnnotatedStatement:
+ // AnnotatedStatement;
public AlfGrammarAccess.DocumentedStatementElements getDocumentedStatementAccess() {
return gaAlf.getDocumentedStatementAccess();
}
-
+
public ParserRule getDocumentedStatementRule() {
return getDocumentedStatementAccess().getRule();
}
- //Statement:
- // InLineStatement | BlockStatement | EmptyStatement | LocalNameDeclarationStatement | ExpressionStatement | IfStatement
- // | SwitchStatement | WhileStatement | ForStatement | DoStatement | BreakStatement | ReturnStatement | AcceptStatement
- // | ClassifyStatement;
+ // Statement:
+ // InLineStatement | BlockStatement | EmptyStatement | LocalNameDeclarationStatement | ExpressionStatement | IfStatement
+ // | SwitchStatement | WhileStatement | ForStatement | DoStatement | BreakStatement | ReturnStatement | AcceptStatement
+ // | ClassifyStatement;
public AlfGrammarAccess.StatementElements getStatementAccess() {
return gaAlf.getStatementAccess();
}
-
+
public ParserRule getStatementRule() {
return getStatementAccess().getRule();
}
- /// * BLOCK * / Block:
- // {Block} '{' statement+=DocumentedStatement* '}';
+ /// * BLOCK */ Block:
+ // {Block} '{' statement+=DocumentedStatement* '}';
public AlfGrammarAccess.BlockElements getBlockAccess() {
return gaAlf.getBlockAccess();
}
-
+
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;
+ /// * 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 AlfGrammarAccess.AnnotatedStatementElements getAnnotatedStatementAccess() {
return gaAlf.getAnnotatedStatementAccess();
}
-
+
public ParserRule getAnnotatedStatementRule() {
return getAnnotatedStatementAccess().getRule();
}
/// *
- //Annotation :
- // identifier = ID ( '(' argument += Name ( ',' argument += Name )* ')' )?
- //;
- // * / / * IN-LINE STATEMENTS * / InLineStatement:
- // code=INLINE_STATEMENT
- // //'/ *@' 'inline' '(' language = Name ')' '* /'
- //;
+ // Annotation :
+ // identifier = ID ( '(' argument += Name ( ',' argument += Name )* ')' )?
+ // ;
+ // */ /* IN-LINE STATEMENTS */
+ // InLineStatement:
+ // code=INLINE_STATEMENT //'/*@' 'inline' '(' language = Name ')' '*/'
+ // ;
public AlfGrammarAccess.InLineStatementElements getInLineStatementAccess() {
return gaAlf.getInLineStatementAccess();
}
-
+
public ParserRule getInLineStatementRule() {
return getInLineStatementAccess().getRule();
}
- /// * BLOCK STATEMENTS * / BlockStatement:
- // block=Block;
+ /// * BLOCK STATEMENTS */ BlockStatement:
+ // block=Block;
public AlfGrammarAccess.BlockStatementElements getBlockStatementAccess() {
return gaAlf.getBlockStatementAccess();
}
-
+
public ParserRule getBlockStatementRule() {
return getBlockStatementAccess().getRule();
}
- /// * EMPTY STATEMENTS * / EmptyStatement:
- // {EmptyStatement}
- // ';';
+ /// * EMPTY STATEMENTS */ EmptyStatement:
+ // {EmptyStatement} ';';
public AlfGrammarAccess.EmptyStatementElements getEmptyStatementAccess() {
return gaAlf.getEmptyStatementAccess();
}
-
+
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 ';';
+ /// * 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 AlfGrammarAccess.LocalNameDeclarationStatementElements getLocalNameDeclarationStatementAccess() {
return gaAlf.getLocalNameDeclarationStatementAccess();
}
-
+
public ParserRule getLocalNameDeclarationStatementRule() {
return getLocalNameDeclarationStatementAccess().getRule();
}
- //InitializationExpression Expression:
- // Expression
- // | SequenceInitializationExpression
- // | InstanceInitializationExpression
+ // InitializationExpression Expression:
+ // Expression | SequenceInitializationExpression | InstanceInitializationExpression;
public AlfGrammarAccess.InitializationExpressionElements getInitializationExpressionAccess() {
return gaAlf.getInitializationExpressionAccess();
}
-
+
public ParserRule getInitializationExpressionRule() {
return getInitializationExpressionAccess().getRule();
}
- //InstanceInitializationExpression InstanceCreationExpression:
- // 'new' tuple=Tuple
+ // InstanceInitializationExpression InstanceCreationExpression:
+ // 'new' tuple=Tuple;
public AlfGrammarAccess.InstanceInitializationExpressionElements getInstanceInitializationExpressionAccess() {
return gaAlf.getInstanceInitializationExpressionAccess();
}
-
+
public ParserRule getInstanceInitializationExpressionRule() {
return getInstanceInitializationExpressionAccess().getRule();
}
- /// * EXPRESSION STATEMENTS * / ExpressionStatement:
- // expression=Expression ';';
+ /// * EXPRESSION STATEMENTS */ ExpressionStatement:
+ // expression=Expression ';';
public AlfGrammarAccess.ExpressionStatementElements getExpressionStatementAccess() {
return gaAlf.getExpressionStatementAccess();
}
-
+
public ParserRule getExpressionStatementRule() {
return getExpressionStatementAccess().getRule();
}
- /// * IF STATEMENTS * / IfStatement:
- // 'if' nonFinalClauses+=ConcurrentClauses ('else' 'if' nonFinalClauses+=ConcurrentClauses)* ('else'
- // finalClause=Block)?;
+ /// * IF STATEMENTS */ IfStatement:
+ // 'if' nonFinalClauses+=ConcurrentClauses ('else' 'if' nonFinalClauses+=ConcurrentClauses)* ('else'
+ // finalClause=Block)?;
public AlfGrammarAccess.IfStatementElements getIfStatementAccess() {
return gaAlf.getIfStatementAccess();
}
-
+
public ParserRule getIfStatementRule() {
return getIfStatementAccess().getRule();
}
- //ConcurrentClauses:
- // clause+=NonFinalClause ('or' 'if' clause+=NonFinalClause)*;
+ // ConcurrentClauses:
+ // clause+=NonFinalClause ('or' 'if' clause+=NonFinalClause)*;
public AlfGrammarAccess.ConcurrentClausesElements getConcurrentClausesAccess() {
return gaAlf.getConcurrentClausesAccess();
}
-
+
public ParserRule getConcurrentClausesRule() {
return getConcurrentClausesAccess().getRule();
}
- //NonFinalClause:
- // '(' condition=Expression ')' body=Block;
+ // NonFinalClause:
+ // '(' condition=Expression ')' body=Block;
public AlfGrammarAccess.NonFinalClauseElements getNonFinalClauseAccess() {
return gaAlf.getNonFinalClauseAccess();
}
-
+
public ParserRule getNonFinalClauseRule() {
return getNonFinalClauseAccess().getRule();
}
- /// * SWITCH STATEMENTS * / SwitchStatement:
- // 'switch' '(' expression=Expression ')'
- // '{' nonDefaultClause+=SwitchClause*
- // defaultClause=SwitchDefaultClause? '}';
+ /// * SWITCH STATEMENTS */ SwitchStatement:
+ // 'switch' '(' expression=Expression ')' '{' nonDefaultClause+=SwitchClause* defaultClause=SwitchDefaultClause? '}';
public AlfGrammarAccess.SwitchStatementElements getSwitchStatementAccess() {
return gaAlf.getSwitchStatementAccess();
}
-
+
public ParserRule getSwitchStatementRule() {
return getSwitchStatementAccess().getRule();
}
- //SwitchClause:
- // case+=SwitchCase case+=SwitchCase*
- // block=NonEmptyStatementSequence;
+ // SwitchClause:
+ // case+=SwitchCase case+=SwitchCase* block=NonEmptyStatementSequence;
public AlfGrammarAccess.SwitchClauseElements getSwitchClauseAccess() {
return gaAlf.getSwitchClauseAccess();
}
-
+
public ParserRule getSwitchClauseRule() {
return getSwitchClauseAccess().getRule();
}
- //SwitchCase Expression:
- // 'case' Expression ':'
+ // SwitchCase Expression:
+ // 'case' Expression ':';
public AlfGrammarAccess.SwitchCaseElements getSwitchCaseAccess() {
return gaAlf.getSwitchCaseAccess();
}
-
+
public ParserRule getSwitchCaseRule() {
return getSwitchCaseAccess().getRule();
}
- //SwitchDefaultClause Block:
- // 'default' ':' NonEmptyStatementSequence
+ // SwitchDefaultClause Block:
+ // 'default' ':' NonEmptyStatementSequence;
public AlfGrammarAccess.SwitchDefaultClauseElements getSwitchDefaultClauseAccess() {
return gaAlf.getSwitchDefaultClauseAccess();
}
-
+
public ParserRule getSwitchDefaultClauseRule() {
return getSwitchDefaultClauseAccess().getRule();
}
- //NonEmptyStatementSequence Block:
- // statement+=DocumentedStatement+
+ // NonEmptyStatementSequence Block:
+ // statement+=DocumentedStatement+;
public AlfGrammarAccess.NonEmptyStatementSequenceElements getNonEmptyStatementSequenceAccess() {
return gaAlf.getNonEmptyStatementSequenceAccess();
}
-
+
public ParserRule getNonEmptyStatementSequenceRule() {
return getNonEmptyStatementSequenceAccess().getRule();
}
- /// * WHILE STATEMENTS * / WhileStatement:
- // 'while' '(' condition=Expression ')' body=Block;
+ /// * WHILE STATEMENTS */ WhileStatement:
+ // 'while' '(' condition=Expression ')' body=Block;
public AlfGrammarAccess.WhileStatementElements getWhileStatementAccess() {
return gaAlf.getWhileStatementAccess();
}
-
+
public ParserRule getWhileStatementRule() {
return getWhileStatementAccess().getRule();
}
- /// * DO STATEMENTS * / DoStatement:
- // 'do' body=Block 'while' '(' condition=Expression ')' ';';
+ /// * DO STATEMENTS */ DoStatement:
+ // 'do' body=Block 'while' '(' condition=Expression ')' ';';
public AlfGrammarAccess.DoStatementElements getDoStatementAccess() {
return gaAlf.getDoStatementAccess();
}
-
+
public ParserRule getDoStatementRule() {
return getDoStatementAccess().getRule();
}
- /// * FOR STATEMENTS * / ForStatement:
- // 'for' '(' variableDefinition+=LoopVariableDefinition (',' variableDefinition+=LoopVariableDefinition)* ')'
- // body=Block;
+ /// * FOR STATEMENTS */ ForStatement:
+ // 'for' '(' variableDefinition+=LoopVariableDefinition (',' variableDefinition+=LoopVariableDefinition)* ')'
+ // body=Block;
public AlfGrammarAccess.ForStatementElements getForStatementAccess() {
return gaAlf.getForStatementAccess();
}
-
+
public ParserRule getForStatementRule() {
return getForStatementAccess().getRule();
}
- //LoopVariableDefinition:
- // variable=Name typeIsInferred?='in' expression1=Expression ('..' expression2=Expression)? | (isAny?='any' |
- // typeName=QualifiedName) variable=Name ':' expression1=Expression;
+ // LoopVariableDefinition:
+ // variable=Name typeIsInferred?='in' expression1=Expression ('..' expression2=Expression)? | (isAny?='any' |
+ // typeName=QualifiedName) variable=Name ':' expression1=Expression;
public AlfGrammarAccess.LoopVariableDefinitionElements getLoopVariableDefinitionAccess() {
return gaAlf.getLoopVariableDefinitionAccess();
}
-
+
public ParserRule getLoopVariableDefinitionRule() {
return getLoopVariableDefinitionAccess().getRule();
}
- /// * BREAK STATEMENTS * / BreakStatement:
- // {BreakStatement}
- // 'break' ';';
+ /// * BREAK STATEMENTS */ BreakStatement:
+ // {BreakStatement} 'break' ';';
public AlfGrammarAccess.BreakStatementElements getBreakStatementAccess() {
return gaAlf.getBreakStatementAccess();
}
-
+
public ParserRule getBreakStatementRule() {
return getBreakStatementAccess().getRule();
}
- /// * RETURN STATEMENTS * / ReturnStatement:
- // {ReturnStatement}
- // 'return' expression=Expression? ';';
+ /// * RETURN STATEMENTS */ ReturnStatement:
+ // {ReturnStatement} 'return' expression=Expression? ';';
public AlfGrammarAccess.ReturnStatementElements getReturnStatementAccess() {
return gaAlf.getReturnStatementAccess();
}
-
+
public ParserRule getReturnStatementRule() {
return getReturnStatementAccess().getRule();
}
- /// * ACCEPT STATEMENTS * / AcceptStatement:
- // acceptBlock+=AcceptClause ';' | acceptBlock+=AcceptBlock ('or' acceptBlock+=AcceptBlock)*;
+ /// * ACCEPT STATEMENTS */ AcceptStatement:
+ // acceptBlock+=AcceptClause ';' | acceptBlock+=AcceptBlock ('or' acceptBlock+=AcceptBlock)*;
public AlfGrammarAccess.AcceptStatementElements getAcceptStatementAccess() {
return gaAlf.getAcceptStatementAccess();
}
-
+
public ParserRule getAcceptStatementRule() {
return getAcceptStatementAccess().getRule();
}
- //AcceptBlock:
- // AcceptClause block=Block;
+ // AcceptBlock:
+ // AcceptClause block=Block;
public AlfGrammarAccess.AcceptBlockElements getAcceptBlockAccess() {
return gaAlf.getAcceptBlockAccess();
}
-
+
public ParserRule getAcceptBlockRule() {
return getAcceptBlockAccess().getRule();
}
- //AcceptClause AcceptBlock:
- // 'accept' '(' (name=Name ':')? signalNames=QualifiedNameList ')'
+ // AcceptClause AcceptBlock:
+ // 'accept' '(' (name=Name ':')? signalNames=QualifiedNameList ')';
public AlfGrammarAccess.AcceptClauseElements getAcceptClauseAccess() {
return gaAlf.getAcceptClauseAccess();
}
-
+
public ParserRule getAcceptClauseRule() {
return getAcceptClauseAccess().getRule();
}
- /// * CLASSIFY STATEMENTS * / ClassifyStatement:
- // 'classify' expression=Expression (fromList=ClassificationFromClause toList=ClassificationToClause? |
- // isReclassifyAll?=ReclassifyAllClause? toList=ClassificationToClause)
- // ';';
+ /// * CLASSIFY STATEMENTS */ ClassifyStatement:
+ // 'classify' expression=Expression (fromList=ClassificationFromClause toList=ClassificationToClause? |
+ // isReclassifyAll?=ReclassifyAllClause? toList=ClassificationToClause) ';';
public AlfGrammarAccess.ClassifyStatementElements getClassifyStatementAccess() {
return gaAlf.getClassifyStatementAccess();
}
-
+
public ParserRule getClassifyStatementRule() {
return getClassifyStatementAccess().getRule();
}
- //ClassificationFromClause QualifiedNameList:
- // 'from' QualifiedNameList
+ // ClassificationFromClause QualifiedNameList:
+ // 'from' QualifiedNameList;
public AlfGrammarAccess.ClassificationFromClauseElements getClassificationFromClauseAccess() {
return gaAlf.getClassificationFromClauseAccess();
}
-
+
public ParserRule getClassificationFromClauseRule() {
return getClassificationFromClauseAccess().getRule();
}
- //ClassificationToClause QualifiedNameList:
- // 'to' QualifiedNameList
+ // ClassificationToClause QualifiedNameList:
+ // 'to' QualifiedNameList;
public AlfGrammarAccess.ClassificationToClauseElements getClassificationToClauseAccess() {
return gaAlf.getClassificationToClauseAccess();
}
-
+
public ParserRule getClassificationToClauseRule() {
return getClassificationToClauseAccess().getRule();
}
- //ReclassifyAllClause:
- // 'from' '*';
+ // ReclassifyAllClause:
+ // 'from' '*';
public AlfGrammarAccess.ReclassifyAllClauseElements getReclassifyAllClauseAccess() {
return gaAlf.getReclassifyAllClauseAccess();
}
-
+
public ParserRule getReclassifyAllClauseRule() {
return getReclassifyAllClauseAccess().getRule();
}
- //QualifiedNameList:
- // name+=QualifiedName (',' name+=QualifiedName)*;
+ // QualifiedNameList:
+ // name+=QualifiedName (',' name+=QualifiedName)*;
public AlfGrammarAccess.QualifiedNameListElements getQualifiedNameListAccess() {
return gaAlf.getQualifiedNameListAccess();
}
-
+
public ParserRule getQualifiedNameListRule() {
return getQualifiedNameListAccess().getRule();
}
- //terminal BOOLEAN_VALUE:
- // 'true' | 'false';
+ // terminal BOOLEAN_VALUE:
+ // 'true' | 'false';
public TerminalRule getBOOLEAN_VALUERule() {
return gaAlf.getBOOLEAN_VALUERule();
- }
+ }
- //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')*;
+ // 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 gaAlf.getNATURAL_VALUERule();
- }
+ }
- //terminal ID:
- // ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*;
+ // terminal ID:
+ // ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*;
public TerminalRule getIDRule() {
return gaAlf.getIDRule();
- }
+ }
- //terminal UNRESTRICTED_NAME:
- // '\'' ('\\' ('b' | 't' | 'n' | 'f' | 'r' | '"' | "'" | '\\') | !('\\' | '\''))* '\'';
+ // terminal UNRESTRICTED_NAME:
+ // '\'' ('\\' ('b' | 't' | 'n' | 'f' | 'r' | '"' | "'" | '\\') | !('\\' | '\''))* '\'';
public TerminalRule getUNRESTRICTED_NAMERule() {
return gaAlf.getUNRESTRICTED_NAMERule();
- }
+ }
- //terminal STRING:
- // '"' ('\\' ('b' | 't' | 'n' | 'f' | 'r' | '"' | "'" | '\\') | !('\\' | '"'))* '"';
+ // terminal STRING:
+ // '"' ('\\' ('b' | 't' | 'n' | 'f' | 'r' | '"' | "'" | '\\') | !('\\' | '"'))* '"';
public TerminalRule getSTRINGRule() {
return gaAlf.getSTRINGRule();
- }
+ }
- //terminal DOCUMENTATION_COMMENT:
- // '/ **'->'* /';
+ // terminal DOCUMENTATION_COMMENT:
+ // '/**'->'*/';
public TerminalRule getDOCUMENTATION_COMMENTRule() {
return gaAlf.getDOCUMENTATION_COMMENTRule();
- }
+ }
- //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')
- //;
+ // 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 gaAlf.getSTATEMENT_ANNOTATIONRule();
- }
+ }
- //terminal INLINE_STATEMENT:
- // '/ *@inline(' (ID | UNRESTRICTED_NAME) ')'->'* /';
+ // terminal INLINE_STATEMENT:
+ // '/*@inline(' (ID | UNRESTRICTED_NAME) ')'->'*/';
public TerminalRule getINLINE_STATEMENTRule() {
return gaAlf.getINLINE_STATEMENTRule();
- }
+ }
- //terminal ML_COMMENT:
- // '/ *' !('*' | '@')->'* /';
+ // terminal ML_COMMENT:
+ // '/*' !('*' | '@')->'*/';
public TerminalRule getML_COMMENTRule() {
return gaAlf.getML_COMMENTRule();
- }
+ }
- //terminal SL_COMMENT:
- // '//' (!('@' | '\n' | '\r') !('\n' | '\r')*)? ('\r'? '\n')?;
+ // terminal SL_COMMENT:
+ // '//' (!('@' | '\n' | '\r') !('\n' | '\r')*)? ('\r'? '\n')?;
public TerminalRule getSL_COMMENTRule() {
return gaAlf.getSL_COMMENTRule();
- }
+ }
- //terminal WS:
- // ' ' | '\t' | '\r' | '\n'+;
+ // terminal WS:
+ // ' ' | '\t' | '\r' | '\n'+;
public TerminalRule getWSRule() {
return gaAlf.getWSRule();
- }
+ }
}

Back to the top