Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse')
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/Base.ecore113
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/Base.genmodel33
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/Base.xtextbinbin3237 -> 5052 bytes
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/Annotation.java78
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/AnnotationAttribute.java84
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/AnnotationType.java116
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/BaseFactory.java63
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/BasePackage.java718
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/Documentation.java49
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/EnumAnnotationAttribute.java45
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/KeyValue.java83
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/LiteralType.java277
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/SimpleAnnotationAttribute.java57
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/AnnotationAttributeImpl.java233
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/AnnotationImpl.java235
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/AnnotationTypeImpl.java351
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/BaseFactoryImpl.java141
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/BasePackageImpl.java341
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/DocumentationImpl.java163
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/EnumAnnotationAttributeImpl.java161
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/KeyValueImpl.java265
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/SimpleAnnotationAttributeImpl.java177
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/util/BaseAdapterFactory.java140
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/util/BaseSwitch.java163
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/BaseParser.java2
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g532
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.tokens60
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBaseLexer.java890
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBaseParser.java2417
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/serializer/BaseSemanticSequencer.java113
-rw-r--r--plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/services/BaseGrammarAccess.java656
31 files changed, 8046 insertions, 710 deletions
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/Base.ecore b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/Base.ecore
index bfa3b43a6..f11437da8 100644
--- a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/Base.ecore
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/Base.ecore
@@ -2,6 +2,119 @@
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="base" nsURI="http://www.eclipse.org/etrice/core/common/Base"
nsPrefix="base">
+ <eClassifiers xsi:type="ecore:EClass" name="Annotation">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>An annotation similar to Java annotations that can be used&#xD;&#xA;to add {@link KeyValue} pairs to certain model items. The structure &#xD;&#xA;of Annotations are defined by {@AnnotationType}s.&#xD;&#xA;"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="#//AnnotationType">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>The {@AnnotationType} that defines the structure of &#xD;&#xA;the annotation.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="attributes" upperBound="-1"
+ eType="#//KeyValue" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>This is a list of key/value pairs.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="KeyValue">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>A key/value pair.&#xD;&#xA;"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="key" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>This is the key of the pair.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="value" eType="#//Literal"
+ containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>This is the value of the pair.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="AnnotationType">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>Defines the structure of {@link Annotation}s."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>The name of the AnnotationType"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="docu" eType="#//Documentation"
+ containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>Optional model-level documentation"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="targets" unique="false"
+ upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>A list of names representing the locations in which &#xD;&#xA;&#x9;&#x9;&#x9;{@Annotation}s of this AnnotationType can occur"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="attributes" upperBound="-1"
+ eType="#//AnnotationAttribute" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>Defines the {@link Attribute}s that are required or allowed in &#xD;&#xA;&#x9;&#x9;&#x9;{@Annotation} instances of this AnnotationType"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="AnnotationAttribute">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>Defines an attribute in an {@link AnnotationType}. This attribute &#xD;&#xA;&#x9;&#x9;&#x9;can then be declared in respective {@link Annotation} instances."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="optional" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>Specifies whether the attribute should be optional or not. If the &#xD;&#xA;&#x9;&#x9;&#x9;attribute is optional, it can be omitted by {@link Annotation}s of &#xD;&#xA;&#x9;&#x9;&#x9;the same {@link AnnotationType}.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>The name of the attribute"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="SimpleAnnotationAttribute" eSuperTypes="#//AnnotationAttribute">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>An {@link AnnotationAttribute} that is associated with a &#xD;&#xA;&#x9;&#x9;&#x9;{@link LiteralType}."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="#//LiteralType">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>The type of the attribute"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EnumAnnotationAttribute" eSuperTypes="#//AnnotationAttribute">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>An {@link AnnotationAttribute} whose possible values are defined &#xD;&#xA;&#x9;&#x9;&#x9;by a list of String values."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="values" unique="false"
+ upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>A list of values that define the enumeration"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Documentation">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>A piece of documentation that can be optionally attached at&#xD;&#xA;certain places in the model.&#xD;&#xA;"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="lines" unique="false" upperBound="-1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;br>This is the documentation's contents.&#xD;&#xA;"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EEnum" name="LiteralType">
+ <eLiterals name="BOOL" literal="ptBoolean"/>
+ <eLiterals name="INT" value="1" literal="ptInteger"/>
+ <eLiterals name="REAL" value="2" literal="ptReal"/>
+ <eLiterals name="CHAR" value="3" literal="ptCharacter"/>
+ </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="LiteralArray">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="&lt;br>Aggregates one or more {@link Literal literals}.&#x9;&#x9;&#xD;&#xA;"/>
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/Base.genmodel b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/Base.genmodel
index f6d833bf8..f5112c5a1 100644
--- a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/Base.genmodel
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/Base.genmodel
@@ -7,6 +7,39 @@
editorPluginID="org.eclipse.etrice.core.common.editor" runtimeVersion="2.9">
<genPackages prefix="Base" basePackage="org.eclipse.etrice.core.common" disposableProviderFactory="true"
fileExtensions="etbase" ecorePackage="Base.ecore#/">
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="Base.ecore#//LiteralType">
+ <genEnumLiterals ecoreEnumLiteral="Base.ecore#//LiteralType/BOOL"/>
+ <genEnumLiterals ecoreEnumLiteral="Base.ecore#//LiteralType/INT"/>
+ <genEnumLiterals ecoreEnumLiteral="Base.ecore#//LiteralType/REAL"/>
+ <genEnumLiterals ecoreEnumLiteral="Base.ecore#//LiteralType/CHAR"/>
+ </genEnums>
+ <genClasses ecoreClass="Base.ecore#//Annotation">
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference Base.ecore#//Annotation/type"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Base.ecore#//Annotation/attributes"/>
+ </genClasses>
+ <genClasses ecoreClass="Base.ecore#//KeyValue">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Base.ecore#//KeyValue/key"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Base.ecore#//KeyValue/value"/>
+ </genClasses>
+ <genClasses ecoreClass="Base.ecore#//AnnotationType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Base.ecore#//AnnotationType/name"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Base.ecore#//AnnotationType/docu"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Base.ecore#//AnnotationType/targets"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Base.ecore#//AnnotationType/attributes"/>
+ </genClasses>
+ <genClasses ecoreClass="Base.ecore#//AnnotationAttribute">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Base.ecore#//AnnotationAttribute/optional"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Base.ecore#//AnnotationAttribute/name"/>
+ </genClasses>
+ <genClasses ecoreClass="Base.ecore#//SimpleAnnotationAttribute">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Base.ecore#//SimpleAnnotationAttribute/type"/>
+ </genClasses>
+ <genClasses ecoreClass="Base.ecore#//EnumAnnotationAttribute">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Base.ecore#//EnumAnnotationAttribute/values"/>
+ </genClasses>
+ <genClasses ecoreClass="Base.ecore#//Documentation">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute Base.ecore#//Documentation/lines"/>
+ </genClasses>
<genClasses ecoreClass="Base.ecore#//LiteralArray">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Base.ecore#//LiteralArray/literals"/>
</genClasses>
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/Base.xtextbin b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/Base.xtextbin
index eb9bbda7c..57d6138c3 100644
--- a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/Base.xtextbin
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/Base.xtextbin
Binary files differ
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/Annotation.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/Annotation.java
new file mode 100644
index 000000000..d7beff811
--- /dev/null
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/Annotation.java
@@ -0,0 +1,78 @@
+/**
+ */
+package org.eclipse.etrice.core.common.base;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Annotation</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ * <br>An annotation similar to Java annotations that can be used
+ * to add {@link KeyValue} pairs to certain model items. The structure
+ * of Annotations are defined by {@AnnotationType}s.
+ *
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.etrice.core.common.base.Annotation#getType <em>Type</em>}</li>
+ * <li>{@link org.eclipse.etrice.core.common.base.Annotation#getAttributes <em>Attributes</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getAnnotation()
+ * @model
+ * @generated
+ */
+public interface Annotation extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Type</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * <br>The {@AnnotationType} that defines the structure of
+ * the annotation.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Type</em>' reference.
+ * @see #setType(AnnotationType)
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getAnnotation_Type()
+ * @model
+ * @generated
+ */
+ AnnotationType getType();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.etrice.core.common.base.Annotation#getType <em>Type</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Type</em>' reference.
+ * @see #getType()
+ * @generated
+ */
+ void setType(AnnotationType value);
+
+ /**
+ * Returns the value of the '<em><b>Attributes</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.etrice.core.common.base.KeyValue}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * <br>This is a list of key/value pairs.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Attributes</em>' containment reference list.
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getAnnotation_Attributes()
+ * @model containment="true"
+ * @generated
+ */
+ EList<KeyValue> getAttributes();
+
+} // Annotation
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/AnnotationAttribute.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/AnnotationAttribute.java
new file mode 100644
index 000000000..b1accbb64
--- /dev/null
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/AnnotationAttribute.java
@@ -0,0 +1,84 @@
+/**
+ */
+package org.eclipse.etrice.core.common.base;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Annotation Attribute</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ * <br>Defines an attribute in an {@link AnnotationType}. This attribute
+ * can then be declared in respective {@link Annotation} instances.
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.etrice.core.common.base.AnnotationAttribute#isOptional <em>Optional</em>}</li>
+ * <li>{@link org.eclipse.etrice.core.common.base.AnnotationAttribute#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getAnnotationAttribute()
+ * @model
+ * @generated
+ */
+public interface AnnotationAttribute extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Optional</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * <br>Specifies whether the attribute should be optional or not. If the
+ * attribute is optional, it can be omitted by {@link Annotation}s of
+ * the same {@link AnnotationType}.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Optional</em>' attribute.
+ * @see #setOptional(boolean)
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getAnnotationAttribute_Optional()
+ * @model
+ * @generated
+ */
+ boolean isOptional();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.etrice.core.common.base.AnnotationAttribute#isOptional <em>Optional</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Optional</em>' attribute.
+ * @see #isOptional()
+ * @generated
+ */
+ void setOptional(boolean value);
+
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * <br>The name of the attribute
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getAnnotationAttribute_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.etrice.core.common.base.AnnotationAttribute#getName <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+} // AnnotationAttribute
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/AnnotationType.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/AnnotationType.java
new file mode 100644
index 000000000..3af7df491
--- /dev/null
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/AnnotationType.java
@@ -0,0 +1,116 @@
+/**
+ */
+package org.eclipse.etrice.core.common.base;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Annotation Type</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ * <br>Defines the structure of {@link Annotation}s.
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.etrice.core.common.base.AnnotationType#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.etrice.core.common.base.AnnotationType#getDocu <em>Docu</em>}</li>
+ * <li>{@link org.eclipse.etrice.core.common.base.AnnotationType#getTargets <em>Targets</em>}</li>
+ * <li>{@link org.eclipse.etrice.core.common.base.AnnotationType#getAttributes <em>Attributes</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getAnnotationType()
+ * @model
+ * @generated
+ */
+public interface AnnotationType extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * <br>The name of the AnnotationType
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getAnnotationType_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.etrice.core.common.base.AnnotationType#getName <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Docu</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * <br>Optional model-level documentation
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Docu</em>' containment reference.
+ * @see #setDocu(Documentation)
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getAnnotationType_Docu()
+ * @model containment="true"
+ * @generated
+ */
+ Documentation getDocu();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.etrice.core.common.base.AnnotationType#getDocu <em>Docu</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Docu</em>' containment reference.
+ * @see #getDocu()
+ * @generated
+ */
+ void setDocu(Documentation value);
+
+ /**
+ * Returns the value of the '<em><b>Targets</b></em>' attribute list.
+ * The list contents are of type {@link java.lang.String}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * <br>A list of names representing the locations in which
+ * {@Annotation}s of this AnnotationType can occur
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Targets</em>' attribute list.
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getAnnotationType_Targets()
+ * @model unique="false"
+ * @generated
+ */
+ EList<String> getTargets();
+
+ /**
+ * Returns the value of the '<em><b>Attributes</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.etrice.core.common.base.AnnotationAttribute}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * <br>Defines the {@link Attribute}s that are required or allowed in
+ * {@Annotation} instances of this AnnotationType
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Attributes</em>' containment reference list.
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getAnnotationType_Attributes()
+ * @model containment="true"
+ * @generated
+ */
+ EList<AnnotationAttribute> getAttributes();
+
+} // AnnotationType
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/BaseFactory.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/BaseFactory.java
index 878e24da4..98801c18b 100644
--- a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/BaseFactory.java
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/BaseFactory.java
@@ -23,6 +23,69 @@ public interface BaseFactory extends EFactory
BaseFactory eINSTANCE = org.eclipse.etrice.core.common.base.impl.BaseFactoryImpl.init();
/**
+ * Returns a new object of class '<em>Annotation</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Annotation</em>'.
+ * @generated
+ */
+ Annotation createAnnotation();
+
+ /**
+ * Returns a new object of class '<em>Key Value</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Key Value</em>'.
+ * @generated
+ */
+ KeyValue createKeyValue();
+
+ /**
+ * Returns a new object of class '<em>Annotation Type</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Annotation Type</em>'.
+ * @generated
+ */
+ AnnotationType createAnnotationType();
+
+ /**
+ * Returns a new object of class '<em>Annotation Attribute</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Annotation Attribute</em>'.
+ * @generated
+ */
+ AnnotationAttribute createAnnotationAttribute();
+
+ /**
+ * Returns a new object of class '<em>Simple Annotation Attribute</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Simple Annotation Attribute</em>'.
+ * @generated
+ */
+ SimpleAnnotationAttribute createSimpleAnnotationAttribute();
+
+ /**
+ * Returns a new object of class '<em>Enum Annotation Attribute</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Enum Annotation Attribute</em>'.
+ * @generated
+ */
+ EnumAnnotationAttribute createEnumAnnotationAttribute();
+
+ /**
+ * Returns a new object of class '<em>Documentation</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Documentation</em>'.
+ * @generated
+ */
+ Documentation createDocumentation();
+
+ /**
* Returns a new object of class '<em>Literal Array</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/BasePackage.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/BasePackage.java
index 446bba96b..9efc7fd81 100644
--- a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/BasePackage.java
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/BasePackage.java
@@ -4,6 +4,7 @@ package org.eclipse.etrice.core.common.base;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
@@ -57,6 +58,292 @@ public interface BasePackage extends EPackage
BasePackage eINSTANCE = org.eclipse.etrice.core.common.base.impl.BasePackageImpl.init();
/**
+ * The meta object id for the '{@link org.eclipse.etrice.core.common.base.impl.AnnotationImpl <em>Annotation</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.etrice.core.common.base.impl.AnnotationImpl
+ * @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getAnnotation()
+ * @generated
+ */
+ int ANNOTATION = 0;
+
+ /**
+ * The feature id for the '<em><b>Type</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ANNOTATION__TYPE = 0;
+
+ /**
+ * The feature id for the '<em><b>Attributes</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ANNOTATION__ATTRIBUTES = 1;
+
+ /**
+ * The number of structural features of the '<em>Annotation</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ANNOTATION_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.etrice.core.common.base.impl.KeyValueImpl <em>Key Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.etrice.core.common.base.impl.KeyValueImpl
+ * @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getKeyValue()
+ * @generated
+ */
+ int KEY_VALUE = 1;
+
+ /**
+ * The feature id for the '<em><b>Key</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int KEY_VALUE__KEY = 0;
+
+ /**
+ * The feature id for the '<em><b>Value</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int KEY_VALUE__VALUE = 1;
+
+ /**
+ * The number of structural features of the '<em>Key Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int KEY_VALUE_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.etrice.core.common.base.impl.AnnotationTypeImpl <em>Annotation Type</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.etrice.core.common.base.impl.AnnotationTypeImpl
+ * @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getAnnotationType()
+ * @generated
+ */
+ int ANNOTATION_TYPE = 2;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ANNOTATION_TYPE__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Docu</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ANNOTATION_TYPE__DOCU = 1;
+
+ /**
+ * The feature id for the '<em><b>Targets</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ANNOTATION_TYPE__TARGETS = 2;
+
+ /**
+ * The feature id for the '<em><b>Attributes</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ANNOTATION_TYPE__ATTRIBUTES = 3;
+
+ /**
+ * The number of structural features of the '<em>Annotation Type</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ANNOTATION_TYPE_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.etrice.core.common.base.impl.AnnotationAttributeImpl <em>Annotation Attribute</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.etrice.core.common.base.impl.AnnotationAttributeImpl
+ * @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getAnnotationAttribute()
+ * @generated
+ */
+ int ANNOTATION_ATTRIBUTE = 3;
+
+ /**
+ * The feature id for the '<em><b>Optional</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ANNOTATION_ATTRIBUTE__OPTIONAL = 0;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ANNOTATION_ATTRIBUTE__NAME = 1;
+
+ /**
+ * The number of structural features of the '<em>Annotation Attribute</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ANNOTATION_ATTRIBUTE_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.etrice.core.common.base.impl.SimpleAnnotationAttributeImpl <em>Simple Annotation Attribute</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.etrice.core.common.base.impl.SimpleAnnotationAttributeImpl
+ * @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getSimpleAnnotationAttribute()
+ * @generated
+ */
+ int SIMPLE_ANNOTATION_ATTRIBUTE = 4;
+
+ /**
+ * The feature id for the '<em><b>Optional</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SIMPLE_ANNOTATION_ATTRIBUTE__OPTIONAL = ANNOTATION_ATTRIBUTE__OPTIONAL;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SIMPLE_ANNOTATION_ATTRIBUTE__NAME = ANNOTATION_ATTRIBUTE__NAME;
+
+ /**
+ * The feature id for the '<em><b>Type</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SIMPLE_ANNOTATION_ATTRIBUTE__TYPE = ANNOTATION_ATTRIBUTE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Simple Annotation Attribute</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SIMPLE_ANNOTATION_ATTRIBUTE_FEATURE_COUNT = ANNOTATION_ATTRIBUTE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.etrice.core.common.base.impl.EnumAnnotationAttributeImpl <em>Enum Annotation Attribute</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.etrice.core.common.base.impl.EnumAnnotationAttributeImpl
+ * @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getEnumAnnotationAttribute()
+ * @generated
+ */
+ int ENUM_ANNOTATION_ATTRIBUTE = 5;
+
+ /**
+ * The feature id for the '<em><b>Optional</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ENUM_ANNOTATION_ATTRIBUTE__OPTIONAL = ANNOTATION_ATTRIBUTE__OPTIONAL;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ENUM_ANNOTATION_ATTRIBUTE__NAME = ANNOTATION_ATTRIBUTE__NAME;
+
+ /**
+ * The feature id for the '<em><b>Values</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ENUM_ANNOTATION_ATTRIBUTE__VALUES = ANNOTATION_ATTRIBUTE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Enum Annotation Attribute</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ENUM_ANNOTATION_ATTRIBUTE_FEATURE_COUNT = ANNOTATION_ATTRIBUTE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.etrice.core.common.base.impl.DocumentationImpl <em>Documentation</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.etrice.core.common.base.impl.DocumentationImpl
+ * @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getDocumentation()
+ * @generated
+ */
+ int DOCUMENTATION = 6;
+
+ /**
+ * The feature id for the '<em><b>Lines</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENTATION__LINES = 0;
+
+ /**
+ * The number of structural features of the '<em>Documentation</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENTATION_FEATURE_COUNT = 1;
+
+ /**
* The meta object id for the '{@link org.eclipse.etrice.core.common.base.impl.LiteralArrayImpl <em>Literal Array</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -64,7 +351,7 @@ public interface BasePackage extends EPackage
* @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getLiteralArray()
* @generated
*/
- int LITERAL_ARRAY = 0;
+ int LITERAL_ARRAY = 7;
/**
* The feature id for the '<em><b>Literals</b></em>' containment reference list.
@@ -92,7 +379,7 @@ public interface BasePackage extends EPackage
* @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getLiteral()
* @generated
*/
- int LITERAL = 1;
+ int LITERAL = 8;
/**
* The number of structural features of the '<em>Literal</em>' class.
@@ -111,7 +398,7 @@ public interface BasePackage extends EPackage
* @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getBooleanLiteral()
* @generated
*/
- int BOOLEAN_LITERAL = 2;
+ int BOOLEAN_LITERAL = 9;
/**
* The feature id for the '<em><b>Is True</b></em>' attribute.
@@ -139,7 +426,7 @@ public interface BasePackage extends EPackage
* @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getNumberLiteral()
* @generated
*/
- int NUMBER_LITERAL = 3;
+ int NUMBER_LITERAL = 10;
/**
* The number of structural features of the '<em>Number Literal</em>' class.
@@ -158,7 +445,7 @@ public interface BasePackage extends EPackage
* @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getRealLiteral()
* @generated
*/
- int REAL_LITERAL = 4;
+ int REAL_LITERAL = 11;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
@@ -186,7 +473,7 @@ public interface BasePackage extends EPackage
* @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getIntLiteral()
* @generated
*/
- int INT_LITERAL = 5;
+ int INT_LITERAL = 12;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
@@ -214,7 +501,7 @@ public interface BasePackage extends EPackage
* @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getStringLiteral()
* @generated
*/
- int STRING_LITERAL = 6;
+ int STRING_LITERAL = 13;
/**
* The feature id for the '<em><b>Value</b></em>' attribute.
@@ -234,6 +521,229 @@ public interface BasePackage extends EPackage
*/
int STRING_LITERAL_FEATURE_COUNT = LITERAL_FEATURE_COUNT + 1;
+ /**
+ * The meta object id for the '{@link org.eclipse.etrice.core.common.base.LiteralType <em>Literal Type</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.etrice.core.common.base.LiteralType
+ * @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getLiteralType()
+ * @generated
+ */
+ int LITERAL_TYPE = 14;
+
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.etrice.core.common.base.Annotation <em>Annotation</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Annotation</em>'.
+ * @see org.eclipse.etrice.core.common.base.Annotation
+ * @generated
+ */
+ EClass getAnnotation();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.etrice.core.common.base.Annotation#getType <em>Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Type</em>'.
+ * @see org.eclipse.etrice.core.common.base.Annotation#getType()
+ * @see #getAnnotation()
+ * @generated
+ */
+ EReference getAnnotation_Type();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.etrice.core.common.base.Annotation#getAttributes <em>Attributes</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Attributes</em>'.
+ * @see org.eclipse.etrice.core.common.base.Annotation#getAttributes()
+ * @see #getAnnotation()
+ * @generated
+ */
+ EReference getAnnotation_Attributes();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.etrice.core.common.base.KeyValue <em>Key Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Key Value</em>'.
+ * @see org.eclipse.etrice.core.common.base.KeyValue
+ * @generated
+ */
+ EClass getKeyValue();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.etrice.core.common.base.KeyValue#getKey <em>Key</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Key</em>'.
+ * @see org.eclipse.etrice.core.common.base.KeyValue#getKey()
+ * @see #getKeyValue()
+ * @generated
+ */
+ EAttribute getKeyValue_Key();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.etrice.core.common.base.KeyValue#getValue <em>Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Value</em>'.
+ * @see org.eclipse.etrice.core.common.base.KeyValue#getValue()
+ * @see #getKeyValue()
+ * @generated
+ */
+ EReference getKeyValue_Value();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.etrice.core.common.base.AnnotationType <em>Annotation Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Annotation Type</em>'.
+ * @see org.eclipse.etrice.core.common.base.AnnotationType
+ * @generated
+ */
+ EClass getAnnotationType();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.etrice.core.common.base.AnnotationType#getName <em>Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.etrice.core.common.base.AnnotationType#getName()
+ * @see #getAnnotationType()
+ * @generated
+ */
+ EAttribute getAnnotationType_Name();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.etrice.core.common.base.AnnotationType#getDocu <em>Docu</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Docu</em>'.
+ * @see org.eclipse.etrice.core.common.base.AnnotationType#getDocu()
+ * @see #getAnnotationType()
+ * @generated
+ */
+ EReference getAnnotationType_Docu();
+
+ /**
+ * Returns the meta object for the attribute list '{@link org.eclipse.etrice.core.common.base.AnnotationType#getTargets <em>Targets</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute list '<em>Targets</em>'.
+ * @see org.eclipse.etrice.core.common.base.AnnotationType#getTargets()
+ * @see #getAnnotationType()
+ * @generated
+ */
+ EAttribute getAnnotationType_Targets();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.etrice.core.common.base.AnnotationType#getAttributes <em>Attributes</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Attributes</em>'.
+ * @see org.eclipse.etrice.core.common.base.AnnotationType#getAttributes()
+ * @see #getAnnotationType()
+ * @generated
+ */
+ EReference getAnnotationType_Attributes();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.etrice.core.common.base.AnnotationAttribute <em>Annotation Attribute</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Annotation Attribute</em>'.
+ * @see org.eclipse.etrice.core.common.base.AnnotationAttribute
+ * @generated
+ */
+ EClass getAnnotationAttribute();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.etrice.core.common.base.AnnotationAttribute#isOptional <em>Optional</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Optional</em>'.
+ * @see org.eclipse.etrice.core.common.base.AnnotationAttribute#isOptional()
+ * @see #getAnnotationAttribute()
+ * @generated
+ */
+ EAttribute getAnnotationAttribute_Optional();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.etrice.core.common.base.AnnotationAttribute#getName <em>Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.etrice.core.common.base.AnnotationAttribute#getName()
+ * @see #getAnnotationAttribute()
+ * @generated
+ */
+ EAttribute getAnnotationAttribute_Name();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.etrice.core.common.base.SimpleAnnotationAttribute <em>Simple Annotation Attribute</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Simple Annotation Attribute</em>'.
+ * @see org.eclipse.etrice.core.common.base.SimpleAnnotationAttribute
+ * @generated
+ */
+ EClass getSimpleAnnotationAttribute();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.etrice.core.common.base.SimpleAnnotationAttribute#getType <em>Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Type</em>'.
+ * @see org.eclipse.etrice.core.common.base.SimpleAnnotationAttribute#getType()
+ * @see #getSimpleAnnotationAttribute()
+ * @generated
+ */
+ EAttribute getSimpleAnnotationAttribute_Type();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.etrice.core.common.base.EnumAnnotationAttribute <em>Enum Annotation Attribute</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Enum Annotation Attribute</em>'.
+ * @see org.eclipse.etrice.core.common.base.EnumAnnotationAttribute
+ * @generated
+ */
+ EClass getEnumAnnotationAttribute();
+
+ /**
+ * Returns the meta object for the attribute list '{@link org.eclipse.etrice.core.common.base.EnumAnnotationAttribute#getValues <em>Values</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute list '<em>Values</em>'.
+ * @see org.eclipse.etrice.core.common.base.EnumAnnotationAttribute#getValues()
+ * @see #getEnumAnnotationAttribute()
+ * @generated
+ */
+ EAttribute getEnumAnnotationAttribute_Values();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.etrice.core.common.base.Documentation <em>Documentation</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Documentation</em>'.
+ * @see org.eclipse.etrice.core.common.base.Documentation
+ * @generated
+ */
+ EClass getDocumentation();
+
+ /**
+ * Returns the meta object for the attribute list '{@link org.eclipse.etrice.core.common.base.Documentation#getLines <em>Lines</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute list '<em>Lines</em>'.
+ * @see org.eclipse.etrice.core.common.base.Documentation#getLines()
+ * @see #getDocumentation()
+ * @generated
+ */
+ EAttribute getDocumentation_Lines();
/**
* Returns the meta object for class '{@link org.eclipse.etrice.core.common.base.LiteralArray <em>Literal Array</em>}'.
@@ -361,6 +871,16 @@ public interface BasePackage extends EPackage
EAttribute getStringLiteral_Value();
/**
+ * Returns the meta object for enum '{@link org.eclipse.etrice.core.common.base.LiteralType <em>Literal Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>Literal Type</em>'.
+ * @see org.eclipse.etrice.core.common.base.LiteralType
+ * @generated
+ */
+ EEnum getLiteralType();
+
+ /**
* Returns the factory that creates the instances of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -384,6 +904,180 @@ public interface BasePackage extends EPackage
interface Literals
{
/**
+ * The meta object literal for the '{@link org.eclipse.etrice.core.common.base.impl.AnnotationImpl <em>Annotation</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.etrice.core.common.base.impl.AnnotationImpl
+ * @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getAnnotation()
+ * @generated
+ */
+ EClass ANNOTATION = eINSTANCE.getAnnotation();
+
+ /**
+ * The meta object literal for the '<em><b>Type</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference ANNOTATION__TYPE = eINSTANCE.getAnnotation_Type();
+
+ /**
+ * The meta object literal for the '<em><b>Attributes</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference ANNOTATION__ATTRIBUTES = eINSTANCE.getAnnotation_Attributes();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.etrice.core.common.base.impl.KeyValueImpl <em>Key Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.etrice.core.common.base.impl.KeyValueImpl
+ * @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getKeyValue()
+ * @generated
+ */
+ EClass KEY_VALUE = eINSTANCE.getKeyValue();
+
+ /**
+ * The meta object literal for the '<em><b>Key</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute KEY_VALUE__KEY = eINSTANCE.getKeyValue_Key();
+
+ /**
+ * The meta object literal for the '<em><b>Value</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference KEY_VALUE__VALUE = eINSTANCE.getKeyValue_Value();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.etrice.core.common.base.impl.AnnotationTypeImpl <em>Annotation Type</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.etrice.core.common.base.impl.AnnotationTypeImpl
+ * @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getAnnotationType()
+ * @generated
+ */
+ EClass ANNOTATION_TYPE = eINSTANCE.getAnnotationType();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ANNOTATION_TYPE__NAME = eINSTANCE.getAnnotationType_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Docu</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference ANNOTATION_TYPE__DOCU = eINSTANCE.getAnnotationType_Docu();
+
+ /**
+ * The meta object literal for the '<em><b>Targets</b></em>' attribute list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ANNOTATION_TYPE__TARGETS = eINSTANCE.getAnnotationType_Targets();
+
+ /**
+ * The meta object literal for the '<em><b>Attributes</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference ANNOTATION_TYPE__ATTRIBUTES = eINSTANCE.getAnnotationType_Attributes();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.etrice.core.common.base.impl.AnnotationAttributeImpl <em>Annotation Attribute</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.etrice.core.common.base.impl.AnnotationAttributeImpl
+ * @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getAnnotationAttribute()
+ * @generated
+ */
+ EClass ANNOTATION_ATTRIBUTE = eINSTANCE.getAnnotationAttribute();
+
+ /**
+ * The meta object literal for the '<em><b>Optional</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ANNOTATION_ATTRIBUTE__OPTIONAL = eINSTANCE.getAnnotationAttribute_Optional();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ANNOTATION_ATTRIBUTE__NAME = eINSTANCE.getAnnotationAttribute_Name();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.etrice.core.common.base.impl.SimpleAnnotationAttributeImpl <em>Simple Annotation Attribute</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.etrice.core.common.base.impl.SimpleAnnotationAttributeImpl
+ * @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getSimpleAnnotationAttribute()
+ * @generated
+ */
+ EClass SIMPLE_ANNOTATION_ATTRIBUTE = eINSTANCE.getSimpleAnnotationAttribute();
+
+ /**
+ * The meta object literal for the '<em><b>Type</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute SIMPLE_ANNOTATION_ATTRIBUTE__TYPE = eINSTANCE.getSimpleAnnotationAttribute_Type();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.etrice.core.common.base.impl.EnumAnnotationAttributeImpl <em>Enum Annotation Attribute</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.etrice.core.common.base.impl.EnumAnnotationAttributeImpl
+ * @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getEnumAnnotationAttribute()
+ * @generated
+ */
+ EClass ENUM_ANNOTATION_ATTRIBUTE = eINSTANCE.getEnumAnnotationAttribute();
+
+ /**
+ * The meta object literal for the '<em><b>Values</b></em>' attribute list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ENUM_ANNOTATION_ATTRIBUTE__VALUES = eINSTANCE.getEnumAnnotationAttribute_Values();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.etrice.core.common.base.impl.DocumentationImpl <em>Documentation</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.etrice.core.common.base.impl.DocumentationImpl
+ * @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getDocumentation()
+ * @generated
+ */
+ EClass DOCUMENTATION = eINSTANCE.getDocumentation();
+
+ /**
+ * The meta object literal for the '<em><b>Lines</b></em>' attribute list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute DOCUMENTATION__LINES = eINSTANCE.getDocumentation_Lines();
+
+ /**
* The meta object literal for the '{@link org.eclipse.etrice.core.common.base.impl.LiteralArrayImpl <em>Literal Array</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -493,6 +1187,16 @@ public interface BasePackage extends EPackage
*/
EAttribute STRING_LITERAL__VALUE = eINSTANCE.getStringLiteral_Value();
+ /**
+ * The meta object literal for the '{@link org.eclipse.etrice.core.common.base.LiteralType <em>Literal Type</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.etrice.core.common.base.LiteralType
+ * @see org.eclipse.etrice.core.common.base.impl.BasePackageImpl#getLiteralType()
+ * @generated
+ */
+ EEnum LITERAL_TYPE = eINSTANCE.getLiteralType();
+
}
} //BasePackage
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/Documentation.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/Documentation.java
new file mode 100644
index 000000000..d4c9a4655
--- /dev/null
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/Documentation.java
@@ -0,0 +1,49 @@
+/**
+ */
+package org.eclipse.etrice.core.common.base;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Documentation</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ * <br>A piece of documentation that can be optionally attached at
+ * certain places in the model.
+ *
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.etrice.core.common.base.Documentation#getLines <em>Lines</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getDocumentation()
+ * @model
+ * @generated
+ */
+public interface Documentation extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Lines</b></em>' attribute list.
+ * The list contents are of type {@link java.lang.String}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * <br>This is the documentation's contents.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Lines</em>' attribute list.
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getDocumentation_Lines()
+ * @model unique="false"
+ * @generated
+ */
+ EList<String> getLines();
+
+} // Documentation
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/EnumAnnotationAttribute.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/EnumAnnotationAttribute.java
new file mode 100644
index 000000000..34131be03
--- /dev/null
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/EnumAnnotationAttribute.java
@@ -0,0 +1,45 @@
+/**
+ */
+package org.eclipse.etrice.core.common.base;
+
+import org.eclipse.emf.common.util.EList;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Enum Annotation Attribute</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ * <br>An {@link AnnotationAttribute} whose possible values are defined
+ * by a list of String values.
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.etrice.core.common.base.EnumAnnotationAttribute#getValues <em>Values</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getEnumAnnotationAttribute()
+ * @model
+ * @generated
+ */
+public interface EnumAnnotationAttribute extends AnnotationAttribute
+{
+ /**
+ * Returns the value of the '<em><b>Values</b></em>' attribute list.
+ * The list contents are of type {@link java.lang.String}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * <br>A list of values that define the enumeration
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Values</em>' attribute list.
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getEnumAnnotationAttribute_Values()
+ * @model unique="false"
+ * @generated
+ */
+ EList<String> getValues();
+
+} // EnumAnnotationAttribute
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/KeyValue.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/KeyValue.java
new file mode 100644
index 000000000..69f8ac0b3
--- /dev/null
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/KeyValue.java
@@ -0,0 +1,83 @@
+/**
+ */
+package org.eclipse.etrice.core.common.base;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Key Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ * <br>A key/value pair.
+ *
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.etrice.core.common.base.KeyValue#getKey <em>Key</em>}</li>
+ * <li>{@link org.eclipse.etrice.core.common.base.KeyValue#getValue <em>Value</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getKeyValue()
+ * @model
+ * @generated
+ */
+public interface KeyValue extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Key</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * <br>This is the key of the pair.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Key</em>' attribute.
+ * @see #setKey(String)
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getKeyValue_Key()
+ * @model
+ * @generated
+ */
+ String getKey();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.etrice.core.common.base.KeyValue#getKey <em>Key</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Key</em>' attribute.
+ * @see #getKey()
+ * @generated
+ */
+ void setKey(String value);
+
+ /**
+ * Returns the value of the '<em><b>Value</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * <br>This is the value of the pair.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Value</em>' containment reference.
+ * @see #setValue(Literal)
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getKeyValue_Value()
+ * @model containment="true"
+ * @generated
+ */
+ Literal getValue();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.etrice.core.common.base.KeyValue#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(Literal value);
+
+} // KeyValue
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/LiteralType.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/LiteralType.java
new file mode 100644
index 000000000..f62f1195c
--- /dev/null
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/LiteralType.java
@@ -0,0 +1,277 @@
+/**
+ */
+package org.eclipse.etrice.core.common.base;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>Literal Type</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getLiteralType()
+ * @model
+ * @generated
+ */
+public enum LiteralType implements Enumerator
+{
+ /**
+ * The '<em><b>BOOL</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #BOOL_VALUE
+ * @generated
+ * @ordered
+ */
+ BOOL(0, "BOOL", "ptBoolean"),
+
+ /**
+ * The '<em><b>INT</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #INT_VALUE
+ * @generated
+ * @ordered
+ */
+ INT(1, "INT", "ptInteger"),
+
+ /**
+ * The '<em><b>REAL</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #REAL_VALUE
+ * @generated
+ * @ordered
+ */
+ REAL(2, "REAL", "ptReal"),
+
+ /**
+ * The '<em><b>CHAR</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #CHAR_VALUE
+ * @generated
+ * @ordered
+ */
+ CHAR(3, "CHAR", "ptCharacter");
+
+ /**
+ * The '<em><b>BOOL</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>BOOL</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #BOOL
+ * @model literal="ptBoolean"
+ * @generated
+ * @ordered
+ */
+ public static final int BOOL_VALUE = 0;
+
+ /**
+ * The '<em><b>INT</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>INT</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #INT
+ * @model literal="ptInteger"
+ * @generated
+ * @ordered
+ */
+ public static final int INT_VALUE = 1;
+
+ /**
+ * The '<em><b>REAL</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>REAL</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #REAL
+ * @model literal="ptReal"
+ * @generated
+ * @ordered
+ */
+ public static final int REAL_VALUE = 2;
+
+ /**
+ * The '<em><b>CHAR</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>CHAR</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #CHAR
+ * @model literal="ptCharacter"
+ * @generated
+ * @ordered
+ */
+ public static final int CHAR_VALUE = 3;
+
+ /**
+ * An array of all the '<em><b>Literal Type</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final LiteralType[] VALUES_ARRAY =
+ new LiteralType[]
+ {
+ BOOL,
+ INT,
+ REAL,
+ CHAR,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>Literal Type</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<LiteralType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Literal Type</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static LiteralType get(String literal)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ LiteralType result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Literal Type</b></em>' literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static LiteralType getByName(String name)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ LiteralType result = VALUES_ARRAY[i];
+ if (result.getName().equals(name))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Literal Type</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static LiteralType get(int value)
+ {
+ switch (value)
+ {
+ case BOOL_VALUE: return BOOL;
+ case INT_VALUE: return INT;
+ case REAL_VALUE: return REAL;
+ case CHAR_VALUE: return CHAR;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private LiteralType(int value, String name, String literal)
+ {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue()
+ {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteral()
+ {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ return literal;
+ }
+
+} //LiteralType
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/SimpleAnnotationAttribute.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/SimpleAnnotationAttribute.java
new file mode 100644
index 000000000..a7483dc97
--- /dev/null
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/SimpleAnnotationAttribute.java
@@ -0,0 +1,57 @@
+/**
+ */
+package org.eclipse.etrice.core.common.base;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Simple Annotation Attribute</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ * <br>An {@link AnnotationAttribute} that is associated with a
+ * {@link LiteralType}.
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.etrice.core.common.base.SimpleAnnotationAttribute#getType <em>Type</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getSimpleAnnotationAttribute()
+ * @model
+ * @generated
+ */
+public interface SimpleAnnotationAttribute extends AnnotationAttribute
+{
+ /**
+ * Returns the value of the '<em><b>Type</b></em>' attribute.
+ * The literals are from the enumeration {@link org.eclipse.etrice.core.common.base.LiteralType}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * <br>The type of the attribute
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Type</em>' attribute.
+ * @see org.eclipse.etrice.core.common.base.LiteralType
+ * @see #setType(LiteralType)
+ * @see org.eclipse.etrice.core.common.base.BasePackage#getSimpleAnnotationAttribute_Type()
+ * @model
+ * @generated
+ */
+ LiteralType getType();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.etrice.core.common.base.SimpleAnnotationAttribute#getType <em>Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Type</em>' attribute.
+ * @see org.eclipse.etrice.core.common.base.LiteralType
+ * @see #getType()
+ * @generated
+ */
+ void setType(LiteralType value);
+
+} // SimpleAnnotationAttribute
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/AnnotationAttributeImpl.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/AnnotationAttributeImpl.java
new file mode 100644
index 000000000..d89ebcdf2
--- /dev/null
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/AnnotationAttributeImpl.java
@@ -0,0 +1,233 @@
+/**
+ */
+package org.eclipse.etrice.core.common.base.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.etrice.core.common.base.AnnotationAttribute;
+import org.eclipse.etrice.core.common.base.BasePackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Annotation Attribute</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.etrice.core.common.base.impl.AnnotationAttributeImpl#isOptional <em>Optional</em>}</li>
+ * <li>{@link org.eclipse.etrice.core.common.base.impl.AnnotationAttributeImpl#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class AnnotationAttributeImpl extends MinimalEObjectImpl.Container implements AnnotationAttribute
+{
+ /**
+ * The default value of the '{@link #isOptional() <em>Optional</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isOptional()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean OPTIONAL_EDEFAULT = false;
+
+ /**
+ * The cached value of the '{@link #isOptional() <em>Optional</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isOptional()
+ * @generated
+ * @ordered
+ */
+ protected boolean optional = OPTIONAL_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected AnnotationAttributeImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return BasePackage.Literals.ANNOTATION_ATTRIBUTE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isOptional()
+ {
+ return optional;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setOptional(boolean newOptional)
+ {
+ boolean oldOptional = optional;
+ optional = newOptional;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, BasePackage.ANNOTATION_ATTRIBUTE__OPTIONAL, oldOptional, optional));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, BasePackage.ANNOTATION_ATTRIBUTE__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case BasePackage.ANNOTATION_ATTRIBUTE__OPTIONAL:
+ return isOptional();
+ case BasePackage.ANNOTATION_ATTRIBUTE__NAME:
+ return getName();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case BasePackage.ANNOTATION_ATTRIBUTE__OPTIONAL:
+ setOptional((Boolean)newValue);
+ return;
+ case BasePackage.ANNOTATION_ATTRIBUTE__NAME:
+ setName((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case BasePackage.ANNOTATION_ATTRIBUTE__OPTIONAL:
+ setOptional(OPTIONAL_EDEFAULT);
+ return;
+ case BasePackage.ANNOTATION_ATTRIBUTE__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case BasePackage.ANNOTATION_ATTRIBUTE__OPTIONAL:
+ return optional != OPTIONAL_EDEFAULT;
+ case BasePackage.ANNOTATION_ATTRIBUTE__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (optional: ");
+ result.append(optional);
+ result.append(", name: ");
+ result.append(name);
+ result.append(')');
+ return result.toString();
+ }
+
+} //AnnotationAttributeImpl
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/AnnotationImpl.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/AnnotationImpl.java
new file mode 100644
index 000000000..c0c5cf92b
--- /dev/null
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/AnnotationImpl.java
@@ -0,0 +1,235 @@
+/**
+ */
+package org.eclipse.etrice.core.common.base.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+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.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.etrice.core.common.base.Annotation;
+import org.eclipse.etrice.core.common.base.AnnotationType;
+import org.eclipse.etrice.core.common.base.BasePackage;
+import org.eclipse.etrice.core.common.base.KeyValue;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Annotation</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.etrice.core.common.base.impl.AnnotationImpl#getType <em>Type</em>}</li>
+ * <li>{@link org.eclipse.etrice.core.common.base.impl.AnnotationImpl#getAttributes <em>Attributes</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class AnnotationImpl extends MinimalEObjectImpl.Container implements Annotation
+{
+ /**
+ * The cached value of the '{@link #getType() <em>Type</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected AnnotationType type;
+
+ /**
+ * The cached value of the '{@link #getAttributes() <em>Attributes</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAttributes()
+ * @generated
+ * @ordered
+ */
+ protected EList<KeyValue> attributes;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected AnnotationImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return BasePackage.Literals.ANNOTATION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public AnnotationType getType()
+ {
+ if (type != null && type.eIsProxy())
+ {
+ InternalEObject oldType = (InternalEObject)type;
+ type = (AnnotationType)eResolveProxy(oldType);
+ if (type != oldType)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, BasePackage.ANNOTATION__TYPE, oldType, type));
+ }
+ }
+ return type;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public AnnotationType basicGetType()
+ {
+ return type;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setType(AnnotationType newType)
+ {
+ AnnotationType oldType = type;
+ type = newType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, BasePackage.ANNOTATION__TYPE, oldType, type));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<KeyValue> getAttributes()
+ {
+ if (attributes == null)
+ {
+ attributes = new EObjectContainmentEList<KeyValue>(KeyValue.class, this, BasePackage.ANNOTATION__ATTRIBUTES);
+ }
+ return attributes;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case BasePackage.ANNOTATION__ATTRIBUTES:
+ return ((InternalEList<?>)getAttributes()).basicRemove(otherEnd, 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 BasePackage.ANNOTATION__TYPE:
+ if (resolve) return getType();
+ return basicGetType();
+ case BasePackage.ANNOTATION__ATTRIBUTES:
+ return getAttributes();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case BasePackage.ANNOTATION__TYPE:
+ setType((AnnotationType)newValue);
+ return;
+ case BasePackage.ANNOTATION__ATTRIBUTES:
+ getAttributes().clear();
+ getAttributes().addAll((Collection<? extends KeyValue>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case BasePackage.ANNOTATION__TYPE:
+ setType((AnnotationType)null);
+ return;
+ case BasePackage.ANNOTATION__ATTRIBUTES:
+ getAttributes().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case BasePackage.ANNOTATION__TYPE:
+ return type != null;
+ case BasePackage.ANNOTATION__ATTRIBUTES:
+ return attributes != null && !attributes.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //AnnotationImpl
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/AnnotationTypeImpl.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/AnnotationTypeImpl.java
new file mode 100644
index 000000000..5735c26e7
--- /dev/null
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/AnnotationTypeImpl.java
@@ -0,0 +1,351 @@
+/**
+ */
+package org.eclipse.etrice.core.common.base.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+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.emf.ecore.util.EDataTypeEList;
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.etrice.core.common.base.AnnotationAttribute;
+import org.eclipse.etrice.core.common.base.AnnotationType;
+import org.eclipse.etrice.core.common.base.BasePackage;
+import org.eclipse.etrice.core.common.base.Documentation;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Annotation Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.etrice.core.common.base.impl.AnnotationTypeImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.etrice.core.common.base.impl.AnnotationTypeImpl#getDocu <em>Docu</em>}</li>
+ * <li>{@link org.eclipse.etrice.core.common.base.impl.AnnotationTypeImpl#getTargets <em>Targets</em>}</li>
+ * <li>{@link org.eclipse.etrice.core.common.base.impl.AnnotationTypeImpl#getAttributes <em>Attributes</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class AnnotationTypeImpl extends MinimalEObjectImpl.Container implements AnnotationType
+{
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getDocu() <em>Docu</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDocu()
+ * @generated
+ * @ordered
+ */
+ protected Documentation docu;
+
+ /**
+ * The cached value of the '{@link #getTargets() <em>Targets</em>}' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTargets()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> targets;
+
+ /**
+ * The cached value of the '{@link #getAttributes() <em>Attributes</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAttributes()
+ * @generated
+ * @ordered
+ */
+ protected EList<AnnotationAttribute> attributes;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected AnnotationTypeImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return BasePackage.Literals.ANNOTATION_TYPE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, BasePackage.ANNOTATION_TYPE__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Documentation getDocu()
+ {
+ return docu;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetDocu(Documentation newDocu, NotificationChain msgs)
+ {
+ Documentation oldDocu = docu;
+ docu = newDocu;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BasePackage.ANNOTATION_TYPE__DOCU, oldDocu, newDocu);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDocu(Documentation newDocu)
+ {
+ if (newDocu != docu)
+ {
+ NotificationChain msgs = null;
+ if (docu != null)
+ msgs = ((InternalEObject)docu).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - BasePackage.ANNOTATION_TYPE__DOCU, null, msgs);
+ if (newDocu != null)
+ msgs = ((InternalEObject)newDocu).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - BasePackage.ANNOTATION_TYPE__DOCU, null, msgs);
+ msgs = basicSetDocu(newDocu, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, BasePackage.ANNOTATION_TYPE__DOCU, newDocu, newDocu));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<String> getTargets()
+ {
+ if (targets == null)
+ {
+ targets = new EDataTypeEList<String>(String.class, this, BasePackage.ANNOTATION_TYPE__TARGETS);
+ }
+ return targets;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<AnnotationAttribute> getAttributes()
+ {
+ if (attributes == null)
+ {
+ attributes = new EObjectContainmentEList<AnnotationAttribute>(AnnotationAttribute.class, this, BasePackage.ANNOTATION_TYPE__ATTRIBUTES);
+ }
+ return attributes;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case BasePackage.ANNOTATION_TYPE__DOCU:
+ return basicSetDocu(null, msgs);
+ case BasePackage.ANNOTATION_TYPE__ATTRIBUTES:
+ return ((InternalEList<?>)getAttributes()).basicRemove(otherEnd, 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 BasePackage.ANNOTATION_TYPE__NAME:
+ return getName();
+ case BasePackage.ANNOTATION_TYPE__DOCU:
+ return getDocu();
+ case BasePackage.ANNOTATION_TYPE__TARGETS:
+ return getTargets();
+ case BasePackage.ANNOTATION_TYPE__ATTRIBUTES:
+ return getAttributes();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case BasePackage.ANNOTATION_TYPE__NAME:
+ setName((String)newValue);
+ return;
+ case BasePackage.ANNOTATION_TYPE__DOCU:
+ setDocu((Documentation)newValue);
+ return;
+ case BasePackage.ANNOTATION_TYPE__TARGETS:
+ getTargets().clear();
+ getTargets().addAll((Collection<? extends String>)newValue);
+ return;
+ case BasePackage.ANNOTATION_TYPE__ATTRIBUTES:
+ getAttributes().clear();
+ getAttributes().addAll((Collection<? extends AnnotationAttribute>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case BasePackage.ANNOTATION_TYPE__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case BasePackage.ANNOTATION_TYPE__DOCU:
+ setDocu((Documentation)null);
+ return;
+ case BasePackage.ANNOTATION_TYPE__TARGETS:
+ getTargets().clear();
+ return;
+ case BasePackage.ANNOTATION_TYPE__ATTRIBUTES:
+ getAttributes().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case BasePackage.ANNOTATION_TYPE__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case BasePackage.ANNOTATION_TYPE__DOCU:
+ return docu != null;
+ case BasePackage.ANNOTATION_TYPE__TARGETS:
+ return targets != null && !targets.isEmpty();
+ case BasePackage.ANNOTATION_TYPE__ATTRIBUTES:
+ return attributes != null && !attributes.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(", targets: ");
+ result.append(targets);
+ result.append(')');
+ return result.toString();
+ }
+
+} //AnnotationTypeImpl
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/BaseFactoryImpl.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/BaseFactoryImpl.java
index 5e624e853..d6cd1afe2 100644
--- a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/BaseFactoryImpl.java
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/BaseFactoryImpl.java
@@ -3,6 +3,7 @@
package org.eclipse.etrice.core.common.base.impl;
import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
@@ -64,6 +65,13 @@ public class BaseFactoryImpl extends EFactoryImpl implements BaseFactory
{
switch (eClass.getClassifierID())
{
+ case BasePackage.ANNOTATION: return createAnnotation();
+ case BasePackage.KEY_VALUE: return createKeyValue();
+ case BasePackage.ANNOTATION_TYPE: return createAnnotationType();
+ case BasePackage.ANNOTATION_ATTRIBUTE: return createAnnotationAttribute();
+ case BasePackage.SIMPLE_ANNOTATION_ATTRIBUTE: return createSimpleAnnotationAttribute();
+ case BasePackage.ENUM_ANNOTATION_ATTRIBUTE: return createEnumAnnotationAttribute();
+ case BasePackage.DOCUMENTATION: return createDocumentation();
case BasePackage.LITERAL_ARRAY: return createLiteralArray();
case BasePackage.LITERAL: return createLiteral();
case BasePackage.BOOLEAN_LITERAL: return createBooleanLiteral();
@@ -81,6 +89,117 @@ public class BaseFactoryImpl extends EFactoryImpl implements BaseFactory
* <!-- end-user-doc -->
* @generated
*/
+ @Override
+ public Object createFromString(EDataType eDataType, String initialValue)
+ {
+ switch (eDataType.getClassifierID())
+ {
+ case BasePackage.LITERAL_TYPE:
+ return createLiteralTypeFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String convertToString(EDataType eDataType, Object instanceValue)
+ {
+ switch (eDataType.getClassifierID())
+ {
+ case BasePackage.LITERAL_TYPE:
+ return convertLiteralTypeToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Annotation createAnnotation()
+ {
+ AnnotationImpl annotation = new AnnotationImpl();
+ return annotation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public KeyValue createKeyValue()
+ {
+ KeyValueImpl keyValue = new KeyValueImpl();
+ return keyValue;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public AnnotationType createAnnotationType()
+ {
+ AnnotationTypeImpl annotationType = new AnnotationTypeImpl();
+ return annotationType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public AnnotationAttribute createAnnotationAttribute()
+ {
+ AnnotationAttributeImpl annotationAttribute = new AnnotationAttributeImpl();
+ return annotationAttribute;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SimpleAnnotationAttribute createSimpleAnnotationAttribute()
+ {
+ SimpleAnnotationAttributeImpl simpleAnnotationAttribute = new SimpleAnnotationAttributeImpl();
+ return simpleAnnotationAttribute;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EnumAnnotationAttribute createEnumAnnotationAttribute()
+ {
+ EnumAnnotationAttributeImpl enumAnnotationAttribute = new EnumAnnotationAttributeImpl();
+ return enumAnnotationAttribute;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Documentation createDocumentation()
+ {
+ DocumentationImpl documentation = new DocumentationImpl();
+ return documentation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
public LiteralArray createLiteralArray()
{
LiteralArrayImpl literalArray = new LiteralArrayImpl();
@@ -158,6 +277,28 @@ public class BaseFactoryImpl extends EFactoryImpl implements BaseFactory
* <!-- end-user-doc -->
* @generated
*/
+ public LiteralType createLiteralTypeFromString(EDataType eDataType, String initialValue)
+ {
+ LiteralType result = LiteralType.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertLiteralTypeToString(EDataType eDataType, Object instanceValue)
+ {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
public BasePackage getBasePackage()
{
return (BasePackage)getEPackage();
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/BasePackageImpl.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/BasePackageImpl.java
index eac11f36c..b26b09e99 100644
--- a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/BasePackageImpl.java
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/BasePackageImpl.java
@@ -4,19 +4,28 @@ package org.eclipse.etrice.core.common.base.impl;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
+import org.eclipse.etrice.core.common.base.Annotation;
+import org.eclipse.etrice.core.common.base.AnnotationAttribute;
+import org.eclipse.etrice.core.common.base.AnnotationType;
import org.eclipse.etrice.core.common.base.BaseFactory;
import org.eclipse.etrice.core.common.base.BasePackage;
import org.eclipse.etrice.core.common.base.BooleanLiteral;
+import org.eclipse.etrice.core.common.base.Documentation;
+import org.eclipse.etrice.core.common.base.EnumAnnotationAttribute;
import org.eclipse.etrice.core.common.base.IntLiteral;
+import org.eclipse.etrice.core.common.base.KeyValue;
import org.eclipse.etrice.core.common.base.Literal;
import org.eclipse.etrice.core.common.base.LiteralArray;
+import org.eclipse.etrice.core.common.base.LiteralType;
import org.eclipse.etrice.core.common.base.NumberLiteral;
import org.eclipse.etrice.core.common.base.RealLiteral;
+import org.eclipse.etrice.core.common.base.SimpleAnnotationAttribute;
import org.eclipse.etrice.core.common.base.StringLiteral;
/**
@@ -32,6 +41,55 @@ public class BasePackageImpl extends EPackageImpl implements BasePackage
* <!-- end-user-doc -->
* @generated
*/
+ private EClass annotationEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass keyValueEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass annotationTypeEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass annotationAttributeEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass simpleAnnotationAttributeEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass enumAnnotationAttributeEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass documentationEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
private EClass literalArrayEClass = null;
/**
@@ -77,6 +135,13 @@ public class BasePackageImpl extends EPackageImpl implements BasePackage
private EClass stringLiteralEClass = null;
/**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum literalTypeEEnum = 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.
@@ -144,6 +209,206 @@ public class BasePackageImpl extends EPackageImpl implements BasePackage
* <!-- end-user-doc -->
* @generated
*/
+ public EClass getAnnotation()
+ {
+ return annotationEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getAnnotation_Type()
+ {
+ return (EReference)annotationEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getAnnotation_Attributes()
+ {
+ return (EReference)annotationEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getKeyValue()
+ {
+ return keyValueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getKeyValue_Key()
+ {
+ return (EAttribute)keyValueEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getKeyValue_Value()
+ {
+ return (EReference)keyValueEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getAnnotationType()
+ {
+ return annotationTypeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getAnnotationType_Name()
+ {
+ return (EAttribute)annotationTypeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getAnnotationType_Docu()
+ {
+ return (EReference)annotationTypeEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getAnnotationType_Targets()
+ {
+ return (EAttribute)annotationTypeEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getAnnotationType_Attributes()
+ {
+ return (EReference)annotationTypeEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getAnnotationAttribute()
+ {
+ return annotationAttributeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getAnnotationAttribute_Optional()
+ {
+ return (EAttribute)annotationAttributeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getAnnotationAttribute_Name()
+ {
+ return (EAttribute)annotationAttributeEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getSimpleAnnotationAttribute()
+ {
+ return simpleAnnotationAttributeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSimpleAnnotationAttribute_Type()
+ {
+ return (EAttribute)simpleAnnotationAttributeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getEnumAnnotationAttribute()
+ {
+ return enumAnnotationAttributeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getEnumAnnotationAttribute_Values()
+ {
+ return (EAttribute)enumAnnotationAttributeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getDocumentation()
+ {
+ return documentationEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getDocumentation_Lines()
+ {
+ return (EAttribute)documentationEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
public EClass getLiteralArray()
{
return literalArrayEClass;
@@ -264,6 +529,16 @@ public class BasePackageImpl extends EPackageImpl implements BasePackage
* <!-- end-user-doc -->
* @generated
*/
+ public EEnum getLiteralType()
+ {
+ return literalTypeEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
public BaseFactory getBaseFactory()
{
return (BaseFactory)getEFactoryInstance();
@@ -289,6 +564,33 @@ public class BasePackageImpl extends EPackageImpl implements BasePackage
isCreated = true;
// Create classes and their features
+ annotationEClass = createEClass(ANNOTATION);
+ createEReference(annotationEClass, ANNOTATION__TYPE);
+ createEReference(annotationEClass, ANNOTATION__ATTRIBUTES);
+
+ keyValueEClass = createEClass(KEY_VALUE);
+ createEAttribute(keyValueEClass, KEY_VALUE__KEY);
+ createEReference(keyValueEClass, KEY_VALUE__VALUE);
+
+ annotationTypeEClass = createEClass(ANNOTATION_TYPE);
+ createEAttribute(annotationTypeEClass, ANNOTATION_TYPE__NAME);
+ createEReference(annotationTypeEClass, ANNOTATION_TYPE__DOCU);
+ createEAttribute(annotationTypeEClass, ANNOTATION_TYPE__TARGETS);
+ createEReference(annotationTypeEClass, ANNOTATION_TYPE__ATTRIBUTES);
+
+ annotationAttributeEClass = createEClass(ANNOTATION_ATTRIBUTE);
+ createEAttribute(annotationAttributeEClass, ANNOTATION_ATTRIBUTE__OPTIONAL);
+ createEAttribute(annotationAttributeEClass, ANNOTATION_ATTRIBUTE__NAME);
+
+ simpleAnnotationAttributeEClass = createEClass(SIMPLE_ANNOTATION_ATTRIBUTE);
+ createEAttribute(simpleAnnotationAttributeEClass, SIMPLE_ANNOTATION_ATTRIBUTE__TYPE);
+
+ enumAnnotationAttributeEClass = createEClass(ENUM_ANNOTATION_ATTRIBUTE);
+ createEAttribute(enumAnnotationAttributeEClass, ENUM_ANNOTATION_ATTRIBUTE__VALUES);
+
+ documentationEClass = createEClass(DOCUMENTATION);
+ createEAttribute(documentationEClass, DOCUMENTATION__LINES);
+
literalArrayEClass = createEClass(LITERAL_ARRAY);
createEReference(literalArrayEClass, LITERAL_ARRAY__LITERALS);
@@ -307,6 +609,9 @@ public class BasePackageImpl extends EPackageImpl implements BasePackage
stringLiteralEClass = createEClass(STRING_LITERAL);
createEAttribute(stringLiteralEClass, STRING_LITERAL__VALUE);
+
+ // Create enums
+ literalTypeEEnum = createEEnum(LITERAL_TYPE);
}
/**
@@ -338,6 +643,8 @@ public class BasePackageImpl extends EPackageImpl implements BasePackage
// Set bounds for type parameters
// Add supertypes to classes
+ simpleAnnotationAttributeEClass.getESuperTypes().add(this.getAnnotationAttribute());
+ enumAnnotationAttributeEClass.getESuperTypes().add(this.getAnnotationAttribute());
booleanLiteralEClass.getESuperTypes().add(this.getLiteral());
numberLiteralEClass.getESuperTypes().add(this.getLiteral());
realLiteralEClass.getESuperTypes().add(this.getNumberLiteral());
@@ -345,6 +652,33 @@ public class BasePackageImpl extends EPackageImpl implements BasePackage
stringLiteralEClass.getESuperTypes().add(this.getLiteral());
// Initialize classes and features; add operations and parameters
+ initEClass(annotationEClass, Annotation.class, "Annotation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getAnnotation_Type(), this.getAnnotationType(), null, "type", null, 0, 1, Annotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getAnnotation_Attributes(), this.getKeyValue(), null, "attributes", null, 0, -1, Annotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(keyValueEClass, KeyValue.class, "KeyValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getKeyValue_Key(), ecorePackage.getEString(), "key", null, 0, 1, KeyValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getKeyValue_Value(), this.getLiteral(), null, "value", null, 0, 1, KeyValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(annotationTypeEClass, AnnotationType.class, "AnnotationType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getAnnotationType_Name(), ecorePackage.getEString(), "name", null, 0, 1, AnnotationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getAnnotationType_Docu(), this.getDocumentation(), null, "docu", null, 0, 1, AnnotationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getAnnotationType_Targets(), ecorePackage.getEString(), "targets", null, 0, -1, AnnotationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getAnnotationType_Attributes(), this.getAnnotationAttribute(), null, "attributes", null, 0, -1, AnnotationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(annotationAttributeEClass, AnnotationAttribute.class, "AnnotationAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getAnnotationAttribute_Optional(), ecorePackage.getEBoolean(), "optional", null, 0, 1, AnnotationAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getAnnotationAttribute_Name(), ecorePackage.getEString(), "name", null, 0, 1, AnnotationAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(simpleAnnotationAttributeEClass, SimpleAnnotationAttribute.class, "SimpleAnnotationAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getSimpleAnnotationAttribute_Type(), this.getLiteralType(), "type", null, 0, 1, SimpleAnnotationAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(enumAnnotationAttributeEClass, EnumAnnotationAttribute.class, "EnumAnnotationAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getEnumAnnotationAttribute_Values(), ecorePackage.getEString(), "values", null, 0, -1, EnumAnnotationAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(documentationEClass, Documentation.class, "Documentation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getDocumentation_Lines(), ecorePackage.getEString(), "lines", null, 0, -1, Documentation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
initEClass(literalArrayEClass, LiteralArray.class, "LiteralArray", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getLiteralArray_Literals(), this.getLiteral(), null, "literals", null, 0, -1, LiteralArray.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
@@ -364,6 +698,13 @@ public class BasePackageImpl extends EPackageImpl implements BasePackage
initEClass(stringLiteralEClass, StringLiteral.class, "StringLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getStringLiteral_Value(), ecorePackage.getEString(), "value", null, 0, 1, StringLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ // Initialize enums and add enum literals
+ initEEnum(literalTypeEEnum, LiteralType.class, "LiteralType");
+ addEEnumLiteral(literalTypeEEnum, LiteralType.BOOL);
+ addEEnumLiteral(literalTypeEEnum, LiteralType.INT);
+ addEEnumLiteral(literalTypeEEnum, LiteralType.REAL);
+ addEEnumLiteral(literalTypeEEnum, LiteralType.CHAR);
+
// Create resource
createResource(eNS_URI);
}
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/DocumentationImpl.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/DocumentationImpl.java
new file mode 100644
index 000000000..4768e7f10
--- /dev/null
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/DocumentationImpl.java
@@ -0,0 +1,163 @@
+/**
+ */
+package org.eclipse.etrice.core.common.base.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.emf.ecore.util.EDataTypeEList;
+
+import org.eclipse.etrice.core.common.base.BasePackage;
+import org.eclipse.etrice.core.common.base.Documentation;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Documentation</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.etrice.core.common.base.impl.DocumentationImpl#getLines <em>Lines</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DocumentationImpl extends MinimalEObjectImpl.Container implements Documentation
+{
+ /**
+ * The cached value of the '{@link #getLines() <em>Lines</em>}' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLines()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> lines;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DocumentationImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return BasePackage.Literals.DOCUMENTATION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<String> getLines()
+ {
+ if (lines == null)
+ {
+ lines = new EDataTypeEList<String>(String.class, this, BasePackage.DOCUMENTATION__LINES);
+ }
+ return lines;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case BasePackage.DOCUMENTATION__LINES:
+ return getLines();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case BasePackage.DOCUMENTATION__LINES:
+ getLines().clear();
+ getLines().addAll((Collection<? extends String>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case BasePackage.DOCUMENTATION__LINES:
+ getLines().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case BasePackage.DOCUMENTATION__LINES:
+ return lines != null && !lines.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (lines: ");
+ result.append(lines);
+ result.append(')');
+ return result.toString();
+ }
+
+} //DocumentationImpl
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/EnumAnnotationAttributeImpl.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/EnumAnnotationAttributeImpl.java
new file mode 100644
index 000000000..ff0dcc690
--- /dev/null
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/EnumAnnotationAttributeImpl.java
@@ -0,0 +1,161 @@
+/**
+ */
+package org.eclipse.etrice.core.common.base.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.util.EDataTypeEList;
+
+import org.eclipse.etrice.core.common.base.BasePackage;
+import org.eclipse.etrice.core.common.base.EnumAnnotationAttribute;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Enum Annotation Attribute</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.etrice.core.common.base.impl.EnumAnnotationAttributeImpl#getValues <em>Values</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class EnumAnnotationAttributeImpl extends AnnotationAttributeImpl implements EnumAnnotationAttribute
+{
+ /**
+ * The cached value of the '{@link #getValues() <em>Values</em>}' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValues()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> values;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EnumAnnotationAttributeImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return BasePackage.Literals.ENUM_ANNOTATION_ATTRIBUTE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<String> getValues()
+ {
+ if (values == null)
+ {
+ values = new EDataTypeEList<String>(String.class, this, BasePackage.ENUM_ANNOTATION_ATTRIBUTE__VALUES);
+ }
+ return values;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case BasePackage.ENUM_ANNOTATION_ATTRIBUTE__VALUES:
+ return getValues();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case BasePackage.ENUM_ANNOTATION_ATTRIBUTE__VALUES:
+ getValues().clear();
+ getValues().addAll((Collection<? extends String>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case BasePackage.ENUM_ANNOTATION_ATTRIBUTE__VALUES:
+ getValues().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case BasePackage.ENUM_ANNOTATION_ATTRIBUTE__VALUES:
+ return values != null && !values.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (values: ");
+ result.append(values);
+ result.append(')');
+ return result.toString();
+ }
+
+} //EnumAnnotationAttributeImpl
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/KeyValueImpl.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/KeyValueImpl.java
new file mode 100644
index 000000000..8b9161d42
--- /dev/null
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/KeyValueImpl.java
@@ -0,0 +1,265 @@
+/**
+ */
+package org.eclipse.etrice.core.common.base.impl;
+
+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.etrice.core.common.base.BasePackage;
+import org.eclipse.etrice.core.common.base.KeyValue;
+import org.eclipse.etrice.core.common.base.Literal;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Key Value</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.etrice.core.common.base.impl.KeyValueImpl#getKey <em>Key</em>}</li>
+ * <li>{@link org.eclipse.etrice.core.common.base.impl.KeyValueImpl#getValue <em>Value</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class KeyValueImpl extends MinimalEObjectImpl.Container implements KeyValue
+{
+ /**
+ * The default value of the '{@link #getKey() <em>Key</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getKey()
+ * @generated
+ * @ordered
+ */
+ protected static final String KEY_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getKey() <em>Key</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getKey()
+ * @generated
+ * @ordered
+ */
+ protected String key = KEY_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getValue() <em>Value</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected Literal value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected KeyValueImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return BasePackage.Literals.KEY_VALUE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getKey()
+ {
+ return key;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setKey(String newKey)
+ {
+ String oldKey = key;
+ key = newKey;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, BasePackage.KEY_VALUE__KEY, oldKey, key));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Literal getValue()
+ {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetValue(Literal newValue, NotificationChain msgs)
+ {
+ Literal oldValue = value;
+ value = newValue;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BasePackage.KEY_VALUE__VALUE, oldValue, newValue);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setValue(Literal newValue)
+ {
+ if (newValue != value)
+ {
+ NotificationChain msgs = null;
+ if (value != null)
+ msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - BasePackage.KEY_VALUE__VALUE, null, msgs);
+ if (newValue != null)
+ msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - BasePackage.KEY_VALUE__VALUE, null, msgs);
+ msgs = basicSetValue(newValue, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, BasePackage.KEY_VALUE__VALUE, newValue, newValue));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case BasePackage.KEY_VALUE__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 BasePackage.KEY_VALUE__KEY:
+ return getKey();
+ case BasePackage.KEY_VALUE__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 BasePackage.KEY_VALUE__KEY:
+ setKey((String)newValue);
+ return;
+ case BasePackage.KEY_VALUE__VALUE:
+ setValue((Literal)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case BasePackage.KEY_VALUE__KEY:
+ setKey(KEY_EDEFAULT);
+ return;
+ case BasePackage.KEY_VALUE__VALUE:
+ setValue((Literal)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case BasePackage.KEY_VALUE__KEY:
+ return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key);
+ case BasePackage.KEY_VALUE__VALUE:
+ return value != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (key: ");
+ result.append(key);
+ result.append(')');
+ return result.toString();
+ }
+
+} //KeyValueImpl
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/SimpleAnnotationAttributeImpl.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/SimpleAnnotationAttributeImpl.java
new file mode 100644
index 000000000..426775310
--- /dev/null
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/SimpleAnnotationAttributeImpl.java
@@ -0,0 +1,177 @@
+/**
+ */
+package org.eclipse.etrice.core.common.base.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.etrice.core.common.base.BasePackage;
+import org.eclipse.etrice.core.common.base.LiteralType;
+import org.eclipse.etrice.core.common.base.SimpleAnnotationAttribute;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Simple Annotation Attribute</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.etrice.core.common.base.impl.SimpleAnnotationAttributeImpl#getType <em>Type</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class SimpleAnnotationAttributeImpl extends AnnotationAttributeImpl implements SimpleAnnotationAttribute
+{
+ /**
+ * The default value of the '{@link #getType() <em>Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected static final LiteralType TYPE_EDEFAULT = LiteralType.BOOL;
+
+ /**
+ * The cached value of the '{@link #getType() <em>Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected LiteralType type = TYPE_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected SimpleAnnotationAttributeImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return BasePackage.Literals.SIMPLE_ANNOTATION_ATTRIBUTE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public LiteralType getType()
+ {
+ return type;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setType(LiteralType newType)
+ {
+ LiteralType oldType = type;
+ type = newType == null ? TYPE_EDEFAULT : newType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, BasePackage.SIMPLE_ANNOTATION_ATTRIBUTE__TYPE, oldType, type));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case BasePackage.SIMPLE_ANNOTATION_ATTRIBUTE__TYPE:
+ return getType();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case BasePackage.SIMPLE_ANNOTATION_ATTRIBUTE__TYPE:
+ setType((LiteralType)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case BasePackage.SIMPLE_ANNOTATION_ATTRIBUTE__TYPE:
+ setType(TYPE_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case BasePackage.SIMPLE_ANNOTATION_ATTRIBUTE__TYPE:
+ return type != TYPE_EDEFAULT;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (type: ");
+ result.append(type);
+ result.append(')');
+ return result.toString();
+ }
+
+} //SimpleAnnotationAttributeImpl
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/util/BaseAdapterFactory.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/util/BaseAdapterFactory.java
index ea7c6c717..890318f6c 100644
--- a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/util/BaseAdapterFactory.java
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/util/BaseAdapterFactory.java
@@ -75,6 +75,41 @@ public class BaseAdapterFactory extends AdapterFactoryImpl
new BaseSwitch<Adapter>()
{
@Override
+ public Adapter caseAnnotation(Annotation object)
+ {
+ return createAnnotationAdapter();
+ }
+ @Override
+ public Adapter caseKeyValue(KeyValue object)
+ {
+ return createKeyValueAdapter();
+ }
+ @Override
+ public Adapter caseAnnotationType(AnnotationType object)
+ {
+ return createAnnotationTypeAdapter();
+ }
+ @Override
+ public Adapter caseAnnotationAttribute(AnnotationAttribute object)
+ {
+ return createAnnotationAttributeAdapter();
+ }
+ @Override
+ public Adapter caseSimpleAnnotationAttribute(SimpleAnnotationAttribute object)
+ {
+ return createSimpleAnnotationAttributeAdapter();
+ }
+ @Override
+ public Adapter caseEnumAnnotationAttribute(EnumAnnotationAttribute object)
+ {
+ return createEnumAnnotationAttributeAdapter();
+ }
+ @Override
+ public Adapter caseDocumentation(Documentation object)
+ {
+ return createDocumentationAdapter();
+ }
+ @Override
public Adapter caseLiteralArray(LiteralArray object)
{
return createLiteralArrayAdapter();
@@ -132,6 +167,111 @@ public class BaseAdapterFactory extends AdapterFactoryImpl
/**
+ * Creates a new adapter for an object of class '{@link org.eclipse.etrice.core.common.base.Annotation <em>Annotation</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.etrice.core.common.base.Annotation
+ * @generated
+ */
+ public Adapter createAnnotationAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.etrice.core.common.base.KeyValue <em>Key Value</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.etrice.core.common.base.KeyValue
+ * @generated
+ */
+ public Adapter createKeyValueAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.etrice.core.common.base.AnnotationType <em>Annotation Type</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.etrice.core.common.base.AnnotationType
+ * @generated
+ */
+ public Adapter createAnnotationTypeAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.etrice.core.common.base.AnnotationAttribute <em>Annotation Attribute</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.etrice.core.common.base.AnnotationAttribute
+ * @generated
+ */
+ public Adapter createAnnotationAttributeAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.etrice.core.common.base.SimpleAnnotationAttribute <em>Simple Annotation Attribute</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.etrice.core.common.base.SimpleAnnotationAttribute
+ * @generated
+ */
+ public Adapter createSimpleAnnotationAttributeAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.etrice.core.common.base.EnumAnnotationAttribute <em>Enum Annotation Attribute</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.etrice.core.common.base.EnumAnnotationAttribute
+ * @generated
+ */
+ public Adapter createEnumAnnotationAttributeAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.etrice.core.common.base.Documentation <em>Documentation</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.etrice.core.common.base.Documentation
+ * @generated
+ */
+ public Adapter createDocumentationAdapter()
+ {
+ return null;
+ }
+
+ /**
* Creates a new adapter for an object of class '{@link org.eclipse.etrice.core.common.base.LiteralArray <em>Literal Array</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/util/BaseSwitch.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/util/BaseSwitch.java
index 9292cfb8f..d2df3787a 100644
--- a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/util/BaseSwitch.java
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/util/BaseSwitch.java
@@ -72,6 +72,57 @@ public class BaseSwitch<T> extends Switch<T>
{
switch (classifierID)
{
+ case BasePackage.ANNOTATION:
+ {
+ Annotation annotation = (Annotation)theEObject;
+ T result = caseAnnotation(annotation);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case BasePackage.KEY_VALUE:
+ {
+ KeyValue keyValue = (KeyValue)theEObject;
+ T result = caseKeyValue(keyValue);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case BasePackage.ANNOTATION_TYPE:
+ {
+ AnnotationType annotationType = (AnnotationType)theEObject;
+ T result = caseAnnotationType(annotationType);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case BasePackage.ANNOTATION_ATTRIBUTE:
+ {
+ AnnotationAttribute annotationAttribute = (AnnotationAttribute)theEObject;
+ T result = caseAnnotationAttribute(annotationAttribute);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case BasePackage.SIMPLE_ANNOTATION_ATTRIBUTE:
+ {
+ SimpleAnnotationAttribute simpleAnnotationAttribute = (SimpleAnnotationAttribute)theEObject;
+ T result = caseSimpleAnnotationAttribute(simpleAnnotationAttribute);
+ if (result == null) result = caseAnnotationAttribute(simpleAnnotationAttribute);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case BasePackage.ENUM_ANNOTATION_ATTRIBUTE:
+ {
+ EnumAnnotationAttribute enumAnnotationAttribute = (EnumAnnotationAttribute)theEObject;
+ T result = caseEnumAnnotationAttribute(enumAnnotationAttribute);
+ if (result == null) result = caseAnnotationAttribute(enumAnnotationAttribute);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case BasePackage.DOCUMENTATION:
+ {
+ Documentation documentation = (Documentation)theEObject;
+ T result = caseDocumentation(documentation);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
case BasePackage.LITERAL_ARRAY:
{
LiteralArray literalArray = (LiteralArray)theEObject;
@@ -133,6 +184,118 @@ public class BaseSwitch<T> extends Switch<T>
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Annotation</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>Annotation</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAnnotation(Annotation object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Key Value</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>Key Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseKeyValue(KeyValue object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Annotation Type</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>Annotation Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAnnotationType(AnnotationType object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Annotation Attribute</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>Annotation Attribute</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAnnotationAttribute(AnnotationAttribute object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Simple Annotation Attribute</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>Simple Annotation Attribute</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSimpleAnnotationAttribute(SimpleAnnotationAttribute object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Enum Annotation Attribute</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>Enum Annotation Attribute</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEnumAnnotationAttribute(EnumAnnotationAttribute object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Documentation</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>Documentation</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDocumentation(Documentation object)
+ {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>Literal Array</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/BaseParser.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/BaseParser.java
index 917023843..816c4ed53 100644
--- a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/BaseParser.java
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/BaseParser.java
@@ -25,7 +25,7 @@ public class BaseParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrPars
@Override
protected String getDefaultRuleName() {
- return "LiteralArray";
+ return "Annotation";
}
public BaseGrammarAccess getGrammarAccess() {
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g
index 57ec49a1e..11a3c59d7 100644
--- a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g
@@ -24,6 +24,7 @@ import org.eclipse.xtext.parser.*;
import org.eclipse.xtext.parser.impl.*;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.common.util.Enumerator;
import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
@@ -44,7 +45,7 @@ import org.eclipse.etrice.core.common.services.BaseGrammarAccess;
@Override
protected String getFirstRuleName() {
- return "LiteralArray";
+ return "Annotation";
}
@Override
@@ -63,67 +64,480 @@ import org.eclipse.etrice.core.common.services.BaseGrammarAccess;
-// Entry rule entryRuleLiteralArray
-entryRuleLiteralArray returns [EObject current=null]
+// Entry rule entryRuleAnnotation
+entryRuleAnnotation returns [EObject current=null]
:
- { newCompositeNode(grammarAccess.getLiteralArrayRule()); }
- iv_ruleLiteralArray=ruleLiteralArray
- { $current=$iv_ruleLiteralArray.current; }
+ { newCompositeNode(grammarAccess.getAnnotationRule()); }
+ iv_ruleAnnotation=ruleAnnotation
+ { $current=$iv_ruleAnnotation.current; }
EOF
;
-// Rule LiteralArray
-ruleLiteralArray returns [EObject current=null]
+// Rule Annotation
+ruleAnnotation returns [EObject current=null]
@init { enterRule();
}
@after { leaveRule(); }:
-((
+( otherlv_0='@'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getAnnotationAccess().getCommercialAtKeyword_0());
+ }
+(
+(
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getAnnotationRule());
+ }
+ }
+ {
+ newCompositeNode(grammarAccess.getAnnotationAccess().getTypeAnnotationTypeCrossReference_1_0());
+ }
+ ruleFQN {
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_2='('
+ {
+ newLeafNode(otherlv_2, grammarAccess.getAnnotationAccess().getLeftParenthesisKeyword_2_0());
+ }
+(
(
{
- newCompositeNode(grammarAccess.getLiteralArrayAccess().getLiteralsLiteralParserRuleCall_0_0());
+ newCompositeNode(grammarAccess.getAnnotationAccess().getAttributesKeyValueParserRuleCall_2_1_0());
}
- lv_literals_0_0=ruleLiteral {
+ lv_attributes_3_0=ruleKeyValue {
if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLiteralArrayRule());
+ $current = createModelElementForParent(grammarAccess.getAnnotationRule());
}
add(
$current,
- "literals",
- lv_literals_0_0,
- "Literal");
+ "attributes",
+ lv_attributes_3_0,
+ "KeyValue");
afterParserOrEnumRuleCall();
}
)
-)( otherlv_1=','
+)( otherlv_4=','
{
- newLeafNode(otherlv_1, grammarAccess.getLiteralArrayAccess().getCommaKeyword_1_0());
+ newLeafNode(otherlv_4, grammarAccess.getAnnotationAccess().getCommaKeyword_2_2_0());
}
(
(
{
- newCompositeNode(grammarAccess.getLiteralArrayAccess().getLiteralsLiteralParserRuleCall_1_1_0());
+ newCompositeNode(grammarAccess.getAnnotationAccess().getAttributesKeyValueParserRuleCall_2_2_1_0());
}
- lv_literals_2_0=ruleLiteral {
+ lv_attributes_5_0=ruleKeyValue {
if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLiteralArrayRule());
+ $current = createModelElementForParent(grammarAccess.getAnnotationRule());
}
add(
$current,
- "literals",
- lv_literals_2_0,
+ "attributes",
+ lv_attributes_5_0,
+ "KeyValue");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))* otherlv_6=')'
+ {
+ newLeafNode(otherlv_6, grammarAccess.getAnnotationAccess().getRightParenthesisKeyword_2_3());
+ }
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleKeyValue
+entryRuleKeyValue returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getKeyValueRule()); }
+ iv_ruleKeyValue=ruleKeyValue
+ { $current=$iv_ruleKeyValue.current; }
+ EOF
+;
+
+// Rule KeyValue
+ruleKeyValue returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_key_0_0=RULE_ID
+ {
+ newLeafNode(lv_key_0_0, grammarAccess.getKeyValueAccess().getKeyIDTerminalRuleCall_0_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getKeyValueRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "key",
+ lv_key_0_0,
+ "ID");
+ }
+
+)
+) otherlv_1='='
+ {
+ newLeafNode(otherlv_1, grammarAccess.getKeyValueAccess().getEqualsSignKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getKeyValueAccess().getValueLiteralParserRuleCall_2_0());
+ }
+ lv_value_2_0=ruleLiteral {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getKeyValueRule());
+ }
+ set(
+ $current,
+ "value",
+ lv_value_2_0,
"Literal");
afterParserOrEnumRuleCall();
}
)
-))*)
+))
;
+
+
+// Entry rule entryRuleAnnotationTargetType
+entryRuleAnnotationTargetType returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getAnnotationTargetTypeRule()); }
+ iv_ruleAnnotationTargetType=ruleAnnotationTargetType
+ { $current=$iv_ruleAnnotationTargetType.current.getText(); }
+ EOF
+;
+
+// Rule AnnotationTargetType
+ruleAnnotationTargetType returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+ this_ID_0=RULE_ID {
+ $current.merge(this_ID_0);
+ }
+
+ {
+ newLeafNode(this_ID_0, grammarAccess.getAnnotationTargetTypeAccess().getIDTerminalRuleCall());
+ }
+
+ ;
+
+
+
+
+
+// Entry rule entryRuleAnnotationAttribute
+entryRuleAnnotationAttribute returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getAnnotationAttributeRule()); }
+ iv_ruleAnnotationAttribute=ruleAnnotationAttribute
+ { $current=$iv_ruleAnnotationAttribute.current; }
+ EOF
+;
+
+// Rule AnnotationAttribute
+ruleAnnotationAttribute returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ newCompositeNode(grammarAccess.getAnnotationAttributeAccess().getSimpleAnnotationAttributeParserRuleCall_0());
+ }
+ this_SimpleAnnotationAttribute_0=ruleSimpleAnnotationAttribute
+ {
+ $current = $this_SimpleAnnotationAttribute_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ newCompositeNode(grammarAccess.getAnnotationAttributeAccess().getEnumAnnotationAttributeParserRuleCall_1());
+ }
+ this_EnumAnnotationAttribute_1=ruleEnumAnnotationAttribute
+ {
+ $current = $this_EnumAnnotationAttribute_1.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleSimpleAnnotationAttribute
+entryRuleSimpleAnnotationAttribute returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSimpleAnnotationAttributeRule()); }
+ iv_ruleSimpleAnnotationAttribute=ruleSimpleAnnotationAttribute
+ { $current=$iv_ruleSimpleAnnotationAttribute.current; }
+ EOF
+;
+
+// Rule SimpleAnnotationAttribute
+ruleSimpleAnnotationAttribute returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(((
+(
+ lv_optional_0_0= 'optional'
+ {
+ newLeafNode(lv_optional_0_0, grammarAccess.getSimpleAnnotationAttributeAccess().getOptionalOptionalKeyword_0_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getSimpleAnnotationAttributeRule());
+ }
+ setWithLastConsumed($current, "optional", true, "optional");
+ }
+
+)
+)
+ | otherlv_1='mandatory'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getSimpleAnnotationAttributeAccess().getMandatoryKeyword_0_1());
+ }
+) otherlv_2='attribute'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getSimpleAnnotationAttributeAccess().getAttributeKeyword_1());
+ }
+(
+(
+ lv_name_3_0=RULE_ID
+ {
+ newLeafNode(lv_name_3_0, grammarAccess.getSimpleAnnotationAttributeAccess().getNameIDTerminalRuleCall_2_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getSimpleAnnotationAttributeRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "name",
+ lv_name_3_0,
+ "ID");
+ }
+
+)
+) otherlv_4=':'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getSimpleAnnotationAttributeAccess().getColonKeyword_3());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getSimpleAnnotationAttributeAccess().getTypeLiteralTypeEnumRuleCall_4_0());
+ }
+ lv_type_5_0=ruleLiteralType {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSimpleAnnotationAttributeRule());
+ }
+ set(
+ $current,
+ "type",
+ lv_type_5_0,
+ "LiteralType");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleEnumAnnotationAttribute
+entryRuleEnumAnnotationAttribute returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getEnumAnnotationAttributeRule()); }
+ iv_ruleEnumAnnotationAttribute=ruleEnumAnnotationAttribute
+ { $current=$iv_ruleEnumAnnotationAttribute.current; }
+ EOF
+;
+
+// Rule EnumAnnotationAttribute
+ruleEnumAnnotationAttribute returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(((
+(
+ lv_optional_0_0= 'optional'
+ {
+ newLeafNode(lv_optional_0_0, grammarAccess.getEnumAnnotationAttributeAccess().getOptionalOptionalKeyword_0_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule());
+ }
+ setWithLastConsumed($current, "optional", true, "optional");
+ }
+
+)
+)
+ | otherlv_1='mandatory'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getEnumAnnotationAttributeAccess().getMandatoryKeyword_0_1());
+ }
+) otherlv_2='attribute'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getEnumAnnotationAttributeAccess().getAttributeKeyword_1());
+ }
+(
+(
+ lv_name_3_0=RULE_ID
+ {
+ newLeafNode(lv_name_3_0, grammarAccess.getEnumAnnotationAttributeAccess().getNameIDTerminalRuleCall_2_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "name",
+ lv_name_3_0,
+ "ID");
+ }
+
+)
+) otherlv_4=':'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getEnumAnnotationAttributeAccess().getColonKeyword_3());
+ }
+ otherlv_5='{'
+ {
+ newLeafNode(otherlv_5, grammarAccess.getEnumAnnotationAttributeAccess().getLeftCurlyBracketKeyword_4());
+ }
+(
+(
+ lv_values_6_0=RULE_STRING
+ {
+ newLeafNode(lv_values_6_0, grammarAccess.getEnumAnnotationAttributeAccess().getValuesSTRINGTerminalRuleCall_5_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule());
+ }
+ addWithLastConsumed(
+ $current,
+ "values",
+ lv_values_6_0,
+ "STRING");
+ }
+
+)
+)( otherlv_7=','
+ {
+ newLeafNode(otherlv_7, grammarAccess.getEnumAnnotationAttributeAccess().getCommaKeyword_6_0());
+ }
+(
+(
+ lv_values_8_0=RULE_STRING
+ {
+ newLeafNode(lv_values_8_0, grammarAccess.getEnumAnnotationAttributeAccess().getValuesSTRINGTerminalRuleCall_6_1_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule());
+ }
+ addWithLastConsumed(
+ $current,
+ "values",
+ lv_values_8_0,
+ "STRING");
+ }
+
+)
+))* otherlv_9='}'
+ {
+ newLeafNode(otherlv_9, grammarAccess.getEnumAnnotationAttributeAccess().getRightCurlyBracketKeyword_7());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleDocumentation
+entryRuleDocumentation returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getDocumentationRule()); }
+ iv_ruleDocumentation=ruleDocumentation
+ { $current=$iv_ruleDocumentation.current; }
+ EOF
+;
+
+// Rule Documentation
+ruleDocumentation returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+ {
+ $current = forceCreateModelElement(
+ grammarAccess.getDocumentationAccess().getDocumentationAction_0(),
+ $current);
+ }
+) otherlv_1='['
+ {
+ newLeafNode(otherlv_1, grammarAccess.getDocumentationAccess().getLeftSquareBracketKeyword_1());
+ }
+(
+(
+ lv_lines_2_0=RULE_STRING
+ {
+ newLeafNode(lv_lines_2_0, grammarAccess.getDocumentationAccess().getLinesSTRINGTerminalRuleCall_2_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getDocumentationRule());
+ }
+ addWithLastConsumed(
+ $current,
+ "lines",
+ lv_lines_2_0,
+ "STRING");
+ }
+
+)
+)* otherlv_3=']'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getDocumentationAccess().getRightSquareBracketKeyword_3());
+ }
+)
+;
+
+
+
+
+
+
+
// Entry rule entryRuleLiteral
entryRuleLiteral returns [EObject current=null]
:
@@ -846,6 +1260,78 @@ finally {
+// Entry rule entryRuleFQN
+entryRuleFQN returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getFQNRule()); }
+ iv_ruleFQN=ruleFQN
+ { $current=$iv_ruleFQN.current.getText(); }
+ EOF
+;
+
+// Rule FQN
+ruleFQN returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( this_ID_0=RULE_ID {
+ $current.merge(this_ID_0);
+ }
+
+ {
+ newLeafNode(this_ID_0, grammarAccess.getFQNAccess().getIDTerminalRuleCall_0());
+ }
+(
+ kw='.'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getFQNAccess().getFullStopKeyword_1_0());
+ }
+ this_ID_2=RULE_ID {
+ $current.merge(this_ID_2);
+ }
+
+ {
+ newLeafNode(this_ID_2, grammarAccess.getFQNAccess().getIDTerminalRuleCall_1_1());
+ }
+)*)
+ ;
+
+
+
+
+
+// Rule LiteralType
+ruleLiteralType returns [Enumerator current=null]
+ @init { enterRule(); }
+ @after { leaveRule(); }:
+(( enumLiteral_0='ptBoolean'
+ {
+ $current = grammarAccess.getLiteralTypeAccess().getBOOLEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_0, grammarAccess.getLiteralTypeAccess().getBOOLEnumLiteralDeclaration_0());
+ }
+)
+ |( enumLiteral_1='ptInteger'
+ {
+ $current = grammarAccess.getLiteralTypeAccess().getINTEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_1, grammarAccess.getLiteralTypeAccess().getINTEnumLiteralDeclaration_1());
+ }
+)
+ |( enumLiteral_2='ptReal'
+ {
+ $current = grammarAccess.getLiteralTypeAccess().getREALEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_2, grammarAccess.getLiteralTypeAccess().getREALEnumLiteralDeclaration_2());
+ }
+)
+ |( enumLiteral_3='ptCharacter'
+ {
+ $current = grammarAccess.getLiteralTypeAccess().getCHAREnumLiteralDeclaration_3().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_3, grammarAccess.getLiteralTypeAccess().getCHAREnumLiteralDeclaration_3());
+ }
+));
+
+
+
RULE_EXP : ('e'|'E') ('+'|'-')? ('0'..'9')+;
RULE_HEX : ('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F')+;
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.tokens b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.tokens
index 9b2f322b2..9bcbbfcc4 100644
--- a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.tokens
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.tokens
@@ -1,21 +1,53 @@
-RULE_ID=8
-RULE_EXP=7
-RULE_HEX=6
-RULE_STRING=4
+RULE_EXP=8
+RULE_ID=4
+T__29=29
+T__28=28
+T__27=27
+T__26=26
+T__25=25
+T__24=24
+T__23=23
+T__22=22
+RULE_ANY_OTHER=12
+T__21=21
+T__20=20
+RULE_SL_COMMENT=10
+RULE_ML_COMMENT=9
+T__30=30
+T__19=19
+T__31=31
+RULE_HEX=7
+RULE_STRING=5
+T__32=32
+T__33=33
T__16=16
+T__34=34
T__15=15
T__18=18
T__17=17
T__14=14
T__13=13
-RULE_ANY_OTHER=12
-RULE_INT=5
+RULE_INT=6
RULE_WS=11
-RULE_SL_COMMENT=10
-RULE_ML_COMMENT=9
-'true'=15
-'false'=14
-'-'=17
-'+'=16
-','=13
-'.'=18
+'true'=27
+'}'=23
+'{'=22
+'optional'=18
+'ptCharacter'=34
+'false'=26
+'='=17
+'@'=13
+'('=14
+':'=21
+'-'=29
+'attribute'=20
+'['=24
+'+'=28
+'ptReal'=33
+','=15
+'.'=30
+')'=16
+'ptBoolean'=31
+'ptInteger'=32
+'mandatory'=19
+']'=25
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBaseLexer.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBaseLexer.java
index fb57cd8ee..515ba0c78 100644
--- a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBaseLexer.java
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBaseLexer.java
@@ -12,22 +12,38 @@ import java.util.ArrayList;
@SuppressWarnings("all")
public class InternalBaseLexer extends Lexer {
- public static final int RULE_ID=8;
- public static final int RULE_EXP=7;
- public static final int RULE_HEX=6;
- public static final int RULE_STRING=4;
+ public static final int RULE_ID=4;
+ public static final int RULE_EXP=8;
+ public static final int T__29=29;
+ public static final int T__28=28;
+ public static final int T__27=27;
+ public static final int T__26=26;
+ public static final int T__25=25;
+ public static final int T__24=24;
+ public static final int T__23=23;
+ public static final int T__22=22;
+ public static final int RULE_ANY_OTHER=12;
+ public static final int T__21=21;
+ public static final int T__20=20;
+ public static final int EOF=-1;
+ public static final int RULE_SL_COMMENT=10;
+ public static final int RULE_ML_COMMENT=9;
+ public static final int T__19=19;
+ 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_STRING=5;
+ public static final int RULE_HEX=7;
public static final int T__16=16;
+ public static final int T__33=33;
public static final int T__15=15;
+ public static final int T__34=34;
public static final int T__18=18;
public static final int T__17=17;
public static final int T__14=14;
public static final int T__13=13;
- public static final int RULE_ANY_OTHER=12;
- public static final int RULE_INT=5;
+ public static final int RULE_INT=6;
public static final int RULE_WS=11;
- public static final int RULE_SL_COMMENT=10;
- public static final int EOF=-1;
- public static final int RULE_ML_COMMENT=9;
// delegates
// delegators
@@ -47,10 +63,10 @@ public class InternalBaseLexer extends Lexer {
try {
int _type = T__13;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:11:7: ( ',' )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:11:9: ','
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:11:7: ( '@' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:11:9: '@'
{
- match(',');
+ match('@');
}
@@ -67,11 +83,10 @@ public class InternalBaseLexer extends Lexer {
try {
int _type = T__14;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:12:7: ( 'false' )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:12:9: 'false'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:12:7: ( '(' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:12:9: '('
{
- match("false");
-
+ match('(');
}
@@ -88,11 +103,10 @@ public class InternalBaseLexer extends Lexer {
try {
int _type = T__15;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:13:7: ( 'true' )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:13:9: 'true'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:13:7: ( ',' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:13:9: ','
{
- match("true");
-
+ match(',');
}
@@ -109,10 +123,10 @@ public class InternalBaseLexer extends Lexer {
try {
int _type = T__16;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:14:7: ( '+' )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:14:9: '+'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:14:7: ( ')' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:14:9: ')'
{
- match('+');
+ match(')');
}
@@ -129,10 +143,10 @@ public class InternalBaseLexer extends Lexer {
try {
int _type = T__17;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:15:7: ( '-' )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:15:9: '-'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:15:7: ( '=' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:15:9: '='
{
- match('-');
+ match('=');
}
@@ -149,10 +163,11 @@ public class InternalBaseLexer extends Lexer {
try {
int _type = T__18;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:16:7: ( '.' )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:16:9: '.'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:16:7: ( 'optional' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:16:9: 'optional'
{
- match('.');
+ match("optional");
+
}
@@ -164,13 +179,341 @@ public class InternalBaseLexer extends Lexer {
}
// $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;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:17:7: ( 'mandatory' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:17:9: 'mandatory'
+ {
+ match("mandatory");
+
+
+ }
+
+ 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;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:18:7: ( 'attribute' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:18:9: 'attribute'
+ {
+ match("attribute");
+
+
+ }
+
+ 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;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:19:7: ( ':' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:19: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;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:20:7: ( '{' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:20:9: '{'
+ {
+ match('{');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__22"
+
+ // $ANTLR start "T__23"
+ public final void mT__23() throws RecognitionException {
+ try {
+ int _type = T__23;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:21:7: ( '}' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:21: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;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:22:7: ( '[' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:22:9: '['
+ {
+ match('[');
+
+ }
+
+ 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;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:23:7: ( ']' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:23:9: ']'
+ {
+ match(']');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__25"
+
+ // $ANTLR start "T__26"
+ public final void mT__26() throws RecognitionException {
+ try {
+ int _type = T__26;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:24:7: ( 'false' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:24:9: 'false'
+ {
+ match("false");
+
+
+ }
+
+ 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;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:25:7: ( 'true' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:25:9: 'true'
+ {
+ match("true");
+
+
+ }
+
+ 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;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:26:7: ( '+' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:26:9: '+'
+ {
+ match('+');
+
+ }
+
+ 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;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:27:7: ( '-' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:27:9: '-'
+ {
+ match('-');
+
+ }
+
+ 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;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:28:7: ( '.' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:28:9: '.'
+ {
+ match('.');
+
+ }
+
+ 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;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:29:7: ( 'ptBoolean' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:29:9: 'ptBoolean'
+ {
+ match("ptBoolean");
+
+
+ }
+
+ 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;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:30:7: ( 'ptInteger' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:30:9: 'ptInteger'
+ {
+ match("ptInteger");
+
+
+ }
+
+ 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;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:31:7: ( 'ptReal' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:31:9: 'ptReal'
+ {
+ match("ptReal");
+
+
+ }
+
+ 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;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:32:7: ( 'ptCharacter' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:32:9: 'ptCharacter'
+ {
+ match("ptCharacter");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__34"
+
// $ANTLR start "RULE_EXP"
public final void mRULE_EXP() throws RecognitionException {
try {
int _type = RULE_EXP;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:849:10: ( ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:849:12: ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1335:10: ( ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1335:12: ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+
{
if ( input.LA(1)=='E'||input.LA(1)=='e' ) {
input.consume();
@@ -181,7 +524,7 @@ public class InternalBaseLexer extends Lexer {
recover(mse);
throw mse;}
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:849:22: ( '+' | '-' )?
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1335:22: ( '+' | '-' )?
int alt1=2;
int LA1_0 = input.LA(1);
@@ -207,7 +550,7 @@ public class InternalBaseLexer extends Lexer {
}
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:849:33: ( '0' .. '9' )+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1335:33: ( '0' .. '9' )+
int cnt2=0;
loop2:
do {
@@ -221,7 +564,7 @@ public class InternalBaseLexer extends Lexer {
switch (alt2) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:849:34: '0' .. '9'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1335:34: '0' .. '9'
{
matchRange('0','9');
@@ -253,10 +596,10 @@ public class InternalBaseLexer extends Lexer {
try {
int _type = RULE_HEX;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:851:10: ( ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:851:12: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1337:10: ( ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1337:12: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:851:12: ( '0x' | '0X' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1337:12: ( '0x' | '0X' )
int alt3=2;
int LA3_0 = input.LA(1);
@@ -284,7 +627,7 @@ public class InternalBaseLexer extends Lexer {
}
switch (alt3) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:851:13: '0x'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1337:13: '0x'
{
match("0x");
@@ -292,7 +635,7 @@ public class InternalBaseLexer extends Lexer {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:851:18: '0X'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1337:18: '0X'
{
match("0X");
@@ -302,7 +645,7 @@ public class InternalBaseLexer extends Lexer {
}
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:851:24: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1337:24: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+
int cnt4=0;
loop4:
do {
@@ -356,10 +699,10 @@ public class InternalBaseLexer extends Lexer {
try {
int _type = RULE_ID;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:853:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:853:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1339:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1339:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:853:11: ( '^' )?
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1339:11: ( '^' )?
int alt5=2;
int LA5_0 = input.LA(1);
@@ -368,7 +711,7 @@ public class InternalBaseLexer extends Lexer {
}
switch (alt5) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:853:11: '^'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1339:11: '^'
{
match('^');
@@ -386,7 +729,7 @@ public class InternalBaseLexer extends Lexer {
recover(mse);
throw mse;}
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:853:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1339:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
loop6:
do {
int alt6=2;
@@ -435,10 +778,10 @@ public class InternalBaseLexer extends Lexer {
try {
int _type = RULE_INT;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:855:10: ( ( '0' .. '9' )+ )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:855:12: ( '0' .. '9' )+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1341:10: ( ( '0' .. '9' )+ )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1341:12: ( '0' .. '9' )+
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:855:12: ( '0' .. '9' )+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1341:12: ( '0' .. '9' )+
int cnt7=0;
loop7:
do {
@@ -452,7 +795,7 @@ public class InternalBaseLexer extends Lexer {
switch (alt7) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:855:13: '0' .. '9'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1341:13: '0' .. '9'
{
matchRange('0','9');
@@ -484,10 +827,10 @@ public class InternalBaseLexer extends Lexer {
try {
int _type = RULE_STRING;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:857:13: ( ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:857:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1343:13: ( ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1343:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:857:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1343:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
int alt10=2;
int LA10_0 = input.LA(1);
@@ -505,10 +848,10 @@ public class InternalBaseLexer extends Lexer {
}
switch (alt10) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:857:16: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1343:16: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
{
match('\"');
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:857:20: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1343:20: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
loop8:
do {
int alt8=3;
@@ -524,7 +867,7 @@ public class InternalBaseLexer extends Lexer {
switch (alt8) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:857:21: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1343:21: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
{
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.LA(1)<='u') ) {
@@ -540,7 +883,7 @@ public class InternalBaseLexer extends Lexer {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:857:66: ~ ( ( '\\\\' | '\"' ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1343:66: ~ ( ( '\\\\' | '\"' ) )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
input.consume();
@@ -565,10 +908,10 @@ public class InternalBaseLexer extends Lexer {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:857:86: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1343:86: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
{
match('\'');
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:857:91: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )*
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1343:91: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )*
loop9:
do {
int alt9=3;
@@ -584,7 +927,7 @@ public class InternalBaseLexer extends Lexer {
switch (alt9) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:857:92: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1343:92: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
{
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.LA(1)<='u') ) {
@@ -600,7 +943,7 @@ public class InternalBaseLexer extends Lexer {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:857:137: ~ ( ( '\\\\' | '\\'' ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1343:137: ~ ( ( '\\\\' | '\\'' ) )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
input.consume();
@@ -643,12 +986,12 @@ public class InternalBaseLexer extends Lexer {
try {
int _type = RULE_ML_COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:859:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:859:19: '/*' ( options {greedy=false; } : . )* '*/'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1345:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1345:19: '/*' ( options {greedy=false; } : . )* '*/'
{
match("/*");
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:859:24: ( options {greedy=false; } : . )*
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1345:24: ( options {greedy=false; } : . )*
loop11:
do {
int alt11=2;
@@ -673,7 +1016,7 @@ public class InternalBaseLexer extends Lexer {
switch (alt11) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:859:52: .
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1345:52: .
{
matchAny();
@@ -703,12 +1046,12 @@ public class InternalBaseLexer extends Lexer {
try {
int _type = RULE_SL_COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:861:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:861:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1347:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1347:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
{
match("//");
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:861:24: (~ ( ( '\\n' | '\\r' ) ) )*
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1347:24: (~ ( ( '\\n' | '\\r' ) ) )*
loop12:
do {
int alt12=2;
@@ -721,7 +1064,7 @@ public class InternalBaseLexer extends Lexer {
switch (alt12) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:861:24: ~ ( ( '\\n' | '\\r' ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1347:24: ~ ( ( '\\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();
@@ -741,7 +1084,7 @@ public class InternalBaseLexer extends Lexer {
}
} while (true);
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:861:40: ( ( '\\r' )? '\\n' )?
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1347:40: ( ( '\\r' )? '\\n' )?
int alt14=2;
int LA14_0 = input.LA(1);
@@ -750,9 +1093,9 @@ public class InternalBaseLexer extends Lexer {
}
switch (alt14) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:861:41: ( '\\r' )? '\\n'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1347:41: ( '\\r' )? '\\n'
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:861:41: ( '\\r' )?
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1347:41: ( '\\r' )?
int alt13=2;
int LA13_0 = input.LA(1);
@@ -761,7 +1104,7 @@ public class InternalBaseLexer extends Lexer {
}
switch (alt13) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:861:41: '\\r'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1347:41: '\\r'
{
match('\r');
@@ -793,10 +1136,10 @@ public class InternalBaseLexer extends Lexer {
try {
int _type = RULE_WS;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:863:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:863:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1349:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1349:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:863:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1349:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
int cnt15=0;
loop15:
do {
@@ -850,8 +1193,8 @@ public class InternalBaseLexer extends Lexer {
try {
int _type = RULE_ANY_OTHER;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:865:16: ( . )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:865:18: .
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1351:16: ( . )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1351:18: .
{
matchAny();
@@ -866,8 +1209,8 @@ public class InternalBaseLexer extends Lexer {
// $ANTLR end "RULE_ANY_OTHER"
public void mTokens() throws RecognitionException {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:8: ( T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | RULE_EXP | RULE_HEX | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER )
- int alt16=15;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:8: ( T__13 | T__14 | 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 | RULE_EXP | RULE_HEX | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER )
+ int alt16=31;
alt16 = dfa16.predict(input);
switch (alt16) {
case 1 :
@@ -913,63 +1256,175 @@ public class InternalBaseLexer extends Lexer {
}
break;
case 7 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:46: RULE_EXP
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:46: T__19
{
- mRULE_EXP();
+ mT__19();
}
break;
case 8 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:55: RULE_HEX
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:52: T__20
{
- mRULE_HEX();
+ mT__20();
}
break;
case 9 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:64: RULE_ID
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:58: T__21
{
- mRULE_ID();
+ mT__21();
}
break;
case 10 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:72: RULE_INT
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:64: T__22
{
- mRULE_INT();
+ mT__22();
}
break;
case 11 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:81: RULE_STRING
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:70: T__23
{
- mRULE_STRING();
+ mT__23();
}
break;
case 12 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:93: RULE_ML_COMMENT
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:76: T__24
{
- mRULE_ML_COMMENT();
+ mT__24();
}
break;
case 13 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:109: RULE_SL_COMMENT
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:82: T__25
{
- mRULE_SL_COMMENT();
+ mT__25();
}
break;
case 14 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:125: RULE_WS
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:88: T__26
{
- mRULE_WS();
+ mT__26();
}
break;
case 15 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:133: RULE_ANY_OTHER
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:94: T__27
+ {
+ mT__27();
+
+ }
+ break;
+ case 16 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:100: T__28
+ {
+ mT__28();
+
+ }
+ break;
+ case 17 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:106: T__29
+ {
+ mT__29();
+
+ }
+ break;
+ case 18 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:112: T__30
+ {
+ mT__30();
+
+ }
+ break;
+ case 19 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:118: T__31
+ {
+ mT__31();
+
+ }
+ break;
+ case 20 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:124: T__32
+ {
+ mT__32();
+
+ }
+ break;
+ case 21 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:130: T__33
+ {
+ mT__33();
+
+ }
+ break;
+ case 22 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:136: T__34
+ {
+ mT__34();
+
+ }
+ break;
+ case 23 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:142: RULE_EXP
+ {
+ mRULE_EXP();
+
+ }
+ break;
+ case 24 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:151: RULE_HEX
+ {
+ mRULE_HEX();
+
+ }
+ break;
+ case 25 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:160: RULE_ID
+ {
+ mRULE_ID();
+
+ }
+ break;
+ case 26 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:168: RULE_INT
+ {
+ mRULE_INT();
+
+ }
+ break;
+ case 27 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:177: RULE_STRING
+ {
+ mRULE_STRING();
+
+ }
+ break;
+ case 28 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:189: RULE_ML_COMMENT
+ {
+ mRULE_ML_COMMENT();
+
+ }
+ break;
+ case 29 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:205: RULE_SL_COMMENT
+ {
+ mRULE_SL_COMMENT();
+
+ }
+ break;
+ case 30 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:221: RULE_WS
+ {
+ mRULE_WS();
+
+ }
+ break;
+ case 31 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1:229: RULE_ANY_OTHER
{
mRULE_ANY_OTHER();
@@ -983,65 +1438,164 @@ public class InternalBaseLexer extends Lexer {
protected DFA16 dfa16 = new DFA16(this);
static final String DFA16_eotS =
- "\2\uffff\2\23\3\uffff\1\23\1\33\1\20\2\uffff\3\20\3\uffff\1\23"+
- "\1\uffff\1\23\4\uffff\1\30\6\uffff\3\23\1\45\1\46\2\uffff";
+ "\6\uffff\3\44\5\uffff\2\44\3\uffff\2\44\1\65\1\35\2\uffff\3\35"+
+ "\7\uffff\1\44\1\uffff\2\44\5\uffff\2\44\3\uffff\1\44\1\63\7\uffff"+
+ "\15\44\1\120\7\44\1\130\1\uffff\7\44\1\uffff\2\44\1\142\6\44\1\uffff"+
+ "\1\44\1\152\5\44\1\uffff\1\160\1\161\1\162\1\163\1\44\4\uffff\1"+
+ "\44\1\166\1\uffff";
static final String DFA16_eofS =
- "\47\uffff";
+ "\167\uffff";
static final String DFA16_minS =
- "\1\0\1\uffff\1\141\1\162\3\uffff\1\53\1\130\1\101\2\uffff\2\0\1"+
- "\52\3\uffff\1\154\1\uffff\1\165\4\uffff\1\60\6\uffff\1\163\2\145"+
- "\2\60\2\uffff";
+ "\1\0\5\uffff\1\160\1\141\1\164\5\uffff\1\141\1\162\3\uffff\1\164"+
+ "\1\53\1\130\1\101\2\uffff\2\0\1\52\7\uffff\1\164\1\uffff\1\156\1"+
+ "\164\5\uffff\1\154\1\165\3\uffff\1\102\1\60\7\uffff\1\151\1\144"+
+ "\1\162\1\163\1\145\1\157\1\156\1\145\1\150\1\157\1\141\1\151\1\145"+
+ "\1\60\1\157\1\164\2\141\1\156\1\164\1\142\1\60\1\uffff\1\154\1\145"+
+ "\1\154\1\162\1\141\1\157\1\165\1\uffff\1\145\1\147\1\60\1\141\1"+
+ "\154\1\162\1\164\1\141\1\145\1\uffff\1\143\1\60\1\171\1\145\1\156"+
+ "\1\162\1\164\1\uffff\4\60\1\145\4\uffff\1\162\1\60\1\uffff";
static final String DFA16_maxS =
- "\1\uffff\1\uffff\1\141\1\162\3\uffff\1\71\1\170\1\172\2\uffff\2"+
- "\uffff\1\57\3\uffff\1\154\1\uffff\1\165\4\uffff\1\172\6\uffff\1"+
- "\163\2\145\2\172\2\uffff";
+ "\1\uffff\5\uffff\1\160\1\141\1\164\5\uffff\1\141\1\162\3\uffff"+
+ "\1\164\1\71\1\170\1\172\2\uffff\2\uffff\1\57\7\uffff\1\164\1\uffff"+
+ "\1\156\1\164\5\uffff\1\154\1\165\3\uffff\1\122\1\172\7\uffff\1\151"+
+ "\1\144\1\162\1\163\1\145\1\157\1\156\1\145\1\150\1\157\1\141\1\151"+
+ "\1\145\1\172\1\157\1\164\2\141\1\156\1\164\1\142\1\172\1\uffff\1"+
+ "\154\1\145\1\154\1\162\1\141\1\157\1\165\1\uffff\1\145\1\147\1\172"+
+ "\1\141\1\154\1\162\1\164\1\141\1\145\1\uffff\1\143\1\172\1\171\1"+
+ "\145\1\156\1\162\1\164\1\uffff\4\172\1\145\4\uffff\1\162\1\172\1"+
+ "\uffff";
static final String DFA16_acceptS =
- "\1\uffff\1\1\2\uffff\1\4\1\5\1\6\3\uffff\1\11\1\12\3\uffff\1\16"+
- "\1\17\1\1\1\uffff\1\11\1\uffff\1\4\1\5\1\6\1\7\1\uffff\1\10\1\12"+
- "\1\13\1\14\1\15\1\16\5\uffff\1\3\1\2";
+ "\1\uffff\1\1\1\2\1\3\1\4\1\5\3\uffff\1\11\1\12\1\13\1\14\1\15\2"+
+ "\uffff\1\20\1\21\1\22\4\uffff\1\31\1\32\3\uffff\1\36\1\37\1\1\1"+
+ "\2\1\3\1\4\1\5\1\uffff\1\31\2\uffff\1\11\1\12\1\13\1\14\1\15\2\uffff"+
+ "\1\20\1\21\1\22\2\uffff\1\27\1\30\1\32\1\33\1\34\1\35\1\36\26\uffff"+
+ "\1\17\7\uffff\1\16\11\uffff\1\25\7\uffff\1\6\5\uffff\1\7\1\10\1"+
+ "\23\1\24\2\uffff\1\26";
static final String DFA16_specialS =
- "\1\0\13\uffff\1\2\1\1\31\uffff}>";
+ "\1\1\30\uffff\1\2\1\0\134\uffff}>";
static final String[] DFA16_transitionS = {
- "\11\20\2\17\2\20\1\17\22\20\1\17\1\20\1\14\4\20\1\15\3\20\1"+
- "\4\1\1\1\5\1\6\1\16\1\10\11\13\7\20\4\12\1\7\25\12\3\20\1\11"+
- "\1\12\1\20\4\12\1\7\1\2\15\12\1\3\6\12\uff85\20",
+ "\11\35\2\34\2\35\1\34\22\35\1\34\1\35\1\31\4\35\1\32\1\2\1"+
+ "\4\1\35\1\20\1\3\1\21\1\22\1\33\1\25\11\30\1\11\2\35\1\5\2\35"+
+ "\1\1\4\27\1\24\25\27\1\14\1\35\1\15\1\26\1\27\1\35\1\10\3\27"+
+ "\1\24\1\16\6\27\1\7\1\27\1\6\1\23\3\27\1\17\6\27\1\12\1\35\1"+
+ "\13\uff82\35",
"",
- "\1\22",
- "\1\24",
"",
"",
"",
- "\1\30\1\uffff\1\30\2\uffff\12\31",
- "\1\32\37\uffff\1\32",
- "\32\23\4\uffff\1\23\1\uffff\32\23",
"",
+ "\1\43",
+ "\1\45",
+ "\1\46",
"",
- "\0\34",
- "\0\34",
- "\1\35\4\uffff\1\36",
"",
"",
"",
- "\1\40",
"",
- "\1\41",
+ "\1\54",
+ "\1\55",
"",
"",
"",
+ "\1\61",
+ "\1\63\1\uffff\1\63\2\uffff\12\62",
+ "\1\64\37\uffff\1\64",
+ "\32\44\4\uffff\1\44\1\uffff\32\44",
"",
- "\12\31\7\uffff\32\23\4\uffff\1\23\1\uffff\32\23",
+ "",
+ "\0\66",
+ "\0\66",
+ "\1\67\4\uffff\1\70",
"",
"",
"",
"",
"",
"",
- "\1\42",
- "\1\43",
- "\1\44",
- "\12\23\7\uffff\32\23\4\uffff\1\23\1\uffff\32\23",
- "\12\23\7\uffff\32\23\4\uffff\1\23\1\uffff\32\23",
"",
+ "\1\72",
+ "",
+ "\1\73",
+ "\1\74",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\75",
+ "\1\76",
+ "",
+ "",
+ "",
+ "\1\77\1\102\5\uffff\1\100\10\uffff\1\101",
+ "\12\62\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\103",
+ "\1\104",
+ "\1\105",
+ "\1\106",
+ "\1\107",
+ "\1\110",
+ "\1\111",
+ "\1\112",
+ "\1\113",
+ "\1\114",
+ "\1\115",
+ "\1\116",
+ "\1\117",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\1\121",
+ "\1\122",
+ "\1\123",
+ "\1\124",
+ "\1\125",
+ "\1\126",
+ "\1\127",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "",
+ "\1\131",
+ "\1\132",
+ "\1\133",
+ "\1\134",
+ "\1\135",
+ "\1\136",
+ "\1\137",
+ "",
+ "\1\140",
+ "\1\141",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\1\143",
+ "\1\144",
+ "\1\145",
+ "\1\146",
+ "\1\147",
+ "\1\150",
+ "",
+ "\1\151",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\1\153",
+ "\1\154",
+ "\1\155",
+ "\1\156",
+ "\1\157",
+ "",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\1\164",
+ "",
+ "",
+ "",
+ "",
+ "\1\165",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
""
};
@@ -1075,67 +1629,93 @@ public class InternalBaseLexer extends Lexer {
this.transition = DFA16_transition;
}
public String getDescription() {
- return "1:1: Tokens : ( T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | RULE_EXP | RULE_HEX | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );";
+ return "1:1: Tokens : ( T__13 | T__14 | 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 | RULE_EXP | RULE_HEX | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );";
}
public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
IntStream input = _input;
int _s = s;
switch ( s ) {
case 0 :
+ int LA16_26 = input.LA(1);
+
+ s = -1;
+ if ( ((LA16_26>='\u0000' && LA16_26<='\uFFFF')) ) {s = 54;}
+
+ else s = 29;
+
+ if ( s>=0 ) return s;
+ break;
+ case 1 :
int LA16_0 = input.LA(1);
s = -1;
- if ( (LA16_0==',') ) {s = 1;}
+ if ( (LA16_0=='@') ) {s = 1;}
- else if ( (LA16_0=='f') ) {s = 2;}
+ else if ( (LA16_0=='(') ) {s = 2;}
- else if ( (LA16_0=='t') ) {s = 3;}
+ else if ( (LA16_0==',') ) {s = 3;}
- else if ( (LA16_0=='+') ) {s = 4;}
+ else if ( (LA16_0==')') ) {s = 4;}
- else if ( (LA16_0=='-') ) {s = 5;}
+ else if ( (LA16_0=='=') ) {s = 5;}
- else if ( (LA16_0=='.') ) {s = 6;}
+ else if ( (LA16_0=='o') ) {s = 6;}
- else if ( (LA16_0=='E'||LA16_0=='e') ) {s = 7;}
+ else if ( (LA16_0=='m') ) {s = 7;}
- else if ( (LA16_0=='0') ) {s = 8;}
+ else if ( (LA16_0=='a') ) {s = 8;}
- else if ( (LA16_0=='^') ) {s = 9;}
+ else if ( (LA16_0==':') ) {s = 9;}
- else if ( ((LA16_0>='A' && LA16_0<='D')||(LA16_0>='F' && LA16_0<='Z')||LA16_0=='_'||(LA16_0>='a' && LA16_0<='d')||(LA16_0>='g' && LA16_0<='s')||(LA16_0>='u' && LA16_0<='z')) ) {s = 10;}
+ else if ( (LA16_0=='{') ) {s = 10;}
- else if ( ((LA16_0>='1' && LA16_0<='9')) ) {s = 11;}
+ else if ( (LA16_0=='}') ) {s = 11;}
- else if ( (LA16_0=='\"') ) {s = 12;}
+ else if ( (LA16_0=='[') ) {s = 12;}
- else if ( (LA16_0=='\'') ) {s = 13;}
+ else if ( (LA16_0==']') ) {s = 13;}
- else if ( (LA16_0=='/') ) {s = 14;}
+ else if ( (LA16_0=='f') ) {s = 14;}
- else if ( ((LA16_0>='\t' && LA16_0<='\n')||LA16_0=='\r'||LA16_0==' ') ) {s = 15;}
+ else if ( (LA16_0=='t') ) {s = 15;}
- else if ( ((LA16_0>='\u0000' && LA16_0<='\b')||(LA16_0>='\u000B' && LA16_0<='\f')||(LA16_0>='\u000E' && LA16_0<='\u001F')||LA16_0=='!'||(LA16_0>='#' && LA16_0<='&')||(LA16_0>='(' && LA16_0<='*')||(LA16_0>=':' && LA16_0<='@')||(LA16_0>='[' && LA16_0<=']')||LA16_0=='`'||(LA16_0>='{' && LA16_0<='\uFFFF')) ) {s = 16;}
+ else if ( (LA16_0=='+') ) {s = 16;}
- if ( s>=0 ) return s;
- break;
- case 1 :
- int LA16_13 = input.LA(1);
+ else if ( (LA16_0=='-') ) {s = 17;}
- s = -1;
- if ( ((LA16_13>='\u0000' && LA16_13<='\uFFFF')) ) {s = 28;}
+ else if ( (LA16_0=='.') ) {s = 18;}
+
+ else if ( (LA16_0=='p') ) {s = 19;}
+
+ else if ( (LA16_0=='E'||LA16_0=='e') ) {s = 20;}
+
+ else if ( (LA16_0=='0') ) {s = 21;}
+
+ else if ( (LA16_0=='^') ) {s = 22;}
+
+ else if ( ((LA16_0>='A' && LA16_0<='D')||(LA16_0>='F' && LA16_0<='Z')||LA16_0=='_'||(LA16_0>='b' && LA16_0<='d')||(LA16_0>='g' && LA16_0<='l')||LA16_0=='n'||(LA16_0>='q' && LA16_0<='s')||(LA16_0>='u' && LA16_0<='z')) ) {s = 23;}
+
+ else if ( ((LA16_0>='1' && LA16_0<='9')) ) {s = 24;}
+
+ else if ( (LA16_0=='\"') ) {s = 25;}
+
+ else if ( (LA16_0=='\'') ) {s = 26;}
+
+ else if ( (LA16_0=='/') ) {s = 27;}
+
+ else if ( ((LA16_0>='\t' && LA16_0<='\n')||LA16_0=='\r'||LA16_0==' ') ) {s = 28;}
- else s = 16;
+ else if ( ((LA16_0>='\u0000' && LA16_0<='\b')||(LA16_0>='\u000B' && LA16_0<='\f')||(LA16_0>='\u000E' && LA16_0<='\u001F')||LA16_0=='!'||(LA16_0>='#' && LA16_0<='&')||LA16_0=='*'||(LA16_0>=';' && LA16_0<='<')||(LA16_0>='>' && LA16_0<='?')||LA16_0=='\\'||LA16_0=='`'||LA16_0=='|'||(LA16_0>='~' && LA16_0<='\uFFFF')) ) {s = 29;}
if ( s>=0 ) return s;
break;
case 2 :
- int LA16_12 = input.LA(1);
+ int LA16_25 = input.LA(1);
s = -1;
- if ( ((LA16_12>='\u0000' && LA16_12<='\uFFFF')) ) {s = 28;}
+ if ( ((LA16_25>='\u0000' && LA16_25<='\uFFFF')) ) {s = 54;}
- else s = 16;
+ else s = 29;
if ( s>=0 ) return s;
break;
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBaseParser.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBaseParser.java
index 74b00b70e..1d378c3dc 100644
--- a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBaseParser.java
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBaseParser.java
@@ -5,6 +5,7 @@ import org.eclipse.xtext.parser.*;
import org.eclipse.xtext.parser.impl.*;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.common.util.Enumerator;
import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
@@ -21,24 +22,40 @@ import java.util.ArrayList;
@SuppressWarnings("all")
public class InternalBaseParser extends AbstractInternalAntlrParser {
public static final String[] tokenNames = new String[] {
- "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_STRING", "RULE_INT", "RULE_HEX", "RULE_EXP", "RULE_ID", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "','", "'false'", "'true'", "'+'", "'-'", "'.'"
+ "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_STRING", "RULE_INT", "RULE_HEX", "RULE_EXP", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'@'", "'('", "','", "')'", "'='", "'optional'", "'mandatory'", "'attribute'", "':'", "'{'", "'}'", "'['", "']'", "'false'", "'true'", "'+'", "'-'", "'.'", "'ptBoolean'", "'ptInteger'", "'ptReal'", "'ptCharacter'"
};
- public static final int RULE_ID=8;
- public static final int RULE_EXP=7;
- public static final int RULE_HEX=6;
- public static final int RULE_STRING=4;
+ public static final int RULE_EXP=8;
+ public static final int RULE_ID=4;
+ public static final int T__29=29;
+ public static final int T__28=28;
+ public static final int T__27=27;
+ public static final int T__26=26;
+ public static final int T__25=25;
+ public static final int T__24=24;
+ public static final int T__23=23;
+ public static final int T__22=22;
+ public static final int RULE_ANY_OTHER=12;
+ public static final int T__21=21;
+ public static final int T__20=20;
+ public static final int RULE_SL_COMMENT=10;
+ public static final int EOF=-1;
+ public static final int RULE_ML_COMMENT=9;
+ public static final int T__30=30;
+ public static final int T__19=19;
+ public static final int T__31=31;
+ public static final int RULE_HEX=7;
+ public static final int RULE_STRING=5;
+ public static final int T__32=32;
+ public static final int T__33=33;
public static final int T__16=16;
+ public static final int T__34=34;
public static final int T__15=15;
public static final int T__18=18;
public static final int T__17=17;
public static final int T__14=14;
public static final int T__13=13;
- public static final int RULE_ANY_OTHER=12;
- public static final int RULE_INT=5;
+ public static final int RULE_INT=6;
public static final int RULE_WS=11;
- public static final int RULE_SL_COMMENT=10;
- public static final int EOF=-1;
- public static final int RULE_ML_COMMENT=9;
// delegates
// delegators
@@ -68,7 +85,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
@Override
protected String getFirstRuleName() {
- return "LiteralArray";
+ return "Annotation";
}
@Override
@@ -78,26 +95,26 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
- // $ANTLR start "entryRuleLiteralArray"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:67:1: entryRuleLiteralArray returns [EObject current=null] : iv_ruleLiteralArray= ruleLiteralArray EOF ;
- public final EObject entryRuleLiteralArray() throws RecognitionException {
+ // $ANTLR start "entryRuleAnnotation"
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:68:1: entryRuleAnnotation returns [EObject current=null] : iv_ruleAnnotation= ruleAnnotation EOF ;
+ public final EObject entryRuleAnnotation() throws RecognitionException {
EObject current = null;
- EObject iv_ruleLiteralArray = null;
+ EObject iv_ruleAnnotation = null;
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:68:2: (iv_ruleLiteralArray= ruleLiteralArray EOF )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:69:2: iv_ruleLiteralArray= ruleLiteralArray EOF
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:69:2: (iv_ruleAnnotation= ruleAnnotation EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:70:2: iv_ruleAnnotation= ruleAnnotation EOF
{
- newCompositeNode(grammarAccess.getLiteralArrayRule());
- pushFollow(FOLLOW_ruleLiteralArray_in_entryRuleLiteralArray75);
- iv_ruleLiteralArray=ruleLiteralArray();
+ newCompositeNode(grammarAccess.getAnnotationRule());
+ pushFollow(FOLLOW_ruleAnnotation_in_entryRuleAnnotation75);
+ iv_ruleAnnotation=ruleAnnotation();
state._fsp--;
- current =iv_ruleLiteralArray;
- match(input,EOF,FOLLOW_EOF_in_entryRuleLiteralArray85);
+ current =iv_ruleAnnotation;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleAnnotation85);
}
@@ -111,51 +128,306 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
return current;
}
- // $ANTLR end "entryRuleLiteralArray"
+ // $ANTLR end "entryRuleAnnotation"
- // $ANTLR start "ruleLiteralArray"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:76:1: ruleLiteralArray returns [EObject current=null] : ( ( (lv_literals_0_0= ruleLiteral ) ) (otherlv_1= ',' ( (lv_literals_2_0= ruleLiteral ) ) )* ) ;
- public final EObject ruleLiteralArray() throws RecognitionException {
+ // $ANTLR start "ruleAnnotation"
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:77:1: ruleAnnotation returns [EObject current=null] : (otherlv_0= '@' ( ( ruleFQN ) ) (otherlv_2= '(' ( (lv_attributes_3_0= ruleKeyValue ) ) (otherlv_4= ',' ( (lv_attributes_5_0= ruleKeyValue ) ) )* otherlv_6= ')' )? ) ;
+ public final EObject ruleAnnotation() throws RecognitionException {
EObject current = null;
- Token otherlv_1=null;
- EObject lv_literals_0_0 = null;
+ Token otherlv_0=null;
+ Token otherlv_2=null;
+ Token otherlv_4=null;
+ Token otherlv_6=null;
+ EObject lv_attributes_3_0 = null;
- EObject lv_literals_2_0 = null;
+ EObject lv_attributes_5_0 = null;
enterRule();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:79:28: ( ( ( (lv_literals_0_0= ruleLiteral ) ) (otherlv_1= ',' ( (lv_literals_2_0= ruleLiteral ) ) )* ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:80:1: ( ( (lv_literals_0_0= ruleLiteral ) ) (otherlv_1= ',' ( (lv_literals_2_0= ruleLiteral ) ) )* )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:80:28: ( (otherlv_0= '@' ( ( ruleFQN ) ) (otherlv_2= '(' ( (lv_attributes_3_0= ruleKeyValue ) ) (otherlv_4= ',' ( (lv_attributes_5_0= ruleKeyValue ) ) )* otherlv_6= ')' )? ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:81:1: (otherlv_0= '@' ( ( ruleFQN ) ) (otherlv_2= '(' ( (lv_attributes_3_0= ruleKeyValue ) ) (otherlv_4= ',' ( (lv_attributes_5_0= ruleKeyValue ) ) )* otherlv_6= ')' )? )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:80:1: ( ( (lv_literals_0_0= ruleLiteral ) ) (otherlv_1= ',' ( (lv_literals_2_0= ruleLiteral ) ) )* )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:80:2: ( (lv_literals_0_0= ruleLiteral ) ) (otherlv_1= ',' ( (lv_literals_2_0= ruleLiteral ) ) )*
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:81:1: (otherlv_0= '@' ( ( ruleFQN ) ) (otherlv_2= '(' ( (lv_attributes_3_0= ruleKeyValue ) ) (otherlv_4= ',' ( (lv_attributes_5_0= ruleKeyValue ) ) )* otherlv_6= ')' )? )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:81:3: otherlv_0= '@' ( ( ruleFQN ) ) (otherlv_2= '(' ( (lv_attributes_3_0= ruleKeyValue ) ) (otherlv_4= ',' ( (lv_attributes_5_0= ruleKeyValue ) ) )* otherlv_6= ')' )?
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:80:2: ( (lv_literals_0_0= ruleLiteral ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:81:1: (lv_literals_0_0= ruleLiteral )
+ otherlv_0=(Token)match(input,13,FOLLOW_13_in_ruleAnnotation122);
+
+ newLeafNode(otherlv_0, grammarAccess.getAnnotationAccess().getCommercialAtKeyword_0());
+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:85:1: ( ( ruleFQN ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:86:1: ( ruleFQN )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:81:1: (lv_literals_0_0= ruleLiteral )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:82:3: lv_literals_0_0= ruleLiteral
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:86:1: ( ruleFQN )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:87:3: ruleFQN
{
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getAnnotationRule());
+ }
+
+
+ newCompositeNode(grammarAccess.getAnnotationAccess().getTypeAnnotationTypeCrossReference_1_0());
+
+ pushFollow(FOLLOW_ruleFQN_in_ruleAnnotation145);
+ ruleFQN();
+
+ state._fsp--;
+
- newCompositeNode(grammarAccess.getLiteralArrayAccess().getLiteralsLiteralParserRuleCall_0_0());
+ afterParserOrEnumRuleCall();
- pushFollow(FOLLOW_ruleLiteral_in_ruleLiteralArray131);
- lv_literals_0_0=ruleLiteral();
+
+ }
+
+
+ }
+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:100:2: (otherlv_2= '(' ( (lv_attributes_3_0= ruleKeyValue ) ) (otherlv_4= ',' ( (lv_attributes_5_0= ruleKeyValue ) ) )* otherlv_6= ')' )?
+ int alt2=2;
+ int LA2_0 = input.LA(1);
+
+ if ( (LA2_0==14) ) {
+ alt2=1;
+ }
+ switch (alt2) {
+ case 1 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:100:4: otherlv_2= '(' ( (lv_attributes_3_0= ruleKeyValue ) ) (otherlv_4= ',' ( (lv_attributes_5_0= ruleKeyValue ) ) )* otherlv_6= ')'
+ {
+ otherlv_2=(Token)match(input,14,FOLLOW_14_in_ruleAnnotation158);
+
+ newLeafNode(otherlv_2, grammarAccess.getAnnotationAccess().getLeftParenthesisKeyword_2_0());
+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:104:1: ( (lv_attributes_3_0= ruleKeyValue ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:105:1: (lv_attributes_3_0= ruleKeyValue )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:105:1: (lv_attributes_3_0= ruleKeyValue )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:106:3: lv_attributes_3_0= ruleKeyValue
+ {
+
+ newCompositeNode(grammarAccess.getAnnotationAccess().getAttributesKeyValueParserRuleCall_2_1_0());
+
+ pushFollow(FOLLOW_ruleKeyValue_in_ruleAnnotation179);
+ lv_attributes_3_0=ruleKeyValue();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAnnotationRule());
+ }
+ add(
+ current,
+ "attributes",
+ lv_attributes_3_0,
+ "KeyValue");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:122:2: (otherlv_4= ',' ( (lv_attributes_5_0= ruleKeyValue ) ) )*
+ loop1:
+ do {
+ int alt1=2;
+ int LA1_0 = input.LA(1);
+
+ if ( (LA1_0==15) ) {
+ alt1=1;
+ }
+
+
+ switch (alt1) {
+ case 1 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:122:4: otherlv_4= ',' ( (lv_attributes_5_0= ruleKeyValue ) )
+ {
+ otherlv_4=(Token)match(input,15,FOLLOW_15_in_ruleAnnotation192);
+
+ newLeafNode(otherlv_4, grammarAccess.getAnnotationAccess().getCommaKeyword_2_2_0());
+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:126:1: ( (lv_attributes_5_0= ruleKeyValue ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:127:1: (lv_attributes_5_0= ruleKeyValue )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:127:1: (lv_attributes_5_0= ruleKeyValue )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:128:3: lv_attributes_5_0= ruleKeyValue
+ {
+
+ newCompositeNode(grammarAccess.getAnnotationAccess().getAttributesKeyValueParserRuleCall_2_2_1_0());
+
+ pushFollow(FOLLOW_ruleKeyValue_in_ruleAnnotation213);
+ lv_attributes_5_0=ruleKeyValue();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAnnotationRule());
+ }
+ add(
+ current,
+ "attributes",
+ lv_attributes_5_0,
+ "KeyValue");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop1;
+ }
+ } while (true);
+
+ otherlv_6=(Token)match(input,16,FOLLOW_16_in_ruleAnnotation227);
+
+ newLeafNode(otherlv_6, grammarAccess.getAnnotationAccess().getRightParenthesisKeyword_2_3());
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAnnotation"
+
+
+ // $ANTLR start "entryRuleKeyValue"
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:156:1: entryRuleKeyValue returns [EObject current=null] : iv_ruleKeyValue= ruleKeyValue EOF ;
+ public final EObject entryRuleKeyValue() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleKeyValue = null;
+
+
+ try {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:157:2: (iv_ruleKeyValue= ruleKeyValue EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:158:2: iv_ruleKeyValue= ruleKeyValue EOF
+ {
+ newCompositeNode(grammarAccess.getKeyValueRule());
+ pushFollow(FOLLOW_ruleKeyValue_in_entryRuleKeyValue265);
+ iv_ruleKeyValue=ruleKeyValue();
+
+ state._fsp--;
+
+ current =iv_ruleKeyValue;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleKeyValue275);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleKeyValue"
+
+
+ // $ANTLR start "ruleKeyValue"
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:165:1: ruleKeyValue returns [EObject current=null] : ( ( (lv_key_0_0= RULE_ID ) ) otherlv_1= '=' ( (lv_value_2_0= ruleLiteral ) ) ) ;
+ public final EObject ruleKeyValue() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_key_0_0=null;
+ Token otherlv_1=null;
+ EObject lv_value_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:168:28: ( ( ( (lv_key_0_0= RULE_ID ) ) otherlv_1= '=' ( (lv_value_2_0= ruleLiteral ) ) ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:169:1: ( ( (lv_key_0_0= RULE_ID ) ) otherlv_1= '=' ( (lv_value_2_0= ruleLiteral ) ) )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:169:1: ( ( (lv_key_0_0= RULE_ID ) ) otherlv_1= '=' ( (lv_value_2_0= ruleLiteral ) ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:169:2: ( (lv_key_0_0= RULE_ID ) ) otherlv_1= '=' ( (lv_value_2_0= ruleLiteral ) )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:169:2: ( (lv_key_0_0= RULE_ID ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:170:1: (lv_key_0_0= RULE_ID )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:170:1: (lv_key_0_0= RULE_ID )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:171:3: lv_key_0_0= RULE_ID
+ {
+ lv_key_0_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleKeyValue317);
+
+ newLeafNode(lv_key_0_0, grammarAccess.getKeyValueAccess().getKeyIDTerminalRuleCall_0_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getKeyValueRule());
+ }
+ setWithLastConsumed(
+ current,
+ "key",
+ lv_key_0_0,
+ "ID");
+
+
+ }
+
+
+ }
+
+ otherlv_1=(Token)match(input,17,FOLLOW_17_in_ruleKeyValue334);
+
+ newLeafNode(otherlv_1, grammarAccess.getKeyValueAccess().getEqualsSignKeyword_1());
+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:191:1: ( (lv_value_2_0= ruleLiteral ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:192:1: (lv_value_2_0= ruleLiteral )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:192:1: (lv_value_2_0= ruleLiteral )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:193:3: lv_value_2_0= ruleLiteral
+ {
+
+ newCompositeNode(grammarAccess.getKeyValueAccess().getValueLiteralParserRuleCall_2_0());
+
+ pushFollow(FOLLOW_ruleLiteral_in_ruleKeyValue355);
+ lv_value_2_0=ruleLiteral();
state._fsp--;
if (current==null) {
- current = createModelElementForParent(grammarAccess.getLiteralArrayRule());
+ current = createModelElementForParent(grammarAccess.getKeyValueRule());
}
- add(
+ set(
current,
- "literals",
- lv_literals_0_0,
+ "value",
+ lv_value_2_0,
"Literal");
afterParserOrEnumRuleCall();
@@ -165,49 +437,732 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:98:2: (otherlv_1= ',' ( (lv_literals_2_0= ruleLiteral ) ) )*
- loop1:
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleKeyValue"
+
+
+ // $ANTLR start "entryRuleAnnotationTargetType"
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:219:1: entryRuleAnnotationTargetType returns [String current=null] : iv_ruleAnnotationTargetType= ruleAnnotationTargetType EOF ;
+ public final String entryRuleAnnotationTargetType() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleAnnotationTargetType = null;
+
+
+ try {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:220:2: (iv_ruleAnnotationTargetType= ruleAnnotationTargetType EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:221:2: iv_ruleAnnotationTargetType= ruleAnnotationTargetType EOF
+ {
+ newCompositeNode(grammarAccess.getAnnotationTargetTypeRule());
+ pushFollow(FOLLOW_ruleAnnotationTargetType_in_entryRuleAnnotationTargetType394);
+ iv_ruleAnnotationTargetType=ruleAnnotationTargetType();
+
+ state._fsp--;
+
+ current =iv_ruleAnnotationTargetType.getText();
+ match(input,EOF,FOLLOW_EOF_in_entryRuleAnnotationTargetType405);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleAnnotationTargetType"
+
+
+ // $ANTLR start "ruleAnnotationTargetType"
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:228:1: ruleAnnotationTargetType returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_ID_0= RULE_ID ;
+ public final AntlrDatatypeRuleToken ruleAnnotationTargetType() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token this_ID_0=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:231:28: (this_ID_0= RULE_ID )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:232:5: this_ID_0= RULE_ID
+ {
+ this_ID_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleAnnotationTargetType444);
+
+ current.merge(this_ID_0);
+
+
+ newLeafNode(this_ID_0, grammarAccess.getAnnotationTargetTypeAccess().getIDTerminalRuleCall());
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAnnotationTargetType"
+
+
+ // $ANTLR start "entryRuleAnnotationAttribute"
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:247:1: entryRuleAnnotationAttribute returns [EObject current=null] : iv_ruleAnnotationAttribute= ruleAnnotationAttribute EOF ;
+ public final EObject entryRuleAnnotationAttribute() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAnnotationAttribute = null;
+
+
+ try {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:248:2: (iv_ruleAnnotationAttribute= ruleAnnotationAttribute EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:249:2: iv_ruleAnnotationAttribute= ruleAnnotationAttribute EOF
+ {
+ newCompositeNode(grammarAccess.getAnnotationAttributeRule());
+ pushFollow(FOLLOW_ruleAnnotationAttribute_in_entryRuleAnnotationAttribute488);
+ iv_ruleAnnotationAttribute=ruleAnnotationAttribute();
+
+ state._fsp--;
+
+ current =iv_ruleAnnotationAttribute;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleAnnotationAttribute498);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleAnnotationAttribute"
+
+
+ // $ANTLR start "ruleAnnotationAttribute"
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:256:1: ruleAnnotationAttribute returns [EObject current=null] : (this_SimpleAnnotationAttribute_0= ruleSimpleAnnotationAttribute | this_EnumAnnotationAttribute_1= ruleEnumAnnotationAttribute ) ;
+ public final EObject ruleAnnotationAttribute() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_SimpleAnnotationAttribute_0 = null;
+
+ EObject this_EnumAnnotationAttribute_1 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:259:28: ( (this_SimpleAnnotationAttribute_0= ruleSimpleAnnotationAttribute | this_EnumAnnotationAttribute_1= ruleEnumAnnotationAttribute ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:260:1: (this_SimpleAnnotationAttribute_0= ruleSimpleAnnotationAttribute | this_EnumAnnotationAttribute_1= ruleEnumAnnotationAttribute )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:260:1: (this_SimpleAnnotationAttribute_0= ruleSimpleAnnotationAttribute | this_EnumAnnotationAttribute_1= ruleEnumAnnotationAttribute )
+ int alt3=2;
+ int LA3_0 = input.LA(1);
+
+ if ( (LA3_0==18) ) {
+ int LA3_1 = input.LA(2);
+
+ if ( (LA3_1==20) ) {
+ int LA3_3 = input.LA(3);
+
+ if ( (LA3_3==RULE_ID) ) {
+ int LA3_4 = input.LA(4);
+
+ if ( (LA3_4==21) ) {
+ int LA3_5 = input.LA(5);
+
+ if ( ((LA3_5>=31 && LA3_5<=34)) ) {
+ alt3=1;
+ }
+ else if ( (LA3_5==22) ) {
+ alt3=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 3, 5, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 3, 4, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 3, 3, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 3, 1, input);
+
+ throw nvae;
+ }
+ }
+ else if ( (LA3_0==19) ) {
+ int LA3_2 = input.LA(2);
+
+ if ( (LA3_2==20) ) {
+ int LA3_3 = input.LA(3);
+
+ if ( (LA3_3==RULE_ID) ) {
+ int LA3_4 = input.LA(4);
+
+ if ( (LA3_4==21) ) {
+ int LA3_5 = input.LA(5);
+
+ if ( ((LA3_5>=31 && LA3_5<=34)) ) {
+ alt3=1;
+ }
+ else if ( (LA3_5==22) ) {
+ alt3=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 3, 5, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 3, 4, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 3, 3, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 3, 2, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 3, 0, input);
+
+ throw nvae;
+ }
+ switch (alt3) {
+ case 1 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:261:5: this_SimpleAnnotationAttribute_0= ruleSimpleAnnotationAttribute
+ {
+
+ newCompositeNode(grammarAccess.getAnnotationAttributeAccess().getSimpleAnnotationAttributeParserRuleCall_0());
+
+ pushFollow(FOLLOW_ruleSimpleAnnotationAttribute_in_ruleAnnotationAttribute545);
+ this_SimpleAnnotationAttribute_0=ruleSimpleAnnotationAttribute();
+
+ state._fsp--;
+
+
+ current = this_SimpleAnnotationAttribute_0;
+ afterParserOrEnumRuleCall();
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:271:5: this_EnumAnnotationAttribute_1= ruleEnumAnnotationAttribute
+ {
+
+ newCompositeNode(grammarAccess.getAnnotationAttributeAccess().getEnumAnnotationAttributeParserRuleCall_1());
+
+ pushFollow(FOLLOW_ruleEnumAnnotationAttribute_in_ruleAnnotationAttribute572);
+ this_EnumAnnotationAttribute_1=ruleEnumAnnotationAttribute();
+
+ state._fsp--;
+
+
+ current = this_EnumAnnotationAttribute_1;
+ afterParserOrEnumRuleCall();
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAnnotationAttribute"
+
+
+ // $ANTLR start "entryRuleSimpleAnnotationAttribute"
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:287:1: entryRuleSimpleAnnotationAttribute returns [EObject current=null] : iv_ruleSimpleAnnotationAttribute= ruleSimpleAnnotationAttribute EOF ;
+ public final EObject entryRuleSimpleAnnotationAttribute() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSimpleAnnotationAttribute = null;
+
+
+ try {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:288:2: (iv_ruleSimpleAnnotationAttribute= ruleSimpleAnnotationAttribute EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:289:2: iv_ruleSimpleAnnotationAttribute= ruleSimpleAnnotationAttribute EOF
+ {
+ newCompositeNode(grammarAccess.getSimpleAnnotationAttributeRule());
+ pushFollow(FOLLOW_ruleSimpleAnnotationAttribute_in_entryRuleSimpleAnnotationAttribute607);
+ iv_ruleSimpleAnnotationAttribute=ruleSimpleAnnotationAttribute();
+
+ state._fsp--;
+
+ current =iv_ruleSimpleAnnotationAttribute;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleSimpleAnnotationAttribute617);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSimpleAnnotationAttribute"
+
+
+ // $ANTLR start "ruleSimpleAnnotationAttribute"
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:296:1: ruleSimpleAnnotationAttribute returns [EObject current=null] : ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' ( (lv_type_5_0= ruleLiteralType ) ) ) ;
+ public final EObject ruleSimpleAnnotationAttribute() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_optional_0_0=null;
+ Token otherlv_1=null;
+ Token otherlv_2=null;
+ Token lv_name_3_0=null;
+ Token otherlv_4=null;
+ Enumerator lv_type_5_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:299:28: ( ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' ( (lv_type_5_0= ruleLiteralType ) ) ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:300:1: ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' ( (lv_type_5_0= ruleLiteralType ) ) )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:300:1: ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' ( (lv_type_5_0= ruleLiteralType ) ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:300:2: ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' ( (lv_type_5_0= ruleLiteralType ) )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:300:2: ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' )
+ int alt4=2;
+ int LA4_0 = input.LA(1);
+
+ if ( (LA4_0==18) ) {
+ alt4=1;
+ }
+ else if ( (LA4_0==19) ) {
+ alt4=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 4, 0, input);
+
+ throw nvae;
+ }
+ switch (alt4) {
+ case 1 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:300:3: ( (lv_optional_0_0= 'optional' ) )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:300:3: ( (lv_optional_0_0= 'optional' ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:301:1: (lv_optional_0_0= 'optional' )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:301:1: (lv_optional_0_0= 'optional' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:302:3: lv_optional_0_0= 'optional'
+ {
+ lv_optional_0_0=(Token)match(input,18,FOLLOW_18_in_ruleSimpleAnnotationAttribute661);
+
+ newLeafNode(lv_optional_0_0, grammarAccess.getSimpleAnnotationAttributeAccess().getOptionalOptionalKeyword_0_0_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getSimpleAnnotationAttributeRule());
+ }
+ setWithLastConsumed(current, "optional", true, "optional");
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:316:7: otherlv_1= 'mandatory'
+ {
+ otherlv_1=(Token)match(input,19,FOLLOW_19_in_ruleSimpleAnnotationAttribute692);
+
+ newLeafNode(otherlv_1, grammarAccess.getSimpleAnnotationAttributeAccess().getMandatoryKeyword_0_1());
+
+
+ }
+ break;
+
+ }
+
+ otherlv_2=(Token)match(input,20,FOLLOW_20_in_ruleSimpleAnnotationAttribute705);
+
+ newLeafNode(otherlv_2, grammarAccess.getSimpleAnnotationAttributeAccess().getAttributeKeyword_1());
+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:324:1: ( (lv_name_3_0= RULE_ID ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:325:1: (lv_name_3_0= RULE_ID )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:325:1: (lv_name_3_0= RULE_ID )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:326:3: lv_name_3_0= RULE_ID
+ {
+ lv_name_3_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleSimpleAnnotationAttribute722);
+
+ newLeafNode(lv_name_3_0, grammarAccess.getSimpleAnnotationAttributeAccess().getNameIDTerminalRuleCall_2_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getSimpleAnnotationAttributeRule());
+ }
+ setWithLastConsumed(
+ current,
+ "name",
+ lv_name_3_0,
+ "ID");
+
+
+ }
+
+
+ }
+
+ otherlv_4=(Token)match(input,21,FOLLOW_21_in_ruleSimpleAnnotationAttribute739);
+
+ newLeafNode(otherlv_4, grammarAccess.getSimpleAnnotationAttributeAccess().getColonKeyword_3());
+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:346:1: ( (lv_type_5_0= ruleLiteralType ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:347:1: (lv_type_5_0= ruleLiteralType )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:347:1: (lv_type_5_0= ruleLiteralType )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:348:3: lv_type_5_0= ruleLiteralType
+ {
+
+ newCompositeNode(grammarAccess.getSimpleAnnotationAttributeAccess().getTypeLiteralTypeEnumRuleCall_4_0());
+
+ pushFollow(FOLLOW_ruleLiteralType_in_ruleSimpleAnnotationAttribute760);
+ lv_type_5_0=ruleLiteralType();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSimpleAnnotationAttributeRule());
+ }
+ set(
+ current,
+ "type",
+ lv_type_5_0,
+ "LiteralType");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSimpleAnnotationAttribute"
+
+
+ // $ANTLR start "entryRuleEnumAnnotationAttribute"
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:372:1: entryRuleEnumAnnotationAttribute returns [EObject current=null] : iv_ruleEnumAnnotationAttribute= ruleEnumAnnotationAttribute EOF ;
+ public final EObject entryRuleEnumAnnotationAttribute() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleEnumAnnotationAttribute = null;
+
+
+ try {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:373:2: (iv_ruleEnumAnnotationAttribute= ruleEnumAnnotationAttribute EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:374:2: iv_ruleEnumAnnotationAttribute= ruleEnumAnnotationAttribute EOF
+ {
+ newCompositeNode(grammarAccess.getEnumAnnotationAttributeRule());
+ pushFollow(FOLLOW_ruleEnumAnnotationAttribute_in_entryRuleEnumAnnotationAttribute796);
+ iv_ruleEnumAnnotationAttribute=ruleEnumAnnotationAttribute();
+
+ state._fsp--;
+
+ current =iv_ruleEnumAnnotationAttribute;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleEnumAnnotationAttribute806);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleEnumAnnotationAttribute"
+
+
+ // $ANTLR start "ruleEnumAnnotationAttribute"
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:381:1: ruleEnumAnnotationAttribute returns [EObject current=null] : ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' otherlv_5= '{' ( (lv_values_6_0= RULE_STRING ) ) (otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) )* otherlv_9= '}' ) ;
+ public final EObject ruleEnumAnnotationAttribute() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_optional_0_0=null;
+ Token otherlv_1=null;
+ Token otherlv_2=null;
+ Token lv_name_3_0=null;
+ Token otherlv_4=null;
+ Token otherlv_5=null;
+ Token lv_values_6_0=null;
+ Token otherlv_7=null;
+ Token lv_values_8_0=null;
+ Token otherlv_9=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:384:28: ( ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' otherlv_5= '{' ( (lv_values_6_0= RULE_STRING ) ) (otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) )* otherlv_9= '}' ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:385:1: ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' otherlv_5= '{' ( (lv_values_6_0= RULE_STRING ) ) (otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) )* otherlv_9= '}' )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:385:1: ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' otherlv_5= '{' ( (lv_values_6_0= RULE_STRING ) ) (otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) )* otherlv_9= '}' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:385:2: ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' otherlv_5= '{' ( (lv_values_6_0= RULE_STRING ) ) (otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) )* otherlv_9= '}'
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:385:2: ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' )
+ int alt5=2;
+ int LA5_0 = input.LA(1);
+
+ if ( (LA5_0==18) ) {
+ alt5=1;
+ }
+ else if ( (LA5_0==19) ) {
+ alt5=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 5, 0, input);
+
+ throw nvae;
+ }
+ switch (alt5) {
+ case 1 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:385:3: ( (lv_optional_0_0= 'optional' ) )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:385:3: ( (lv_optional_0_0= 'optional' ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:386:1: (lv_optional_0_0= 'optional' )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:386:1: (lv_optional_0_0= 'optional' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:387:3: lv_optional_0_0= 'optional'
+ {
+ lv_optional_0_0=(Token)match(input,18,FOLLOW_18_in_ruleEnumAnnotationAttribute850);
+
+ newLeafNode(lv_optional_0_0, grammarAccess.getEnumAnnotationAttributeAccess().getOptionalOptionalKeyword_0_0_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule());
+ }
+ setWithLastConsumed(current, "optional", true, "optional");
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:401:7: otherlv_1= 'mandatory'
+ {
+ otherlv_1=(Token)match(input,19,FOLLOW_19_in_ruleEnumAnnotationAttribute881);
+
+ newLeafNode(otherlv_1, grammarAccess.getEnumAnnotationAttributeAccess().getMandatoryKeyword_0_1());
+
+
+ }
+ break;
+
+ }
+
+ otherlv_2=(Token)match(input,20,FOLLOW_20_in_ruleEnumAnnotationAttribute894);
+
+ newLeafNode(otherlv_2, grammarAccess.getEnumAnnotationAttributeAccess().getAttributeKeyword_1());
+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:409:1: ( (lv_name_3_0= RULE_ID ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:410:1: (lv_name_3_0= RULE_ID )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:410:1: (lv_name_3_0= RULE_ID )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:411:3: lv_name_3_0= RULE_ID
+ {
+ lv_name_3_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleEnumAnnotationAttribute911);
+
+ newLeafNode(lv_name_3_0, grammarAccess.getEnumAnnotationAttributeAccess().getNameIDTerminalRuleCall_2_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule());
+ }
+ setWithLastConsumed(
+ current,
+ "name",
+ lv_name_3_0,
+ "ID");
+
+
+ }
+
+
+ }
+
+ otherlv_4=(Token)match(input,21,FOLLOW_21_in_ruleEnumAnnotationAttribute928);
+
+ newLeafNode(otherlv_4, grammarAccess.getEnumAnnotationAttributeAccess().getColonKeyword_3());
+
+ otherlv_5=(Token)match(input,22,FOLLOW_22_in_ruleEnumAnnotationAttribute940);
+
+ newLeafNode(otherlv_5, grammarAccess.getEnumAnnotationAttributeAccess().getLeftCurlyBracketKeyword_4());
+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:435:1: ( (lv_values_6_0= RULE_STRING ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:436:1: (lv_values_6_0= RULE_STRING )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:436:1: (lv_values_6_0= RULE_STRING )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:437:3: lv_values_6_0= RULE_STRING
+ {
+ lv_values_6_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleEnumAnnotationAttribute957);
+
+ newLeafNode(lv_values_6_0, grammarAccess.getEnumAnnotationAttributeAccess().getValuesSTRINGTerminalRuleCall_5_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule());
+ }
+ addWithLastConsumed(
+ current,
+ "values",
+ lv_values_6_0,
+ "STRING");
+
+
+ }
+
+
+ }
+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:453:2: (otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) )*
+ loop6:
do {
- int alt1=2;
- int LA1_0 = input.LA(1);
+ int alt6=2;
+ int LA6_0 = input.LA(1);
- if ( (LA1_0==13) ) {
- alt1=1;
+ if ( (LA6_0==15) ) {
+ alt6=1;
}
- switch (alt1) {
+ switch (alt6) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:98:4: otherlv_1= ',' ( (lv_literals_2_0= ruleLiteral ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:453:4: otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) )
{
- otherlv_1=(Token)match(input,13,FOLLOW_13_in_ruleLiteralArray144);
+ otherlv_7=(Token)match(input,15,FOLLOW_15_in_ruleEnumAnnotationAttribute975);
- newLeafNode(otherlv_1, grammarAccess.getLiteralArrayAccess().getCommaKeyword_1_0());
+ newLeafNode(otherlv_7, grammarAccess.getEnumAnnotationAttributeAccess().getCommaKeyword_6_0());
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:102:1: ( (lv_literals_2_0= ruleLiteral ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:103:1: (lv_literals_2_0= ruleLiteral )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:457:1: ( (lv_values_8_0= RULE_STRING ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:458:1: (lv_values_8_0= RULE_STRING )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:103:1: (lv_literals_2_0= ruleLiteral )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:104:3: lv_literals_2_0= ruleLiteral
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:458:1: (lv_values_8_0= RULE_STRING )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:459:3: lv_values_8_0= RULE_STRING
{
-
- newCompositeNode(grammarAccess.getLiteralArrayAccess().getLiteralsLiteralParserRuleCall_1_1_0());
-
- pushFollow(FOLLOW_ruleLiteral_in_ruleLiteralArray165);
- lv_literals_2_0=ruleLiteral();
-
- state._fsp--;
+ lv_values_8_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleEnumAnnotationAttribute992);
+ newLeafNode(lv_values_8_0, grammarAccess.getEnumAnnotationAttributeAccess().getValuesSTRINGTerminalRuleCall_6_1_0());
+
if (current==null) {
- current = createModelElementForParent(grammarAccess.getLiteralArrayRule());
+ current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule());
}
- add(
+ addWithLastConsumed(
current,
- "literals",
- lv_literals_2_0,
- "Literal");
- afterParserOrEnumRuleCall();
+ "values",
+ lv_values_8_0,
+ "STRING");
}
@@ -220,10 +1175,14 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
break;
default :
- break loop1;
+ break loop6;
}
} while (true);
+ otherlv_9=(Token)match(input,23,FOLLOW_23_in_ruleEnumAnnotationAttribute1011);
+
+ newLeafNode(otherlv_9, grammarAccess.getEnumAnnotationAttributeAccess().getRightCurlyBracketKeyword_7());
+
}
@@ -241,11 +1200,148 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
return current;
}
- // $ANTLR end "ruleLiteralArray"
+ // $ANTLR end "ruleEnumAnnotationAttribute"
+
+
+ // $ANTLR start "entryRuleDocumentation"
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:487:1: entryRuleDocumentation returns [EObject current=null] : iv_ruleDocumentation= ruleDocumentation EOF ;
+ public final EObject entryRuleDocumentation() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleDocumentation = null;
+
+
+ try {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:488:2: (iv_ruleDocumentation= ruleDocumentation EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:489:2: iv_ruleDocumentation= ruleDocumentation EOF
+ {
+ newCompositeNode(grammarAccess.getDocumentationRule());
+ pushFollow(FOLLOW_ruleDocumentation_in_entryRuleDocumentation1047);
+ iv_ruleDocumentation=ruleDocumentation();
+
+ state._fsp--;
+
+ current =iv_ruleDocumentation;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleDocumentation1057);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleDocumentation"
+
+
+ // $ANTLR start "ruleDocumentation"
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:496:1: ruleDocumentation returns [EObject current=null] : ( () otherlv_1= '[' ( (lv_lines_2_0= RULE_STRING ) )* otherlv_3= ']' ) ;
+ public final EObject ruleDocumentation() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token lv_lines_2_0=null;
+ Token otherlv_3=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:499:28: ( ( () otherlv_1= '[' ( (lv_lines_2_0= RULE_STRING ) )* otherlv_3= ']' ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:500:1: ( () otherlv_1= '[' ( (lv_lines_2_0= RULE_STRING ) )* otherlv_3= ']' )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:500:1: ( () otherlv_1= '[' ( (lv_lines_2_0= RULE_STRING ) )* otherlv_3= ']' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:500:2: () otherlv_1= '[' ( (lv_lines_2_0= RULE_STRING ) )* otherlv_3= ']'
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:500:2: ()
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:501:5:
+ {
+
+ current = forceCreateModelElement(
+ grammarAccess.getDocumentationAccess().getDocumentationAction_0(),
+ current);
+
+
+ }
+
+ otherlv_1=(Token)match(input,24,FOLLOW_24_in_ruleDocumentation1103);
+
+ newLeafNode(otherlv_1, grammarAccess.getDocumentationAccess().getLeftSquareBracketKeyword_1());
+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:510:1: ( (lv_lines_2_0= RULE_STRING ) )*
+ loop7:
+ do {
+ int alt7=2;
+ int LA7_0 = input.LA(1);
+
+ if ( (LA7_0==RULE_STRING) ) {
+ alt7=1;
+ }
+
+
+ switch (alt7) {
+ case 1 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:511:1: (lv_lines_2_0= RULE_STRING )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:511:1: (lv_lines_2_0= RULE_STRING )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:512:3: lv_lines_2_0= RULE_STRING
+ {
+ lv_lines_2_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleDocumentation1120);
+
+ newLeafNode(lv_lines_2_0, grammarAccess.getDocumentationAccess().getLinesSTRINGTerminalRuleCall_2_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getDocumentationRule());
+ }
+ addWithLastConsumed(
+ current,
+ "lines",
+ lv_lines_2_0,
+ "STRING");
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop7;
+ }
+ } while (true);
+
+ otherlv_3=(Token)match(input,25,FOLLOW_25_in_ruleDocumentation1138);
+
+ newLeafNode(otherlv_3, grammarAccess.getDocumentationAccess().getRightSquareBracketKeyword_3());
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleDocumentation"
// $ANTLR start "entryRuleLiteral"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:128:1: entryRuleLiteral returns [EObject current=null] : iv_ruleLiteral= ruleLiteral EOF ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:542:1: entryRuleLiteral returns [EObject current=null] : iv_ruleLiteral= ruleLiteral EOF ;
public final EObject entryRuleLiteral() throws RecognitionException {
EObject current = null;
@@ -253,17 +1349,17 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:129:2: (iv_ruleLiteral= ruleLiteral EOF )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:130:2: iv_ruleLiteral= ruleLiteral EOF
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:543:2: (iv_ruleLiteral= ruleLiteral EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:544:2: iv_ruleLiteral= ruleLiteral EOF
{
newCompositeNode(grammarAccess.getLiteralRule());
- pushFollow(FOLLOW_ruleLiteral_in_entryRuleLiteral203);
+ pushFollow(FOLLOW_ruleLiteral_in_entryRuleLiteral1176);
iv_ruleLiteral=ruleLiteral();
state._fsp--;
current =iv_ruleLiteral;
- match(input,EOF,FOLLOW_EOF_in_entryRuleLiteral213);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleLiteral1186);
}
@@ -281,7 +1377,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleLiteral"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:137:1: ruleLiteral returns [EObject current=null] : (this_BooleanLiteral_0= ruleBooleanLiteral | this_NumberLiteral_1= ruleNumberLiteral | this_StringLiteral_2= ruleStringLiteral ) ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:551:1: ruleLiteral returns [EObject current=null] : (this_BooleanLiteral_0= ruleBooleanLiteral | this_NumberLiteral_1= ruleNumberLiteral | this_StringLiteral_2= ruleStringLiteral ) ;
public final EObject ruleLiteral() throws RecognitionException {
EObject current = null;
@@ -295,47 +1391,47 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:140:28: ( (this_BooleanLiteral_0= ruleBooleanLiteral | this_NumberLiteral_1= ruleNumberLiteral | this_StringLiteral_2= ruleStringLiteral ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:141:1: (this_BooleanLiteral_0= ruleBooleanLiteral | this_NumberLiteral_1= ruleNumberLiteral | this_StringLiteral_2= ruleStringLiteral )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:554:28: ( (this_BooleanLiteral_0= ruleBooleanLiteral | this_NumberLiteral_1= ruleNumberLiteral | this_StringLiteral_2= ruleStringLiteral ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:555:1: (this_BooleanLiteral_0= ruleBooleanLiteral | this_NumberLiteral_1= ruleNumberLiteral | this_StringLiteral_2= ruleStringLiteral )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:141:1: (this_BooleanLiteral_0= ruleBooleanLiteral | this_NumberLiteral_1= ruleNumberLiteral | this_StringLiteral_2= ruleStringLiteral )
- int alt2=3;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:555:1: (this_BooleanLiteral_0= ruleBooleanLiteral | this_NumberLiteral_1= ruleNumberLiteral | this_StringLiteral_2= ruleStringLiteral )
+ int alt8=3;
switch ( input.LA(1) ) {
- case 14:
- case 15:
+ case 26:
+ case 27:
{
- alt2=1;
+ alt8=1;
}
break;
case RULE_INT:
case RULE_HEX:
- case 16:
- case 17:
- case 18:
+ case 28:
+ case 29:
+ case 30:
{
- alt2=2;
+ alt8=2;
}
break;
case RULE_STRING:
{
- alt2=3;
+ alt8=3;
}
break;
default:
NoViableAltException nvae =
- new NoViableAltException("", 2, 0, input);
+ new NoViableAltException("", 8, 0, input);
throw nvae;
}
- switch (alt2) {
+ switch (alt8) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:142:5: this_BooleanLiteral_0= ruleBooleanLiteral
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:556:5: this_BooleanLiteral_0= ruleBooleanLiteral
{
newCompositeNode(grammarAccess.getLiteralAccess().getBooleanLiteralParserRuleCall_0());
- pushFollow(FOLLOW_ruleBooleanLiteral_in_ruleLiteral260);
+ pushFollow(FOLLOW_ruleBooleanLiteral_in_ruleLiteral1233);
this_BooleanLiteral_0=ruleBooleanLiteral();
state._fsp--;
@@ -348,12 +1444,12 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:152:5: this_NumberLiteral_1= ruleNumberLiteral
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:566:5: this_NumberLiteral_1= ruleNumberLiteral
{
newCompositeNode(grammarAccess.getLiteralAccess().getNumberLiteralParserRuleCall_1());
- pushFollow(FOLLOW_ruleNumberLiteral_in_ruleLiteral287);
+ pushFollow(FOLLOW_ruleNumberLiteral_in_ruleLiteral1260);
this_NumberLiteral_1=ruleNumberLiteral();
state._fsp--;
@@ -366,12 +1462,12 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
break;
case 3 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:162:5: this_StringLiteral_2= ruleStringLiteral
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:576:5: this_StringLiteral_2= ruleStringLiteral
{
newCompositeNode(grammarAccess.getLiteralAccess().getStringLiteralParserRuleCall_2());
- pushFollow(FOLLOW_ruleStringLiteral_in_ruleLiteral314);
+ pushFollow(FOLLOW_ruleStringLiteral_in_ruleLiteral1287);
this_StringLiteral_2=ruleStringLiteral();
state._fsp--;
@@ -404,7 +1500,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleBooleanLiteral"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:178:1: entryRuleBooleanLiteral returns [EObject current=null] : iv_ruleBooleanLiteral= ruleBooleanLiteral EOF ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:592:1: entryRuleBooleanLiteral returns [EObject current=null] : iv_ruleBooleanLiteral= ruleBooleanLiteral EOF ;
public final EObject entryRuleBooleanLiteral() throws RecognitionException {
EObject current = null;
@@ -412,17 +1508,17 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:179:2: (iv_ruleBooleanLiteral= ruleBooleanLiteral EOF )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:180:2: iv_ruleBooleanLiteral= ruleBooleanLiteral EOF
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:593:2: (iv_ruleBooleanLiteral= ruleBooleanLiteral EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:594:2: iv_ruleBooleanLiteral= ruleBooleanLiteral EOF
{
newCompositeNode(grammarAccess.getBooleanLiteralRule());
- pushFollow(FOLLOW_ruleBooleanLiteral_in_entryRuleBooleanLiteral349);
+ pushFollow(FOLLOW_ruleBooleanLiteral_in_entryRuleBooleanLiteral1322);
iv_ruleBooleanLiteral=ruleBooleanLiteral();
state._fsp--;
current =iv_ruleBooleanLiteral;
- match(input,EOF,FOLLOW_EOF_in_entryRuleBooleanLiteral359);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleBooleanLiteral1332);
}
@@ -440,7 +1536,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleBooleanLiteral"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:187:1: ruleBooleanLiteral returns [EObject current=null] : ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:601:1: ruleBooleanLiteral returns [EObject current=null] : ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ;
public final EObject ruleBooleanLiteral() throws RecognitionException {
EObject current = null;
@@ -450,14 +1546,14 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:190:28: ( ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:191:1: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:604:28: ( ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:605:1: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:191:1: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:191:2: () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:605:1: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:605:2: () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:191:2: ()
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:192:5:
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:605:2: ()
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:606:5:
{
current = forceCreateModelElement(
@@ -467,27 +1563,27 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:197:2: (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) )
- int alt3=2;
- int LA3_0 = input.LA(1);
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:611:2: (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) )
+ int alt9=2;
+ int LA9_0 = input.LA(1);
- if ( (LA3_0==14) ) {
- alt3=1;
+ if ( (LA9_0==26) ) {
+ alt9=1;
}
- else if ( (LA3_0==15) ) {
- alt3=2;
+ else if ( (LA9_0==27) ) {
+ alt9=2;
}
else {
NoViableAltException nvae =
- new NoViableAltException("", 3, 0, input);
+ new NoViableAltException("", 9, 0, input);
throw nvae;
}
- switch (alt3) {
+ switch (alt9) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:197:4: otherlv_1= 'false'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:611:4: otherlv_1= 'false'
{
- otherlv_1=(Token)match(input,14,FOLLOW_14_in_ruleBooleanLiteral406);
+ otherlv_1=(Token)match(input,26,FOLLOW_26_in_ruleBooleanLiteral1379);
newLeafNode(otherlv_1, grammarAccess.getBooleanLiteralAccess().getFalseKeyword_1_0());
@@ -495,15 +1591,15 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:202:6: ( (lv_isTrue_2_0= 'true' ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:616:6: ( (lv_isTrue_2_0= 'true' ) )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:202:6: ( (lv_isTrue_2_0= 'true' ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:203:1: (lv_isTrue_2_0= 'true' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:616:6: ( (lv_isTrue_2_0= 'true' ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:617:1: (lv_isTrue_2_0= 'true' )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:203:1: (lv_isTrue_2_0= 'true' )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:204:3: lv_isTrue_2_0= 'true'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:617:1: (lv_isTrue_2_0= 'true' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:618:3: lv_isTrue_2_0= 'true'
{
- lv_isTrue_2_0=(Token)match(input,15,FOLLOW_15_in_ruleBooleanLiteral430);
+ lv_isTrue_2_0=(Token)match(input,27,FOLLOW_27_in_ruleBooleanLiteral1403);
newLeafNode(lv_isTrue_2_0, grammarAccess.getBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0());
@@ -546,7 +1642,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleNumberLiteral"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:225:1: entryRuleNumberLiteral returns [EObject current=null] : iv_ruleNumberLiteral= ruleNumberLiteral EOF ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:639:1: entryRuleNumberLiteral returns [EObject current=null] : iv_ruleNumberLiteral= ruleNumberLiteral EOF ;
public final EObject entryRuleNumberLiteral() throws RecognitionException {
EObject current = null;
@@ -554,17 +1650,17 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:226:2: (iv_ruleNumberLiteral= ruleNumberLiteral EOF )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:227:2: iv_ruleNumberLiteral= ruleNumberLiteral EOF
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:640:2: (iv_ruleNumberLiteral= ruleNumberLiteral EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:641:2: iv_ruleNumberLiteral= ruleNumberLiteral EOF
{
newCompositeNode(grammarAccess.getNumberLiteralRule());
- pushFollow(FOLLOW_ruleNumberLiteral_in_entryRuleNumberLiteral480);
+ pushFollow(FOLLOW_ruleNumberLiteral_in_entryRuleNumberLiteral1453);
iv_ruleNumberLiteral=ruleNumberLiteral();
state._fsp--;
current =iv_ruleNumberLiteral;
- match(input,EOF,FOLLOW_EOF_in_entryRuleNumberLiteral490);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleNumberLiteral1463);
}
@@ -582,7 +1678,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleNumberLiteral"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:234:1: ruleNumberLiteral returns [EObject current=null] : (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral ) ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:648:1: ruleNumberLiteral returns [EObject current=null] : (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral ) ;
public final EObject ruleNumberLiteral() throws RecognitionException {
EObject current = null;
@@ -594,69 +1690,69 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:237:28: ( (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:238:1: (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:651:28: ( (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:652:1: (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:238:1: (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral )
- int alt4=2;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:652:1: (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral )
+ int alt10=2;
switch ( input.LA(1) ) {
- case 16:
+ case 28:
{
- int LA4_1 = input.LA(2);
+ int LA10_1 = input.LA(2);
- if ( (LA4_1==18) ) {
- alt4=2;
- }
- else if ( (LA4_1==RULE_INT) ) {
- int LA4_3 = input.LA(3);
+ if ( (LA10_1==RULE_INT) ) {
+ int LA10_3 = input.LA(3);
- if ( (LA4_3==18) ) {
- alt4=2;
+ if ( (LA10_3==30) ) {
+ alt10=2;
}
- else if ( (LA4_3==EOF||LA4_3==13) ) {
- alt4=1;
+ else if ( (LA10_3==EOF||(LA10_3>=15 && LA10_3<=16)) ) {
+ alt10=1;
}
else {
NoViableAltException nvae =
- new NoViableAltException("", 4, 3, input);
+ new NoViableAltException("", 10, 3, input);
throw nvae;
}
}
+ else if ( (LA10_1==30) ) {
+ alt10=2;
+ }
else {
NoViableAltException nvae =
- new NoViableAltException("", 4, 1, input);
+ new NoViableAltException("", 10, 1, input);
throw nvae;
}
}
break;
- case 17:
+ case 29:
{
- int LA4_2 = input.LA(2);
+ int LA10_2 = input.LA(2);
- if ( (LA4_2==RULE_INT) ) {
- int LA4_3 = input.LA(3);
+ if ( (LA10_2==30) ) {
+ alt10=2;
+ }
+ else if ( (LA10_2==RULE_INT) ) {
+ int LA10_3 = input.LA(3);
- if ( (LA4_3==18) ) {
- alt4=2;
+ if ( (LA10_3==30) ) {
+ alt10=2;
}
- else if ( (LA4_3==EOF||LA4_3==13) ) {
- alt4=1;
+ else if ( (LA10_3==EOF||(LA10_3>=15 && LA10_3<=16)) ) {
+ alt10=1;
}
else {
NoViableAltException nvae =
- new NoViableAltException("", 4, 3, input);
+ new NoViableAltException("", 10, 3, input);
throw nvae;
}
}
- else if ( (LA4_2==18) ) {
- alt4=2;
- }
else {
NoViableAltException nvae =
- new NoViableAltException("", 4, 2, input);
+ new NoViableAltException("", 10, 2, input);
throw nvae;
}
@@ -664,17 +1760,17 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
break;
case RULE_INT:
{
- int LA4_3 = input.LA(2);
+ int LA10_3 = input.LA(2);
- if ( (LA4_3==18) ) {
- alt4=2;
+ if ( (LA10_3==30) ) {
+ alt10=2;
}
- else if ( (LA4_3==EOF||LA4_3==13) ) {
- alt4=1;
+ else if ( (LA10_3==EOF||(LA10_3>=15 && LA10_3<=16)) ) {
+ alt10=1;
}
else {
NoViableAltException nvae =
- new NoViableAltException("", 4, 3, input);
+ new NoViableAltException("", 10, 3, input);
throw nvae;
}
@@ -682,29 +1778,29 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
break;
case RULE_HEX:
{
- alt4=1;
+ alt10=1;
}
break;
- case 18:
+ case 30:
{
- alt4=2;
+ alt10=2;
}
break;
default:
NoViableAltException nvae =
- new NoViableAltException("", 4, 0, input);
+ new NoViableAltException("", 10, 0, input);
throw nvae;
}
- switch (alt4) {
+ switch (alt10) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:239:5: this_IntLiteral_0= ruleIntLiteral
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:653:5: this_IntLiteral_0= ruleIntLiteral
{
newCompositeNode(grammarAccess.getNumberLiteralAccess().getIntLiteralParserRuleCall_0());
- pushFollow(FOLLOW_ruleIntLiteral_in_ruleNumberLiteral537);
+ pushFollow(FOLLOW_ruleIntLiteral_in_ruleNumberLiteral1510);
this_IntLiteral_0=ruleIntLiteral();
state._fsp--;
@@ -717,12 +1813,12 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:249:5: this_RealLiteral_1= ruleRealLiteral
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:663:5: this_RealLiteral_1= ruleRealLiteral
{
newCompositeNode(grammarAccess.getNumberLiteralAccess().getRealLiteralParserRuleCall_1());
- pushFollow(FOLLOW_ruleRealLiteral_in_ruleNumberLiteral564);
+ pushFollow(FOLLOW_ruleRealLiteral_in_ruleNumberLiteral1537);
this_RealLiteral_1=ruleRealLiteral();
state._fsp--;
@@ -755,7 +1851,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleRealLiteral"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:265:1: entryRuleRealLiteral returns [EObject current=null] : iv_ruleRealLiteral= ruleRealLiteral EOF ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:679:1: entryRuleRealLiteral returns [EObject current=null] : iv_ruleRealLiteral= ruleRealLiteral EOF ;
public final EObject entryRuleRealLiteral() throws RecognitionException {
EObject current = null;
@@ -763,17 +1859,17 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:266:2: (iv_ruleRealLiteral= ruleRealLiteral EOF )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:267:2: iv_ruleRealLiteral= ruleRealLiteral EOF
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:680:2: (iv_ruleRealLiteral= ruleRealLiteral EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:681:2: iv_ruleRealLiteral= ruleRealLiteral EOF
{
newCompositeNode(grammarAccess.getRealLiteralRule());
- pushFollow(FOLLOW_ruleRealLiteral_in_entryRuleRealLiteral599);
+ pushFollow(FOLLOW_ruleRealLiteral_in_entryRuleRealLiteral1572);
iv_ruleRealLiteral=ruleRealLiteral();
state._fsp--;
current =iv_ruleRealLiteral;
- match(input,EOF,FOLLOW_EOF_in_entryRuleRealLiteral609);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleRealLiteral1582);
}
@@ -791,7 +1887,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleRealLiteral"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:274:1: ruleRealLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= ruleReal ) ) ) ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:688:1: ruleRealLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= ruleReal ) ) ) ;
public final EObject ruleRealLiteral() throws RecognitionException {
EObject current = null;
@@ -801,14 +1897,14 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:277:28: ( ( () ( (lv_value_1_0= ruleReal ) ) ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:278:1: ( () ( (lv_value_1_0= ruleReal ) ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:691:28: ( ( () ( (lv_value_1_0= ruleReal ) ) ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:692:1: ( () ( (lv_value_1_0= ruleReal ) ) )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:278:1: ( () ( (lv_value_1_0= ruleReal ) ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:278:2: () ( (lv_value_1_0= ruleReal ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:692:1: ( () ( (lv_value_1_0= ruleReal ) ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:692:2: () ( (lv_value_1_0= ruleReal ) )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:278:2: ()
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:279:5:
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:692:2: ()
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:693:5:
{
current = forceCreateModelElement(
@@ -818,16 +1914,16 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:284:2: ( (lv_value_1_0= ruleReal ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:285:1: (lv_value_1_0= ruleReal )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:698:2: ( (lv_value_1_0= ruleReal ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:699:1: (lv_value_1_0= ruleReal )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:285:1: (lv_value_1_0= ruleReal )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:286:3: lv_value_1_0= ruleReal
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:699:1: (lv_value_1_0= ruleReal )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:700:3: lv_value_1_0= ruleReal
{
newCompositeNode(grammarAccess.getRealLiteralAccess().getValueRealParserRuleCall_1_0());
- pushFollow(FOLLOW_ruleReal_in_ruleRealLiteral664);
+ pushFollow(FOLLOW_ruleReal_in_ruleRealLiteral1637);
lv_value_1_0=ruleReal();
state._fsp--;
@@ -870,7 +1966,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleIntLiteral"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:310:1: entryRuleIntLiteral returns [EObject current=null] : iv_ruleIntLiteral= ruleIntLiteral EOF ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:724:1: entryRuleIntLiteral returns [EObject current=null] : iv_ruleIntLiteral= ruleIntLiteral EOF ;
public final EObject entryRuleIntLiteral() throws RecognitionException {
EObject current = null;
@@ -878,17 +1974,17 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:311:2: (iv_ruleIntLiteral= ruleIntLiteral EOF )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:312:2: iv_ruleIntLiteral= ruleIntLiteral EOF
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:725:2: (iv_ruleIntLiteral= ruleIntLiteral EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:726:2: iv_ruleIntLiteral= ruleIntLiteral EOF
{
newCompositeNode(grammarAccess.getIntLiteralRule());
- pushFollow(FOLLOW_ruleIntLiteral_in_entryRuleIntLiteral700);
+ pushFollow(FOLLOW_ruleIntLiteral_in_entryRuleIntLiteral1673);
iv_ruleIntLiteral=ruleIntLiteral();
state._fsp--;
current =iv_ruleIntLiteral;
- match(input,EOF,FOLLOW_EOF_in_entryRuleIntLiteral710);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleIntLiteral1683);
}
@@ -906,7 +2002,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleIntLiteral"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:319:1: ruleIntLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= ruleInteger ) ) ) ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:733:1: ruleIntLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= ruleInteger ) ) ) ;
public final EObject ruleIntLiteral() throws RecognitionException {
EObject current = null;
@@ -916,14 +2012,14 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:322:28: ( ( () ( (lv_value_1_0= ruleInteger ) ) ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:323:1: ( () ( (lv_value_1_0= ruleInteger ) ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:736:28: ( ( () ( (lv_value_1_0= ruleInteger ) ) ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:737:1: ( () ( (lv_value_1_0= ruleInteger ) ) )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:323:1: ( () ( (lv_value_1_0= ruleInteger ) ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:323:2: () ( (lv_value_1_0= ruleInteger ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:737:1: ( () ( (lv_value_1_0= ruleInteger ) ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:737:2: () ( (lv_value_1_0= ruleInteger ) )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:323:2: ()
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:324:5:
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:737:2: ()
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:738:5:
{
current = forceCreateModelElement(
@@ -933,16 +2029,16 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:329:2: ( (lv_value_1_0= ruleInteger ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:330:1: (lv_value_1_0= ruleInteger )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:743:2: ( (lv_value_1_0= ruleInteger ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:744:1: (lv_value_1_0= ruleInteger )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:330:1: (lv_value_1_0= ruleInteger )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:331:3: lv_value_1_0= ruleInteger
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:744:1: (lv_value_1_0= ruleInteger )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:745:3: lv_value_1_0= ruleInteger
{
newCompositeNode(grammarAccess.getIntLiteralAccess().getValueIntegerParserRuleCall_1_0());
- pushFollow(FOLLOW_ruleInteger_in_ruleIntLiteral765);
+ pushFollow(FOLLOW_ruleInteger_in_ruleIntLiteral1738);
lv_value_1_0=ruleInteger();
state._fsp--;
@@ -985,7 +2081,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleStringLiteral"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:355:1: entryRuleStringLiteral returns [EObject current=null] : iv_ruleStringLiteral= ruleStringLiteral EOF ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:769:1: entryRuleStringLiteral returns [EObject current=null] : iv_ruleStringLiteral= ruleStringLiteral EOF ;
public final EObject entryRuleStringLiteral() throws RecognitionException {
EObject current = null;
@@ -993,17 +2089,17 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:356:2: (iv_ruleStringLiteral= ruleStringLiteral EOF )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:357:2: iv_ruleStringLiteral= ruleStringLiteral EOF
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:770:2: (iv_ruleStringLiteral= ruleStringLiteral EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:771:2: iv_ruleStringLiteral= ruleStringLiteral EOF
{
newCompositeNode(grammarAccess.getStringLiteralRule());
- pushFollow(FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral801);
+ pushFollow(FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral1774);
iv_ruleStringLiteral=ruleStringLiteral();
state._fsp--;
current =iv_ruleStringLiteral;
- match(input,EOF,FOLLOW_EOF_in_entryRuleStringLiteral811);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleStringLiteral1784);
}
@@ -1021,7 +2117,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleStringLiteral"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:364:1: ruleStringLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= RULE_STRING ) ) ) ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:778:1: ruleStringLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= RULE_STRING ) ) ) ;
public final EObject ruleStringLiteral() throws RecognitionException {
EObject current = null;
@@ -1030,14 +2126,14 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:367:28: ( ( () ( (lv_value_1_0= RULE_STRING ) ) ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:368:1: ( () ( (lv_value_1_0= RULE_STRING ) ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:781:28: ( ( () ( (lv_value_1_0= RULE_STRING ) ) ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:782:1: ( () ( (lv_value_1_0= RULE_STRING ) ) )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:368:1: ( () ( (lv_value_1_0= RULE_STRING ) ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:368:2: () ( (lv_value_1_0= RULE_STRING ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:782:1: ( () ( (lv_value_1_0= RULE_STRING ) ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:782:2: () ( (lv_value_1_0= RULE_STRING ) )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:368:2: ()
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:369:5:
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:782:2: ()
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:783:5:
{
current = forceCreateModelElement(
@@ -1047,13 +2143,13 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:374:2: ( (lv_value_1_0= RULE_STRING ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:375:1: (lv_value_1_0= RULE_STRING )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:788:2: ( (lv_value_1_0= RULE_STRING ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:789:1: (lv_value_1_0= RULE_STRING )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:375:1: (lv_value_1_0= RULE_STRING )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:376:3: lv_value_1_0= RULE_STRING
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:789:1: (lv_value_1_0= RULE_STRING )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:790:3: lv_value_1_0= RULE_STRING
{
- lv_value_1_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleStringLiteral862);
+ lv_value_1_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleStringLiteral1835);
newLeafNode(lv_value_1_0, grammarAccess.getStringLiteralAccess().getValueSTRINGTerminalRuleCall_1_0());
@@ -1094,7 +2190,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleInteger"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:400:1: entryRuleInteger returns [String current=null] : iv_ruleInteger= ruleInteger EOF ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:814:1: entryRuleInteger returns [String current=null] : iv_ruleInteger= ruleInteger EOF ;
public final String entryRuleInteger() throws RecognitionException {
String current = null;
@@ -1102,17 +2198,17 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:401:2: (iv_ruleInteger= ruleInteger EOF )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:402:2: iv_ruleInteger= ruleInteger EOF
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:815:2: (iv_ruleInteger= ruleInteger EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:816:2: iv_ruleInteger= ruleInteger EOF
{
newCompositeNode(grammarAccess.getIntegerRule());
- pushFollow(FOLLOW_ruleInteger_in_entryRuleInteger904);
+ pushFollow(FOLLOW_ruleInteger_in_entryRuleInteger1877);
iv_ruleInteger=ruleInteger();
state._fsp--;
current =iv_ruleInteger.getText();
- match(input,EOF,FOLLOW_EOF_in_entryRuleInteger915);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleInteger1888);
}
@@ -1130,7 +2226,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleInteger"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:409:1: ruleInteger returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_SignedInteger_0= ruleSignedInteger | this_Hexadecimal_1= ruleHexadecimal ) ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:823:1: ruleInteger returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_SignedInteger_0= ruleSignedInteger | this_Hexadecimal_1= ruleHexadecimal ) ;
public final AntlrDatatypeRuleToken ruleInteger() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
@@ -1142,33 +2238,33 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:412:28: ( (this_SignedInteger_0= ruleSignedInteger | this_Hexadecimal_1= ruleHexadecimal ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:413:1: (this_SignedInteger_0= ruleSignedInteger | this_Hexadecimal_1= ruleHexadecimal )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:826:28: ( (this_SignedInteger_0= ruleSignedInteger | this_Hexadecimal_1= ruleHexadecimal ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:827:1: (this_SignedInteger_0= ruleSignedInteger | this_Hexadecimal_1= ruleHexadecimal )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:413:1: (this_SignedInteger_0= ruleSignedInteger | this_Hexadecimal_1= ruleHexadecimal )
- int alt5=2;
- int LA5_0 = input.LA(1);
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:827:1: (this_SignedInteger_0= ruleSignedInteger | this_Hexadecimal_1= ruleHexadecimal )
+ int alt11=2;
+ int LA11_0 = input.LA(1);
- if ( (LA5_0==RULE_INT||(LA5_0>=16 && LA5_0<=17)) ) {
- alt5=1;
+ if ( (LA11_0==RULE_INT||(LA11_0>=28 && LA11_0<=29)) ) {
+ alt11=1;
}
- else if ( (LA5_0==RULE_HEX) ) {
- alt5=2;
+ else if ( (LA11_0==RULE_HEX) ) {
+ alt11=2;
}
else {
NoViableAltException nvae =
- new NoViableAltException("", 5, 0, input);
+ new NoViableAltException("", 11, 0, input);
throw nvae;
}
- switch (alt5) {
+ switch (alt11) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:414:5: this_SignedInteger_0= ruleSignedInteger
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:828:5: this_SignedInteger_0= ruleSignedInteger
{
newCompositeNode(grammarAccess.getIntegerAccess().getSignedIntegerParserRuleCall_0());
- pushFollow(FOLLOW_ruleSignedInteger_in_ruleInteger962);
+ pushFollow(FOLLOW_ruleSignedInteger_in_ruleInteger1935);
this_SignedInteger_0=ruleSignedInteger();
state._fsp--;
@@ -1183,12 +2279,12 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:426:5: this_Hexadecimal_1= ruleHexadecimal
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:840:5: this_Hexadecimal_1= ruleHexadecimal
{
newCompositeNode(grammarAccess.getIntegerAccess().getHexadecimalParserRuleCall_1());
- pushFollow(FOLLOW_ruleHexadecimal_in_ruleInteger995);
+ pushFollow(FOLLOW_ruleHexadecimal_in_ruleInteger1968);
this_Hexadecimal_1=ruleHexadecimal();
state._fsp--;
@@ -1223,7 +2319,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleSignedInteger"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:444:1: entryRuleSignedInteger returns [String current=null] : iv_ruleSignedInteger= ruleSignedInteger EOF ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:858:1: entryRuleSignedInteger returns [String current=null] : iv_ruleSignedInteger= ruleSignedInteger EOF ;
public final String entryRuleSignedInteger() throws RecognitionException {
String current = null;
@@ -1234,17 +2330,17 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:448:2: (iv_ruleSignedInteger= ruleSignedInteger EOF )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:449:2: iv_ruleSignedInteger= ruleSignedInteger EOF
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:862:2: (iv_ruleSignedInteger= ruleSignedInteger EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:863:2: iv_ruleSignedInteger= ruleSignedInteger EOF
{
newCompositeNode(grammarAccess.getSignedIntegerRule());
- pushFollow(FOLLOW_ruleSignedInteger_in_entryRuleSignedInteger1047);
+ pushFollow(FOLLOW_ruleSignedInteger_in_entryRuleSignedInteger2020);
iv_ruleSignedInteger=ruleSignedInteger();
state._fsp--;
current =iv_ruleSignedInteger.getText();
- match(input,EOF,FOLLOW_EOF_in_entryRuleSignedInteger1058);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleSignedInteger2031);
}
@@ -1265,7 +2361,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleSignedInteger"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:459:1: ruleSignedInteger returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:873:1: ruleSignedInteger returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) ;
public final AntlrDatatypeRuleToken ruleSignedInteger() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
@@ -1276,27 +2372,27 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:463:28: ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:464:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:877:28: ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:878:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:464:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:464:2: (kw= '+' | kw= '-' )? this_INT_2= RULE_INT
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:878:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:878:2: (kw= '+' | kw= '-' )? this_INT_2= RULE_INT
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:464:2: (kw= '+' | kw= '-' )?
- int alt6=3;
- int LA6_0 = input.LA(1);
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:878:2: (kw= '+' | kw= '-' )?
+ int alt12=3;
+ int LA12_0 = input.LA(1);
- if ( (LA6_0==16) ) {
- alt6=1;
+ if ( (LA12_0==28) ) {
+ alt12=1;
}
- else if ( (LA6_0==17) ) {
- alt6=2;
+ else if ( (LA12_0==29) ) {
+ alt12=2;
}
- switch (alt6) {
+ switch (alt12) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:465:2: kw= '+'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:879:2: kw= '+'
{
- kw=(Token)match(input,16,FOLLOW_16_in_ruleSignedInteger1101);
+ kw=(Token)match(input,28,FOLLOW_28_in_ruleSignedInteger2074);
current.merge(kw);
newLeafNode(kw, grammarAccess.getSignedIntegerAccess().getPlusSignKeyword_0_0());
@@ -1305,9 +2401,9 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:472:2: kw= '-'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:886:2: kw= '-'
{
- kw=(Token)match(input,17,FOLLOW_17_in_ruleSignedInteger1120);
+ kw=(Token)match(input,29,FOLLOW_29_in_ruleSignedInteger2093);
current.merge(kw);
newLeafNode(kw, grammarAccess.getSignedIntegerAccess().getHyphenMinusKeyword_0_1());
@@ -1318,7 +2414,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
- this_INT_2=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleSignedInteger1137);
+ this_INT_2=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleSignedInteger2110);
current.merge(this_INT_2);
@@ -1349,7 +2445,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleHexadecimal"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:495:1: entryRuleHexadecimal returns [String current=null] : iv_ruleHexadecimal= ruleHexadecimal EOF ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:909:1: entryRuleHexadecimal returns [String current=null] : iv_ruleHexadecimal= ruleHexadecimal EOF ;
public final String entryRuleHexadecimal() throws RecognitionException {
String current = null;
@@ -1360,17 +2456,17 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:499:2: (iv_ruleHexadecimal= ruleHexadecimal EOF )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:500:2: iv_ruleHexadecimal= ruleHexadecimal EOF
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:913:2: (iv_ruleHexadecimal= ruleHexadecimal EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:914:2: iv_ruleHexadecimal= ruleHexadecimal EOF
{
newCompositeNode(grammarAccess.getHexadecimalRule());
- pushFollow(FOLLOW_ruleHexadecimal_in_entryRuleHexadecimal1193);
+ pushFollow(FOLLOW_ruleHexadecimal_in_entryRuleHexadecimal2166);
iv_ruleHexadecimal=ruleHexadecimal();
state._fsp--;
current =iv_ruleHexadecimal.getText();
- match(input,EOF,FOLLOW_EOF_in_entryRuleHexadecimal1204);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleHexadecimal2177);
}
@@ -1391,7 +2487,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleHexadecimal"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:510:1: ruleHexadecimal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_HEX_0= RULE_HEX ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:924:1: ruleHexadecimal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_HEX_0= RULE_HEX ;
public final AntlrDatatypeRuleToken ruleHexadecimal() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
@@ -1401,10 +2497,10 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:514:28: (this_HEX_0= RULE_HEX )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:515:5: this_HEX_0= RULE_HEX
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:928:28: (this_HEX_0= RULE_HEX )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:929:5: this_HEX_0= RULE_HEX
{
- this_HEX_0=(Token)match(input,RULE_HEX,FOLLOW_RULE_HEX_in_ruleHexadecimal1247);
+ this_HEX_0=(Token)match(input,RULE_HEX,FOLLOW_RULE_HEX_in_ruleHexadecimal2220);
current.merge(this_HEX_0);
@@ -1432,7 +2528,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleReal"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:533:1: entryRuleReal returns [String current=null] : iv_ruleReal= ruleReal EOF ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:947:1: entryRuleReal returns [String current=null] : iv_ruleReal= ruleReal EOF ;
public final String entryRuleReal() throws RecognitionException {
String current = null;
@@ -1440,17 +2536,17 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:534:2: (iv_ruleReal= ruleReal EOF )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:535:2: iv_ruleReal= ruleReal EOF
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:948:2: (iv_ruleReal= ruleReal EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:949:2: iv_ruleReal= ruleReal EOF
{
newCompositeNode(grammarAccess.getRealRule());
- pushFollow(FOLLOW_ruleReal_in_entryRuleReal1296);
+ pushFollow(FOLLOW_ruleReal_in_entryRuleReal2269);
iv_ruleReal=ruleReal();
state._fsp--;
current =iv_ruleReal.getText();
- match(input,EOF,FOLLOW_EOF_in_entryRuleReal1307);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleReal2280);
}
@@ -1468,7 +2564,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleReal"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:542:1: ruleReal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_Decimal_0= ruleDecimal | this_DotDecimal_1= ruleDotDecimal | this_DecimalDot_2= ruleDecimalDot | this_DecimalExp_3= ruleDecimalExp ) ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:956:1: ruleReal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_Decimal_0= ruleDecimal | this_DotDecimal_1= ruleDotDecimal | this_DecimalDot_2= ruleDecimalDot | this_DecimalExp_3= ruleDecimalExp ) ;
public final AntlrDatatypeRuleToken ruleReal() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
@@ -1484,20 +2580,20 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
enterRule();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:545:28: ( (this_Decimal_0= ruleDecimal | this_DotDecimal_1= ruleDotDecimal | this_DecimalDot_2= ruleDecimalDot | this_DecimalExp_3= ruleDecimalExp ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:546:1: (this_Decimal_0= ruleDecimal | this_DotDecimal_1= ruleDotDecimal | this_DecimalDot_2= ruleDecimalDot | this_DecimalExp_3= ruleDecimalExp )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:959:28: ( (this_Decimal_0= ruleDecimal | this_DotDecimal_1= ruleDotDecimal | this_DecimalDot_2= ruleDecimalDot | this_DecimalExp_3= ruleDecimalExp ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:960:1: (this_Decimal_0= ruleDecimal | this_DotDecimal_1= ruleDotDecimal | this_DecimalDot_2= ruleDecimalDot | this_DecimalExp_3= ruleDecimalExp )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:546:1: (this_Decimal_0= ruleDecimal | this_DotDecimal_1= ruleDotDecimal | this_DecimalDot_2= ruleDecimalDot | this_DecimalExp_3= ruleDecimalExp )
- int alt7=4;
- alt7 = dfa7.predict(input);
- switch (alt7) {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:960:1: (this_Decimal_0= ruleDecimal | this_DotDecimal_1= ruleDotDecimal | this_DecimalDot_2= ruleDecimalDot | this_DecimalExp_3= ruleDecimalExp )
+ int alt13=4;
+ alt13 = dfa13.predict(input);
+ switch (alt13) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:547:5: this_Decimal_0= ruleDecimal
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:961:5: this_Decimal_0= ruleDecimal
{
newCompositeNode(grammarAccess.getRealAccess().getDecimalParserRuleCall_0());
- pushFollow(FOLLOW_ruleDecimal_in_ruleReal1354);
+ pushFollow(FOLLOW_ruleDecimal_in_ruleReal2327);
this_Decimal_0=ruleDecimal();
state._fsp--;
@@ -1512,12 +2608,12 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:559:5: this_DotDecimal_1= ruleDotDecimal
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:973:5: this_DotDecimal_1= ruleDotDecimal
{
newCompositeNode(grammarAccess.getRealAccess().getDotDecimalParserRuleCall_1());
- pushFollow(FOLLOW_ruleDotDecimal_in_ruleReal1387);
+ pushFollow(FOLLOW_ruleDotDecimal_in_ruleReal2360);
this_DotDecimal_1=ruleDotDecimal();
state._fsp--;
@@ -1532,12 +2628,12 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
break;
case 3 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:571:5: this_DecimalDot_2= ruleDecimalDot
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:985:5: this_DecimalDot_2= ruleDecimalDot
{
newCompositeNode(grammarAccess.getRealAccess().getDecimalDotParserRuleCall_2());
- pushFollow(FOLLOW_ruleDecimalDot_in_ruleReal1420);
+ pushFollow(FOLLOW_ruleDecimalDot_in_ruleReal2393);
this_DecimalDot_2=ruleDecimalDot();
state._fsp--;
@@ -1552,12 +2648,12 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
break;
case 4 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:583:5: this_DecimalExp_3= ruleDecimalExp
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:997:5: this_DecimalExp_3= ruleDecimalExp
{
newCompositeNode(grammarAccess.getRealAccess().getDecimalExpParserRuleCall_3());
- pushFollow(FOLLOW_ruleDecimalExp_in_ruleReal1453);
+ pushFollow(FOLLOW_ruleDecimalExp_in_ruleReal2426);
this_DecimalExp_3=ruleDecimalExp();
state._fsp--;
@@ -1592,7 +2688,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleDecimal"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:601:1: entryRuleDecimal returns [String current=null] : iv_ruleDecimal= ruleDecimal EOF ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1015:1: entryRuleDecimal returns [String current=null] : iv_ruleDecimal= ruleDecimal EOF ;
public final String entryRuleDecimal() throws RecognitionException {
String current = null;
@@ -1603,17 +2699,17 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:605:2: (iv_ruleDecimal= ruleDecimal EOF )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:606:2: iv_ruleDecimal= ruleDecimal EOF
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1019:2: (iv_ruleDecimal= ruleDecimal EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1020:2: iv_ruleDecimal= ruleDecimal EOF
{
newCompositeNode(grammarAccess.getDecimalRule());
- pushFollow(FOLLOW_ruleDecimal_in_entryRuleDecimal1505);
+ pushFollow(FOLLOW_ruleDecimal_in_entryRuleDecimal2478);
iv_ruleDecimal=ruleDecimal();
state._fsp--;
current =iv_ruleDecimal.getText();
- match(input,EOF,FOLLOW_EOF_in_entryRuleDecimal1516);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleDecimal2489);
}
@@ -1634,7 +2730,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleDecimal"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:616:1: ruleDecimal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT ) ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1030:1: ruleDecimal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT ) ;
public final AntlrDatatypeRuleToken ruleDecimal() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
@@ -1646,27 +2742,27 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:620:28: ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:621:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1034:28: ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1035:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:621:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:621:2: (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1035:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1035:2: (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:621:2: (kw= '+' | kw= '-' )?
- int alt8=3;
- int LA8_0 = input.LA(1);
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1035:2: (kw= '+' | kw= '-' )?
+ int alt14=3;
+ int LA14_0 = input.LA(1);
- if ( (LA8_0==16) ) {
- alt8=1;
+ if ( (LA14_0==28) ) {
+ alt14=1;
}
- else if ( (LA8_0==17) ) {
- alt8=2;
+ else if ( (LA14_0==29) ) {
+ alt14=2;
}
- switch (alt8) {
+ switch (alt14) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:622:2: kw= '+'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1036:2: kw= '+'
{
- kw=(Token)match(input,16,FOLLOW_16_in_ruleDecimal1559);
+ kw=(Token)match(input,28,FOLLOW_28_in_ruleDecimal2532);
current.merge(kw);
newLeafNode(kw, grammarAccess.getDecimalAccess().getPlusSignKeyword_0_0());
@@ -1675,9 +2771,9 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:629:2: kw= '-'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1043:2: kw= '-'
{
- kw=(Token)match(input,17,FOLLOW_17_in_ruleDecimal1578);
+ kw=(Token)match(input,29,FOLLOW_29_in_ruleDecimal2551);
current.merge(kw);
newLeafNode(kw, grammarAccess.getDecimalAccess().getHyphenMinusKeyword_0_1());
@@ -1688,19 +2784,19 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
- this_INT_2=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleDecimal1595);
+ this_INT_2=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleDecimal2568);
current.merge(this_INT_2);
newLeafNode(this_INT_2, grammarAccess.getDecimalAccess().getINTTerminalRuleCall_1());
- kw=(Token)match(input,18,FOLLOW_18_in_ruleDecimal1613);
+ kw=(Token)match(input,30,FOLLOW_30_in_ruleDecimal2586);
current.merge(kw);
newLeafNode(kw, grammarAccess.getDecimalAccess().getFullStopKeyword_2());
- this_INT_4=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleDecimal1628);
+ this_INT_4=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleDecimal2601);
current.merge(this_INT_4);
@@ -1731,7 +2827,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleDotDecimal"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:665:1: entryRuleDotDecimal returns [String current=null] : iv_ruleDotDecimal= ruleDotDecimal EOF ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1079:1: entryRuleDotDecimal returns [String current=null] : iv_ruleDotDecimal= ruleDotDecimal EOF ;
public final String entryRuleDotDecimal() throws RecognitionException {
String current = null;
@@ -1742,17 +2838,17 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:669:2: (iv_ruleDotDecimal= ruleDotDecimal EOF )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:670:2: iv_ruleDotDecimal= ruleDotDecimal EOF
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1083:2: (iv_ruleDotDecimal= ruleDotDecimal EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1084:2: iv_ruleDotDecimal= ruleDotDecimal EOF
{
newCompositeNode(grammarAccess.getDotDecimalRule());
- pushFollow(FOLLOW_ruleDotDecimal_in_entryRuleDotDecimal1684);
+ pushFollow(FOLLOW_ruleDotDecimal_in_entryRuleDotDecimal2657);
iv_ruleDotDecimal=ruleDotDecimal();
state._fsp--;
current =iv_ruleDotDecimal.getText();
- match(input,EOF,FOLLOW_EOF_in_entryRuleDotDecimal1695);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleDotDecimal2668);
}
@@ -1773,7 +2869,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleDotDecimal"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:680:1: ruleDotDecimal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '+' | kw= '-' )? kw= '.' this_INT_3= RULE_INT ) ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1094:1: ruleDotDecimal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '+' | kw= '-' )? kw= '.' this_INT_3= RULE_INT ) ;
public final AntlrDatatypeRuleToken ruleDotDecimal() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
@@ -1784,27 +2880,27 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:684:28: ( ( (kw= '+' | kw= '-' )? kw= '.' this_INT_3= RULE_INT ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:685:1: ( (kw= '+' | kw= '-' )? kw= '.' this_INT_3= RULE_INT )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1098:28: ( ( (kw= '+' | kw= '-' )? kw= '.' this_INT_3= RULE_INT ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1099:1: ( (kw= '+' | kw= '-' )? kw= '.' this_INT_3= RULE_INT )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:685:1: ( (kw= '+' | kw= '-' )? kw= '.' this_INT_3= RULE_INT )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:685:2: (kw= '+' | kw= '-' )? kw= '.' this_INT_3= RULE_INT
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1099:1: ( (kw= '+' | kw= '-' )? kw= '.' this_INT_3= RULE_INT )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1099:2: (kw= '+' | kw= '-' )? kw= '.' this_INT_3= RULE_INT
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:685:2: (kw= '+' | kw= '-' )?
- int alt9=3;
- int LA9_0 = input.LA(1);
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1099:2: (kw= '+' | kw= '-' )?
+ int alt15=3;
+ int LA15_0 = input.LA(1);
- if ( (LA9_0==16) ) {
- alt9=1;
+ if ( (LA15_0==28) ) {
+ alt15=1;
}
- else if ( (LA9_0==17) ) {
- alt9=2;
+ else if ( (LA15_0==29) ) {
+ alt15=2;
}
- switch (alt9) {
+ switch (alt15) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:686:2: kw= '+'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1100:2: kw= '+'
{
- kw=(Token)match(input,16,FOLLOW_16_in_ruleDotDecimal1738);
+ kw=(Token)match(input,28,FOLLOW_28_in_ruleDotDecimal2711);
current.merge(kw);
newLeafNode(kw, grammarAccess.getDotDecimalAccess().getPlusSignKeyword_0_0());
@@ -1813,9 +2909,9 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:693:2: kw= '-'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1107:2: kw= '-'
{
- kw=(Token)match(input,17,FOLLOW_17_in_ruleDotDecimal1757);
+ kw=(Token)match(input,29,FOLLOW_29_in_ruleDotDecimal2730);
current.merge(kw);
newLeafNode(kw, grammarAccess.getDotDecimalAccess().getHyphenMinusKeyword_0_1());
@@ -1826,12 +2922,12 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
- kw=(Token)match(input,18,FOLLOW_18_in_ruleDotDecimal1772);
+ kw=(Token)match(input,30,FOLLOW_30_in_ruleDotDecimal2745);
current.merge(kw);
newLeafNode(kw, grammarAccess.getDotDecimalAccess().getFullStopKeyword_1());
- this_INT_3=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleDotDecimal1787);
+ this_INT_3=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleDotDecimal2760);
current.merge(this_INT_3);
@@ -1862,7 +2958,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleDecimalDot"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:722:1: entryRuleDecimalDot returns [String current=null] : iv_ruleDecimalDot= ruleDecimalDot EOF ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1136:1: entryRuleDecimalDot returns [String current=null] : iv_ruleDecimalDot= ruleDecimalDot EOF ;
public final String entryRuleDecimalDot() throws RecognitionException {
String current = null;
@@ -1873,17 +2969,17 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:726:2: (iv_ruleDecimalDot= ruleDecimalDot EOF )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:727:2: iv_ruleDecimalDot= ruleDecimalDot EOF
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1140:2: (iv_ruleDecimalDot= ruleDecimalDot EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1141:2: iv_ruleDecimalDot= ruleDecimalDot EOF
{
newCompositeNode(grammarAccess.getDecimalDotRule());
- pushFollow(FOLLOW_ruleDecimalDot_in_entryRuleDecimalDot1843);
+ pushFollow(FOLLOW_ruleDecimalDot_in_entryRuleDecimalDot2816);
iv_ruleDecimalDot=ruleDecimalDot();
state._fsp--;
current =iv_ruleDecimalDot.getText();
- match(input,EOF,FOLLOW_EOF_in_entryRuleDecimalDot1854);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleDecimalDot2827);
}
@@ -1904,7 +3000,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleDecimalDot"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:737:1: ruleDecimalDot returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' ) ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1151:1: ruleDecimalDot returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' ) ;
public final AntlrDatatypeRuleToken ruleDecimalDot() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
@@ -1915,27 +3011,27 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:741:28: ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:742:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1155:28: ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1156:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:742:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:742:2: (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1156:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1156:2: (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.'
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:742:2: (kw= '+' | kw= '-' )?
- int alt10=3;
- int LA10_0 = input.LA(1);
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1156:2: (kw= '+' | kw= '-' )?
+ int alt16=3;
+ int LA16_0 = input.LA(1);
- if ( (LA10_0==16) ) {
- alt10=1;
+ if ( (LA16_0==28) ) {
+ alt16=1;
}
- else if ( (LA10_0==17) ) {
- alt10=2;
+ else if ( (LA16_0==29) ) {
+ alt16=2;
}
- switch (alt10) {
+ switch (alt16) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:743:2: kw= '+'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1157:2: kw= '+'
{
- kw=(Token)match(input,16,FOLLOW_16_in_ruleDecimalDot1897);
+ kw=(Token)match(input,28,FOLLOW_28_in_ruleDecimalDot2870);
current.merge(kw);
newLeafNode(kw, grammarAccess.getDecimalDotAccess().getPlusSignKeyword_0_0());
@@ -1944,9 +3040,9 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:750:2: kw= '-'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1164:2: kw= '-'
{
- kw=(Token)match(input,17,FOLLOW_17_in_ruleDecimalDot1916);
+ kw=(Token)match(input,29,FOLLOW_29_in_ruleDecimalDot2889);
current.merge(kw);
newLeafNode(kw, grammarAccess.getDecimalDotAccess().getHyphenMinusKeyword_0_1());
@@ -1957,14 +3053,14 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
- this_INT_2=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleDecimalDot1933);
+ this_INT_2=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleDecimalDot2906);
current.merge(this_INT_2);
newLeafNode(this_INT_2, grammarAccess.getDecimalDotAccess().getINTTerminalRuleCall_1());
- kw=(Token)match(input,18,FOLLOW_18_in_ruleDecimalDot1951);
+ kw=(Token)match(input,30,FOLLOW_30_in_ruleDecimalDot2924);
current.merge(kw);
newLeafNode(kw, grammarAccess.getDecimalDotAccess().getFullStopKeyword_2());
@@ -1993,7 +3089,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "entryRuleDecimalExp"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:779:1: entryRuleDecimalExp returns [String current=null] : iv_ruleDecimalExp= ruleDecimalExp EOF ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1193:1: entryRuleDecimalExp returns [String current=null] : iv_ruleDecimalExp= ruleDecimalExp EOF ;
public final String entryRuleDecimalExp() throws RecognitionException {
String current = null;
@@ -2004,17 +3100,17 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:783:2: (iv_ruleDecimalExp= ruleDecimalExp EOF )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:784:2: iv_ruleDecimalExp= ruleDecimalExp EOF
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1197:2: (iv_ruleDecimalExp= ruleDecimalExp EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1198:2: iv_ruleDecimalExp= ruleDecimalExp EOF
{
newCompositeNode(grammarAccess.getDecimalExpRule());
- pushFollow(FOLLOW_ruleDecimalExp_in_entryRuleDecimalExp2002);
+ pushFollow(FOLLOW_ruleDecimalExp_in_entryRuleDecimalExp2975);
iv_ruleDecimalExp=ruleDecimalExp();
state._fsp--;
current =iv_ruleDecimalExp.getText();
- match(input,EOF,FOLLOW_EOF_in_entryRuleDecimalExp2013);
+ match(input,EOF,FOLLOW_EOF_in_entryRuleDecimalExp2986);
}
@@ -2035,7 +3131,7 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
// $ANTLR start "ruleDecimalExp"
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:794:1: ruleDecimalExp returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT this_EXP_5= RULE_EXP ) ;
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1208:1: ruleDecimalExp returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT this_EXP_5= RULE_EXP ) ;
public final AntlrDatatypeRuleToken ruleDecimalExp() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
@@ -2048,27 +3144,27 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
try {
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:798:28: ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT this_EXP_5= RULE_EXP ) )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:799:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT this_EXP_5= RULE_EXP )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1212:28: ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT this_EXP_5= RULE_EXP ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1213:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT this_EXP_5= RULE_EXP )
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:799:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT this_EXP_5= RULE_EXP )
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:799:2: (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT this_EXP_5= RULE_EXP
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1213:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT this_EXP_5= RULE_EXP )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1213:2: (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT this_EXP_5= RULE_EXP
{
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:799:2: (kw= '+' | kw= '-' )?
- int alt11=3;
- int LA11_0 = input.LA(1);
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1213:2: (kw= '+' | kw= '-' )?
+ int alt17=3;
+ int LA17_0 = input.LA(1);
- if ( (LA11_0==16) ) {
- alt11=1;
+ if ( (LA17_0==28) ) {
+ alt17=1;
}
- else if ( (LA11_0==17) ) {
- alt11=2;
+ else if ( (LA17_0==29) ) {
+ alt17=2;
}
- switch (alt11) {
+ switch (alt17) {
case 1 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:800:2: kw= '+'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1214:2: kw= '+'
{
- kw=(Token)match(input,16,FOLLOW_16_in_ruleDecimalExp2056);
+ kw=(Token)match(input,28,FOLLOW_28_in_ruleDecimalExp3029);
current.merge(kw);
newLeafNode(kw, grammarAccess.getDecimalExpAccess().getPlusSignKeyword_0_0());
@@ -2077,9 +3173,9 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:807:2: kw= '-'
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1221:2: kw= '-'
{
- kw=(Token)match(input,17,FOLLOW_17_in_ruleDecimalExp2075);
+ kw=(Token)match(input,29,FOLLOW_29_in_ruleDecimalExp3048);
current.merge(kw);
newLeafNode(kw, grammarAccess.getDecimalExpAccess().getHyphenMinusKeyword_0_1());
@@ -2090,26 +3186,26 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
- this_INT_2=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleDecimalExp2092);
+ this_INT_2=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleDecimalExp3065);
current.merge(this_INT_2);
newLeafNode(this_INT_2, grammarAccess.getDecimalExpAccess().getINTTerminalRuleCall_1());
- kw=(Token)match(input,18,FOLLOW_18_in_ruleDecimalExp2110);
+ kw=(Token)match(input,30,FOLLOW_30_in_ruleDecimalExp3083);
current.merge(kw);
newLeafNode(kw, grammarAccess.getDecimalExpAccess().getFullStopKeyword_2());
- this_INT_4=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleDecimalExp2125);
+ this_INT_4=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleDecimalExp3098);
current.merge(this_INT_4);
newLeafNode(this_INT_4, grammarAccess.getDecimalExpAccess().getINTTerminalRuleCall_3());
- this_EXP_5=(Token)match(input,RULE_EXP,FOLLOW_RULE_EXP_in_ruleDecimalExp2145);
+ this_EXP_5=(Token)match(input,RULE_EXP,FOLLOW_RULE_EXP_in_ruleDecimalExp3118);
current.merge(this_EXP_5);
@@ -2138,141 +3234,442 @@ public class InternalBaseParser extends AbstractInternalAntlrParser {
}
// $ANTLR end "ruleDecimalExp"
+
+ // $ANTLR start "entryRuleFQN"
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1264:1: entryRuleFQN returns [String current=null] : iv_ruleFQN= ruleFQN EOF ;
+ public final String entryRuleFQN() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleFQN = null;
+
+
+ try {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1265:2: (iv_ruleFQN= ruleFQN EOF )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1266:2: iv_ruleFQN= ruleFQN EOF
+ {
+ newCompositeNode(grammarAccess.getFQNRule());
+ pushFollow(FOLLOW_ruleFQN_in_entryRuleFQN3168);
+ iv_ruleFQN=ruleFQN();
+
+ state._fsp--;
+
+ current =iv_ruleFQN.getText();
+ match(input,EOF,FOLLOW_EOF_in_entryRuleFQN3179);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleFQN"
+
+
+ // $ANTLR start "ruleFQN"
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1273:1: ruleFQN returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ;
+ public final AntlrDatatypeRuleToken ruleFQN() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token this_ID_0=null;
+ Token kw=null;
+ Token this_ID_2=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1276:28: ( (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1277:1: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1277:1: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1277:6: this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )*
+ {
+ this_ID_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleFQN3219);
+
+ current.merge(this_ID_0);
+
+
+ newLeafNode(this_ID_0, grammarAccess.getFQNAccess().getIDTerminalRuleCall_0());
+
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1284:1: (kw= '.' this_ID_2= RULE_ID )*
+ loop18:
+ do {
+ int alt18=2;
+ int LA18_0 = input.LA(1);
+
+ if ( (LA18_0==30) ) {
+ alt18=1;
+ }
+
+
+ switch (alt18) {
+ case 1 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1285:2: kw= '.' this_ID_2= RULE_ID
+ {
+ kw=(Token)match(input,30,FOLLOW_30_in_ruleFQN3238);
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getFQNAccess().getFullStopKeyword_1_0());
+
+ this_ID_2=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleFQN3253);
+
+ current.merge(this_ID_2);
+
+
+ newLeafNode(this_ID_2, grammarAccess.getFQNAccess().getIDTerminalRuleCall_1_1());
+
+
+ }
+ break;
+
+ default :
+ break loop18;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleFQN"
+
+
+ // $ANTLR start "ruleLiteralType"
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1305:1: ruleLiteralType returns [Enumerator current=null] : ( (enumLiteral_0= 'ptBoolean' ) | (enumLiteral_1= 'ptInteger' ) | (enumLiteral_2= 'ptReal' ) | (enumLiteral_3= 'ptCharacter' ) ) ;
+ public final Enumerator ruleLiteralType() throws RecognitionException {
+ Enumerator current = null;
+
+ Token enumLiteral_0=null;
+ Token enumLiteral_1=null;
+ Token enumLiteral_2=null;
+ Token enumLiteral_3=null;
+
+ enterRule();
+ try {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1307:28: ( ( (enumLiteral_0= 'ptBoolean' ) | (enumLiteral_1= 'ptInteger' ) | (enumLiteral_2= 'ptReal' ) | (enumLiteral_3= 'ptCharacter' ) ) )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1308:1: ( (enumLiteral_0= 'ptBoolean' ) | (enumLiteral_1= 'ptInteger' ) | (enumLiteral_2= 'ptReal' ) | (enumLiteral_3= 'ptCharacter' ) )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1308:1: ( (enumLiteral_0= 'ptBoolean' ) | (enumLiteral_1= 'ptInteger' ) | (enumLiteral_2= 'ptReal' ) | (enumLiteral_3= 'ptCharacter' ) )
+ int alt19=4;
+ switch ( input.LA(1) ) {
+ case 31:
+ {
+ alt19=1;
+ }
+ break;
+ case 32:
+ {
+ alt19=2;
+ }
+ break;
+ case 33:
+ {
+ alt19=3;
+ }
+ break;
+ case 34:
+ {
+ alt19=4;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 19, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt19) {
+ case 1 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1308:2: (enumLiteral_0= 'ptBoolean' )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1308:2: (enumLiteral_0= 'ptBoolean' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1308:4: enumLiteral_0= 'ptBoolean'
+ {
+ enumLiteral_0=(Token)match(input,31,FOLLOW_31_in_ruleLiteralType3314);
+
+ current = grammarAccess.getLiteralTypeAccess().getBOOLEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_0, grammarAccess.getLiteralTypeAccess().getBOOLEnumLiteralDeclaration_0());
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1314:6: (enumLiteral_1= 'ptInteger' )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1314:6: (enumLiteral_1= 'ptInteger' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1314:8: enumLiteral_1= 'ptInteger'
+ {
+ enumLiteral_1=(Token)match(input,32,FOLLOW_32_in_ruleLiteralType3331);
+
+ current = grammarAccess.getLiteralTypeAccess().getINTEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_1, grammarAccess.getLiteralTypeAccess().getINTEnumLiteralDeclaration_1());
+
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1320:6: (enumLiteral_2= 'ptReal' )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1320:6: (enumLiteral_2= 'ptReal' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1320:8: enumLiteral_2= 'ptReal'
+ {
+ enumLiteral_2=(Token)match(input,33,FOLLOW_33_in_ruleLiteralType3348);
+
+ current = grammarAccess.getLiteralTypeAccess().getREALEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_2, grammarAccess.getLiteralTypeAccess().getREALEnumLiteralDeclaration_2());
+
+
+ }
+
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1326:6: (enumLiteral_3= 'ptCharacter' )
+ {
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1326:6: (enumLiteral_3= 'ptCharacter' )
+ // ../org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/parser/antlr/internal/InternalBase.g:1326:8: enumLiteral_3= 'ptCharacter'
+ {
+ enumLiteral_3=(Token)match(input,34,FOLLOW_34_in_ruleLiteralType3365);
+
+ current = grammarAccess.getLiteralTypeAccess().getCHAREnumLiteralDeclaration_3().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_3, grammarAccess.getLiteralTypeAccess().getCHAREnumLiteralDeclaration_3());
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleLiteralType"
+
// Delegated rules
- protected DFA7 dfa7 = new DFA7(this);
- static final String DFA7_eotS =
+ protected DFA13 dfa13 = new DFA13(this);
+ static final String DFA13_eotS =
"\12\uffff";
- static final String DFA7_eofS =
+ static final String DFA13_eofS =
"\5\uffff\1\7\1\10\3\uffff";
- static final String DFA7_minS =
- "\3\5\1\22\1\uffff\1\5\1\7\3\uffff";
- static final String DFA7_maxS =
- "\4\22\1\uffff\2\15\3\uffff";
- static final String DFA7_acceptS =
+ static final String DFA13_minS =
+ "\3\6\1\36\1\uffff\1\6\1\10\3\uffff";
+ static final String DFA13_maxS =
+ "\4\36\1\uffff\2\20\3\uffff";
+ static final String DFA13_acceptS =
"\4\uffff\1\2\2\uffff\1\3\1\1\1\4";
- static final String DFA7_specialS =
+ static final String DFA13_specialS =
"\12\uffff}>";
- static final String[] DFA7_transitionS = {
- "\1\3\12\uffff\1\1\1\2\1\4",
- "\1\3\14\uffff\1\4",
- "\1\3\14\uffff\1\4",
+ static final String[] DFA13_transitionS = {
+ "\1\3\25\uffff\1\1\1\2\1\4",
+ "\1\3\27\uffff\1\4",
+ "\1\3\27\uffff\1\4",
"\1\5",
"",
- "\1\6\7\uffff\1\7",
- "\1\11\5\uffff\1\10",
+ "\1\6\10\uffff\2\7",
+ "\1\11\6\uffff\2\10",
"",
"",
""
};
- static final short[] DFA7_eot = DFA.unpackEncodedString(DFA7_eotS);
- static final short[] DFA7_eof = DFA.unpackEncodedString(DFA7_eofS);
- static final char[] DFA7_min = DFA.unpackEncodedStringToUnsignedChars(DFA7_minS);
- static final char[] DFA7_max = DFA.unpackEncodedStringToUnsignedChars(DFA7_maxS);
- static final short[] DFA7_accept = DFA.unpackEncodedString(DFA7_acceptS);
- static final short[] DFA7_special = DFA.unpackEncodedString(DFA7_specialS);
- static final short[][] DFA7_transition;
+ static final short[] DFA13_eot = DFA.unpackEncodedString(DFA13_eotS);
+ static final short[] DFA13_eof = DFA.unpackEncodedString(DFA13_eofS);
+ static final char[] DFA13_min = DFA.unpackEncodedStringToUnsignedChars(DFA13_minS);
+ static final char[] DFA13_max = DFA.unpackEncodedStringToUnsignedChars(DFA13_maxS);
+ static final short[] DFA13_accept = DFA.unpackEncodedString(DFA13_acceptS);
+ static final short[] DFA13_special = DFA.unpackEncodedString(DFA13_specialS);
+ static final short[][] DFA13_transition;
static {
- int numStates = DFA7_transitionS.length;
- DFA7_transition = new short[numStates][];
+ int numStates = DFA13_transitionS.length;
+ DFA13_transition = new short[numStates][];
for (int i=0; i<numStates; i++) {
- DFA7_transition[i] = DFA.unpackEncodedString(DFA7_transitionS[i]);
+ DFA13_transition[i] = DFA.unpackEncodedString(DFA13_transitionS[i]);
}
}
- class DFA7 extends DFA {
+ class DFA13 extends DFA {
- public DFA7(BaseRecognizer recognizer) {
+ public DFA13(BaseRecognizer recognizer) {
this.recognizer = recognizer;
- this.decisionNumber = 7;
- this.eot = DFA7_eot;
- this.eof = DFA7_eof;
- this.min = DFA7_min;
- this.max = DFA7_max;
- this.accept = DFA7_accept;
- this.special = DFA7_special;
- this.transition = DFA7_transition;
+ this.decisionNumber = 13;
+ this.eot = DFA13_eot;
+ this.eof = DFA13_eof;
+ this.min = DFA13_min;
+ this.max = DFA13_max;
+ this.accept = DFA13_accept;
+ this.special = DFA13_special;
+ this.transition = DFA13_transition;
}
public String getDescription() {
- return "546:1: (this_Decimal_0= ruleDecimal | this_DotDecimal_1= ruleDotDecimal | this_DecimalDot_2= ruleDecimalDot | this_DecimalExp_3= ruleDecimalExp )";
+ return "960:1: (this_Decimal_0= ruleDecimal | this_DotDecimal_1= ruleDotDecimal | this_DecimalDot_2= ruleDecimalDot | this_DecimalExp_3= ruleDecimalExp )";
}
}
- public static final BitSet FOLLOW_ruleLiteralArray_in_entryRuleLiteralArray75 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleLiteralArray85 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleLiteral_in_ruleLiteralArray131 = new BitSet(new long[]{0x0000000000002002L});
- public static final BitSet FOLLOW_13_in_ruleLiteralArray144 = new BitSet(new long[]{0x000000000007C070L});
- public static final BitSet FOLLOW_ruleLiteral_in_ruleLiteralArray165 = new BitSet(new long[]{0x0000000000002002L});
- public static final BitSet FOLLOW_ruleLiteral_in_entryRuleLiteral203 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleLiteral213 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleBooleanLiteral_in_ruleLiteral260 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleNumberLiteral_in_ruleLiteral287 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleStringLiteral_in_ruleLiteral314 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleBooleanLiteral_in_entryRuleBooleanLiteral349 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleBooleanLiteral359 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_14_in_ruleBooleanLiteral406 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_15_in_ruleBooleanLiteral430 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleNumberLiteral_in_entryRuleNumberLiteral480 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleNumberLiteral490 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleIntLiteral_in_ruleNumberLiteral537 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleRealLiteral_in_ruleNumberLiteral564 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleRealLiteral_in_entryRuleRealLiteral599 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleRealLiteral609 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleReal_in_ruleRealLiteral664 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleIntLiteral_in_entryRuleIntLiteral700 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleIntLiteral710 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleInteger_in_ruleIntLiteral765 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral801 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleStringLiteral811 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_RULE_STRING_in_ruleStringLiteral862 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleInteger_in_entryRuleInteger904 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleInteger915 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleSignedInteger_in_ruleInteger962 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleHexadecimal_in_ruleInteger995 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleSignedInteger_in_entryRuleSignedInteger1047 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleSignedInteger1058 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_16_in_ruleSignedInteger1101 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_17_in_ruleSignedInteger1120 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_RULE_INT_in_ruleSignedInteger1137 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleHexadecimal_in_entryRuleHexadecimal1193 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleHexadecimal1204 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_RULE_HEX_in_ruleHexadecimal1247 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleReal_in_entryRuleReal1296 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleReal1307 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleDecimal_in_ruleReal1354 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleDotDecimal_in_ruleReal1387 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleDecimalDot_in_ruleReal1420 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleDecimalExp_in_ruleReal1453 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleDecimal_in_entryRuleDecimal1505 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleDecimal1516 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_16_in_ruleDecimal1559 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_17_in_ruleDecimal1578 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_RULE_INT_in_ruleDecimal1595 = new BitSet(new long[]{0x0000000000040000L});
- public static final BitSet FOLLOW_18_in_ruleDecimal1613 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_RULE_INT_in_ruleDecimal1628 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleDotDecimal_in_entryRuleDotDecimal1684 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleDotDecimal1695 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_16_in_ruleDotDecimal1738 = new BitSet(new long[]{0x0000000000040000L});
- public static final BitSet FOLLOW_17_in_ruleDotDecimal1757 = new BitSet(new long[]{0x0000000000040000L});
- public static final BitSet FOLLOW_18_in_ruleDotDecimal1772 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_RULE_INT_in_ruleDotDecimal1787 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleDecimalDot_in_entryRuleDecimalDot1843 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleDecimalDot1854 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_16_in_ruleDecimalDot1897 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_17_in_ruleDecimalDot1916 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_RULE_INT_in_ruleDecimalDot1933 = new BitSet(new long[]{0x0000000000040000L});
- public static final BitSet FOLLOW_18_in_ruleDecimalDot1951 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_ruleDecimalExp_in_entryRuleDecimalExp2002 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_EOF_in_entryRuleDecimalExp2013 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_16_in_ruleDecimalExp2056 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_17_in_ruleDecimalExp2075 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_RULE_INT_in_ruleDecimalExp2092 = new BitSet(new long[]{0x0000000000040000L});
- public static final BitSet FOLLOW_18_in_ruleDecimalExp2110 = new BitSet(new long[]{0x0000000000000020L});
- public static final BitSet FOLLOW_RULE_INT_in_ruleDecimalExp2125 = new BitSet(new long[]{0x0000000000000080L});
- public static final BitSet FOLLOW_RULE_EXP_in_ruleDecimalExp2145 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleAnnotation_in_entryRuleAnnotation75 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleAnnotation85 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_13_in_ruleAnnotation122 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ruleFQN_in_ruleAnnotation145 = new BitSet(new long[]{0x0000000000004002L});
+ public static final BitSet FOLLOW_14_in_ruleAnnotation158 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ruleKeyValue_in_ruleAnnotation179 = new BitSet(new long[]{0x0000000000018000L});
+ public static final BitSet FOLLOW_15_in_ruleAnnotation192 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_ruleKeyValue_in_ruleAnnotation213 = new BitSet(new long[]{0x0000000000018000L});
+ public static final BitSet FOLLOW_16_in_ruleAnnotation227 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleKeyValue_in_entryRuleKeyValue265 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleKeyValue275 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_ID_in_ruleKeyValue317 = new BitSet(new long[]{0x0000000000020000L});
+ public static final BitSet FOLLOW_17_in_ruleKeyValue334 = new BitSet(new long[]{0x000000007C0000E0L});
+ public static final BitSet FOLLOW_ruleLiteral_in_ruleKeyValue355 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleAnnotationTargetType_in_entryRuleAnnotationTargetType394 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleAnnotationTargetType405 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_ID_in_ruleAnnotationTargetType444 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleAnnotationAttribute_in_entryRuleAnnotationAttribute488 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleAnnotationAttribute498 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleSimpleAnnotationAttribute_in_ruleAnnotationAttribute545 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleEnumAnnotationAttribute_in_ruleAnnotationAttribute572 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleSimpleAnnotationAttribute_in_entryRuleSimpleAnnotationAttribute607 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleSimpleAnnotationAttribute617 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_18_in_ruleSimpleAnnotationAttribute661 = new BitSet(new long[]{0x0000000000100000L});
+ public static final BitSet FOLLOW_19_in_ruleSimpleAnnotationAttribute692 = new BitSet(new long[]{0x0000000000100000L});
+ public static final BitSet FOLLOW_20_in_ruleSimpleAnnotationAttribute705 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_RULE_ID_in_ruleSimpleAnnotationAttribute722 = new BitSet(new long[]{0x0000000000200000L});
+ public static final BitSet FOLLOW_21_in_ruleSimpleAnnotationAttribute739 = new BitSet(new long[]{0x0000000780000000L});
+ public static final BitSet FOLLOW_ruleLiteralType_in_ruleSimpleAnnotationAttribute760 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleEnumAnnotationAttribute_in_entryRuleEnumAnnotationAttribute796 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleEnumAnnotationAttribute806 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_18_in_ruleEnumAnnotationAttribute850 = new BitSet(new long[]{0x0000000000100000L});
+ public static final BitSet FOLLOW_19_in_ruleEnumAnnotationAttribute881 = new BitSet(new long[]{0x0000000000100000L});
+ public static final BitSet FOLLOW_20_in_ruleEnumAnnotationAttribute894 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_RULE_ID_in_ruleEnumAnnotationAttribute911 = new BitSet(new long[]{0x0000000000200000L});
+ public static final BitSet FOLLOW_21_in_ruleEnumAnnotationAttribute928 = new BitSet(new long[]{0x0000000000400000L});
+ public static final BitSet FOLLOW_22_in_ruleEnumAnnotationAttribute940 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_RULE_STRING_in_ruleEnumAnnotationAttribute957 = new BitSet(new long[]{0x0000000000808000L});
+ public static final BitSet FOLLOW_15_in_ruleEnumAnnotationAttribute975 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_RULE_STRING_in_ruleEnumAnnotationAttribute992 = new BitSet(new long[]{0x0000000000808000L});
+ public static final BitSet FOLLOW_23_in_ruleEnumAnnotationAttribute1011 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleDocumentation_in_entryRuleDocumentation1047 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleDocumentation1057 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_24_in_ruleDocumentation1103 = new BitSet(new long[]{0x0000000002000020L});
+ public static final BitSet FOLLOW_RULE_STRING_in_ruleDocumentation1120 = new BitSet(new long[]{0x0000000002000020L});
+ public static final BitSet FOLLOW_25_in_ruleDocumentation1138 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleLiteral_in_entryRuleLiteral1176 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleLiteral1186 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBooleanLiteral_in_ruleLiteral1233 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleNumberLiteral_in_ruleLiteral1260 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleStringLiteral_in_ruleLiteral1287 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBooleanLiteral_in_entryRuleBooleanLiteral1322 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleBooleanLiteral1332 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_26_in_ruleBooleanLiteral1379 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_27_in_ruleBooleanLiteral1403 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleNumberLiteral_in_entryRuleNumberLiteral1453 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleNumberLiteral1463 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleIntLiteral_in_ruleNumberLiteral1510 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleRealLiteral_in_ruleNumberLiteral1537 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleRealLiteral_in_entryRuleRealLiteral1572 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleRealLiteral1582 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleReal_in_ruleRealLiteral1637 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleIntLiteral_in_entryRuleIntLiteral1673 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleIntLiteral1683 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleInteger_in_ruleIntLiteral1738 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral1774 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleStringLiteral1784 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_STRING_in_ruleStringLiteral1835 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleInteger_in_entryRuleInteger1877 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleInteger1888 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleSignedInteger_in_ruleInteger1935 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleHexadecimal_in_ruleInteger1968 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleSignedInteger_in_entryRuleSignedInteger2020 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleSignedInteger2031 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_28_in_ruleSignedInteger2074 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_29_in_ruleSignedInteger2093 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_RULE_INT_in_ruleSignedInteger2110 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleHexadecimal_in_entryRuleHexadecimal2166 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleHexadecimal2177 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_HEX_in_ruleHexadecimal2220 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleReal_in_entryRuleReal2269 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleReal2280 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleDecimal_in_ruleReal2327 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleDotDecimal_in_ruleReal2360 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleDecimalDot_in_ruleReal2393 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleDecimalExp_in_ruleReal2426 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleDecimal_in_entryRuleDecimal2478 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleDecimal2489 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_28_in_ruleDecimal2532 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_29_in_ruleDecimal2551 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_RULE_INT_in_ruleDecimal2568 = new BitSet(new long[]{0x0000000040000000L});
+ public static final BitSet FOLLOW_30_in_ruleDecimal2586 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_RULE_INT_in_ruleDecimal2601 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleDotDecimal_in_entryRuleDotDecimal2657 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleDotDecimal2668 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_28_in_ruleDotDecimal2711 = new BitSet(new long[]{0x0000000040000000L});
+ public static final BitSet FOLLOW_29_in_ruleDotDecimal2730 = new BitSet(new long[]{0x0000000040000000L});
+ public static final BitSet FOLLOW_30_in_ruleDotDecimal2745 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_RULE_INT_in_ruleDotDecimal2760 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleDecimalDot_in_entryRuleDecimalDot2816 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleDecimalDot2827 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_28_in_ruleDecimalDot2870 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_29_in_ruleDecimalDot2889 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_RULE_INT_in_ruleDecimalDot2906 = new BitSet(new long[]{0x0000000040000000L});
+ public static final BitSet FOLLOW_30_in_ruleDecimalDot2924 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleDecimalExp_in_entryRuleDecimalExp2975 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleDecimalExp2986 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_28_in_ruleDecimalExp3029 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_29_in_ruleDecimalExp3048 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_RULE_INT_in_ruleDecimalExp3065 = new BitSet(new long[]{0x0000000040000000L});
+ public static final BitSet FOLLOW_30_in_ruleDecimalExp3083 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_RULE_INT_in_ruleDecimalExp3098 = new BitSet(new long[]{0x0000000000000100L});
+ public static final BitSet FOLLOW_RULE_EXP_in_ruleDecimalExp3118 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleFQN_in_entryRuleFQN3168 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleFQN3179 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_ID_in_ruleFQN3219 = new BitSet(new long[]{0x0000000040000002L});
+ public static final BitSet FOLLOW_30_in_ruleFQN3238 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_RULE_ID_in_ruleFQN3253 = new BitSet(new long[]{0x0000000040000002L});
+ public static final BitSet FOLLOW_31_in_ruleLiteralType3314 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_32_in_ruleLiteralType3331 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_33_in_ruleLiteralType3348 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_34_in_ruleLiteralType3365 = new BitSet(new long[]{0x0000000000000002L});
} \ No newline at end of file
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/serializer/BaseSemanticSequencer.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/serializer/BaseSemanticSequencer.java
index 56ae9025d..3e4b6cc70 100644
--- a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/serializer/BaseSemanticSequencer.java
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/serializer/BaseSemanticSequencer.java
@@ -3,11 +3,17 @@ package org.eclipse.etrice.core.common.serializer;
import com.google.inject.Inject;
import com.google.inject.Provider;
import org.eclipse.emf.ecore.EObject;
+import org.eclipse.etrice.core.common.base.Annotation;
+import org.eclipse.etrice.core.common.base.AnnotationType;
import org.eclipse.etrice.core.common.base.BasePackage;
import org.eclipse.etrice.core.common.base.BooleanLiteral;
+import org.eclipse.etrice.core.common.base.Documentation;
+import org.eclipse.etrice.core.common.base.EnumAnnotationAttribute;
import org.eclipse.etrice.core.common.base.IntLiteral;
+import org.eclipse.etrice.core.common.base.KeyValue;
import org.eclipse.etrice.core.common.base.LiteralArray;
import org.eclipse.etrice.core.common.base.RealLiteral;
+import org.eclipse.etrice.core.common.base.SimpleAnnotationAttribute;
import org.eclipse.etrice.core.common.base.StringLiteral;
import org.eclipse.etrice.core.common.services.BaseGrammarAccess;
import org.eclipse.xtext.serializer.acceptor.ISemanticSequenceAcceptor;
@@ -29,6 +35,18 @@ public class BaseSemanticSequencer extends AbstractDelegatingSemanticSequencer {
public void createSequence(EObject context, EObject semanticObject) {
if(semanticObject.eClass().getEPackage() == BasePackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) {
+ case BasePackage.ANNOTATION:
+ if(context == grammarAccess.getAnnotationRule()) {
+ sequence_Annotation(context, (Annotation) semanticObject);
+ return;
+ }
+ else break;
+ case BasePackage.ANNOTATION_TYPE:
+ if(context == grammarAccess.getAnnotationTypeRule()) {
+ sequence_AnnotationType(context, (AnnotationType) semanticObject);
+ return;
+ }
+ else break;
case BasePackage.BOOLEAN_LITERAL:
if(context == grammarAccess.getBooleanLiteralRule() ||
context == grammarAccess.getLiteralRule()) {
@@ -36,6 +54,19 @@ public class BaseSemanticSequencer extends AbstractDelegatingSemanticSequencer {
return;
}
else break;
+ case BasePackage.DOCUMENTATION:
+ if(context == grammarAccess.getDocumentationRule()) {
+ sequence_Documentation(context, (Documentation) semanticObject);
+ return;
+ }
+ else break;
+ case BasePackage.ENUM_ANNOTATION_ATTRIBUTE:
+ if(context == grammarAccess.getAnnotationAttributeRule() ||
+ context == grammarAccess.getEnumAnnotationAttributeRule()) {
+ sequence_EnumAnnotationAttribute(context, (EnumAnnotationAttribute) semanticObject);
+ return;
+ }
+ else break;
case BasePackage.INT_LITERAL:
if(context == grammarAccess.getIntLiteralRule() ||
context == grammarAccess.getLiteralRule() ||
@@ -44,6 +75,12 @@ public class BaseSemanticSequencer extends AbstractDelegatingSemanticSequencer {
return;
}
else break;
+ case BasePackage.KEY_VALUE:
+ if(context == grammarAccess.getKeyValueRule()) {
+ sequence_KeyValue(context, (KeyValue) semanticObject);
+ return;
+ }
+ else break;
case BasePackage.LITERAL_ARRAY:
if(context == grammarAccess.getLiteralArrayRule()) {
sequence_LiteralArray(context, (LiteralArray) semanticObject);
@@ -58,6 +95,13 @@ public class BaseSemanticSequencer extends AbstractDelegatingSemanticSequencer {
return;
}
else break;
+ case BasePackage.SIMPLE_ANNOTATION_ATTRIBUTE:
+ if(context == grammarAccess.getAnnotationAttributeRule() ||
+ context == grammarAccess.getSimpleAnnotationAttributeRule()) {
+ sequence_SimpleAnnotationAttribute(context, (SimpleAnnotationAttribute) semanticObject);
+ return;
+ }
+ else break;
case BasePackage.STRING_LITERAL:
if(context == grammarAccess.getLiteralRule() ||
context == grammarAccess.getStringLiteralRule()) {
@@ -71,6 +115,29 @@ public class BaseSemanticSequencer extends AbstractDelegatingSemanticSequencer {
/**
* Constraint:
+ * (
+ * name=ID
+ * docu=Documentation?
+ * (targets+=AnnotationTargetType | (targets+=AnnotationTargetType targets+=AnnotationTargetType*))
+ * attributes+=AnnotationAttribute*
+ * )
+ */
+ protected void sequence_AnnotationType(EObject context, AnnotationType semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * (type=[AnnotationType|FQN] (attributes+=KeyValue attributes+=KeyValue*)?)
+ */
+ protected void sequence_Annotation(EObject context, Annotation semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
* (isTrue?='true'?)
*/
protected void sequence_BooleanLiteral(EObject context, BooleanLiteral semanticObject) {
@@ -80,6 +147,24 @@ public class BaseSemanticSequencer extends AbstractDelegatingSemanticSequencer {
/**
* Constraint:
+ * (lines+=STRING*)
+ */
+ protected void sequence_Documentation(EObject context, Documentation semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * (optional?='optional'? name=ID values+=STRING values+=STRING*)
+ */
+ protected void sequence_EnumAnnotationAttribute(EObject context, EnumAnnotationAttribute semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
* value=Integer
*/
protected void sequence_IntLiteral(EObject context, IntLiteral semanticObject) {
@@ -96,6 +181,25 @@ public class BaseSemanticSequencer extends AbstractDelegatingSemanticSequencer {
/**
* Constraint:
+ * (key=ID value=Literal)
+ */
+ protected void sequence_KeyValue(EObject context, KeyValue semanticObject) {
+ if(errorAcceptor != null) {
+ if(transientValues.isValueTransient(semanticObject, BasePackage.Literals.KEY_VALUE__KEY) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, BasePackage.Literals.KEY_VALUE__KEY));
+ if(transientValues.isValueTransient(semanticObject, BasePackage.Literals.KEY_VALUE__VALUE) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, BasePackage.Literals.KEY_VALUE__VALUE));
+ }
+ INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
+ SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
+ feeder.accept(grammarAccess.getKeyValueAccess().getKeyIDTerminalRuleCall_0_0(), semanticObject.getKey());
+ feeder.accept(grammarAccess.getKeyValueAccess().getValueLiteralParserRuleCall_2_0(), semanticObject.getValue());
+ feeder.finish();
+ }
+
+
+ /**
+ * Constraint:
* (literals+=Literal literals+=Literal*)
*/
protected void sequence_LiteralArray(EObject context, LiteralArray semanticObject) {
@@ -121,6 +225,15 @@ public class BaseSemanticSequencer extends AbstractDelegatingSemanticSequencer {
/**
* Constraint:
+ * (optional?='optional'? name=ID type=LiteralType)
+ */
+ protected void sequence_SimpleAnnotationAttribute(EObject context, SimpleAnnotationAttribute semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
* value=STRING
*/
protected void sequence_StringLiteral(EObject context, StringLiteral semanticObject) {
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/services/BaseGrammarAccess.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/services/BaseGrammarAccess.java
index 30e59ea61..9016ada4b 100644
--- a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/services/BaseGrammarAccess.java
+++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/services/BaseGrammarAccess.java
@@ -18,6 +18,434 @@ import org.eclipse.xtext.common.services.TerminalsGrammarAccess;
public class BaseGrammarAccess extends AbstractGrammarElementFinder {
+ public class AnnotationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Annotation");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cCommercialAtKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cTypeAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final CrossReference cTypeAnnotationTypeCrossReference_1_0 = (CrossReference)cTypeAssignment_1.eContents().get(0);
+ private final RuleCall cTypeAnnotationTypeFQNParserRuleCall_1_0_1 = (RuleCall)cTypeAnnotationTypeCrossReference_1_0.eContents().get(1);
+ private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
+ private final Keyword cLeftParenthesisKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
+ private final Assignment cAttributesAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1);
+ private final RuleCall cAttributesKeyValueParserRuleCall_2_1_0 = (RuleCall)cAttributesAssignment_2_1.eContents().get(0);
+ private final Group cGroup_2_2 = (Group)cGroup_2.eContents().get(2);
+ private final Keyword cCommaKeyword_2_2_0 = (Keyword)cGroup_2_2.eContents().get(0);
+ private final Assignment cAttributesAssignment_2_2_1 = (Assignment)cGroup_2_2.eContents().get(1);
+ private final RuleCall cAttributesKeyValueParserRuleCall_2_2_1_0 = (RuleCall)cAttributesAssignment_2_2_1.eContents().get(0);
+ private final Keyword cRightParenthesisKeyword_2_3 = (Keyword)cGroup_2.eContents().get(3);
+
+ //// **************************************************************
+ //
+ //// AnnotationType and Annotation Rules
+ //
+ //Annotation:
+ //
+ // "@" type=[AnnotationType|FQN] ("(" attributes+=KeyValue ("," attributes+=KeyValue)* ")")?;
+ public ParserRule getRule() { return rule; }
+
+ //"@" type=[AnnotationType|FQN] ("(" attributes+=KeyValue ("," attributes+=KeyValue)* ")")?
+ public Group getGroup() { return cGroup; }
+
+ //"@"
+ public Keyword getCommercialAtKeyword_0() { return cCommercialAtKeyword_0; }
+
+ //type=[AnnotationType|FQN]
+ public Assignment getTypeAssignment_1() { return cTypeAssignment_1; }
+
+ //[AnnotationType|FQN]
+ public CrossReference getTypeAnnotationTypeCrossReference_1_0() { return cTypeAnnotationTypeCrossReference_1_0; }
+
+ //FQN
+ public RuleCall getTypeAnnotationTypeFQNParserRuleCall_1_0_1() { return cTypeAnnotationTypeFQNParserRuleCall_1_0_1; }
+
+ //("(" attributes+=KeyValue ("," attributes+=KeyValue)* ")")?
+ public Group getGroup_2() { return cGroup_2; }
+
+ //"("
+ public Keyword getLeftParenthesisKeyword_2_0() { return cLeftParenthesisKeyword_2_0; }
+
+ //attributes+=KeyValue
+ public Assignment getAttributesAssignment_2_1() { return cAttributesAssignment_2_1; }
+
+ //KeyValue
+ public RuleCall getAttributesKeyValueParserRuleCall_2_1_0() { return cAttributesKeyValueParserRuleCall_2_1_0; }
+
+ //("," attributes+=KeyValue)*
+ public Group getGroup_2_2() { return cGroup_2_2; }
+
+ //","
+ public Keyword getCommaKeyword_2_2_0() { return cCommaKeyword_2_2_0; }
+
+ //attributes+=KeyValue
+ public Assignment getAttributesAssignment_2_2_1() { return cAttributesAssignment_2_2_1; }
+
+ //KeyValue
+ public RuleCall getAttributesKeyValueParserRuleCall_2_2_1_0() { return cAttributesKeyValueParserRuleCall_2_2_1_0; }
+
+ //")"
+ public Keyword getRightParenthesisKeyword_2_3() { return cRightParenthesisKeyword_2_3; }
+ }
+
+ public class KeyValueElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "KeyValue");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cKeyAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cKeyIDTerminalRuleCall_0_0 = (RuleCall)cKeyAssignment_0.eContents().get(0);
+ private final Keyword cEqualsSignKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cValueAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cValueLiteralParserRuleCall_2_0 = (RuleCall)cValueAssignment_2.eContents().get(0);
+
+ //KeyValue:
+ //
+ // key=ID "=" value=Literal;
+ public ParserRule getRule() { return rule; }
+
+ //key=ID "=" value=Literal
+ public Group getGroup() { return cGroup; }
+
+ //key=ID
+ public Assignment getKeyAssignment_0() { return cKeyAssignment_0; }
+
+ //ID
+ public RuleCall getKeyIDTerminalRuleCall_0_0() { return cKeyIDTerminalRuleCall_0_0; }
+
+ //"="
+ public Keyword getEqualsSignKeyword_1() { return cEqualsSignKeyword_1; }
+
+ //value=Literal
+ public Assignment getValueAssignment_2() { return cValueAssignment_2; }
+
+ //Literal
+ public RuleCall getValueLiteralParserRuleCall_2_0() { return cValueLiteralParserRuleCall_2_0; }
+ }
+
+ public class AnnotationTypeElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "AnnotationType");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cAnnotationTypeKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
+ private final Assignment cDocuAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cDocuDocumentationParserRuleCall_2_0 = (RuleCall)cDocuAssignment_2.eContents().get(0);
+ private final Keyword cLeftCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
+ private final Keyword cTargetKeyword_4 = (Keyword)cGroup.eContents().get(4);
+ private final Keyword cEqualsSignKeyword_5 = (Keyword)cGroup.eContents().get(5);
+ private final Alternatives cAlternatives_6 = (Alternatives)cGroup.eContents().get(6);
+ private final Assignment cTargetsAssignment_6_0 = (Assignment)cAlternatives_6.eContents().get(0);
+ private final RuleCall cTargetsAnnotationTargetTypeParserRuleCall_6_0_0 = (RuleCall)cTargetsAssignment_6_0.eContents().get(0);
+ private final Group cGroup_6_1 = (Group)cAlternatives_6.eContents().get(1);
+ private final Keyword cLeftCurlyBracketKeyword_6_1_0 = (Keyword)cGroup_6_1.eContents().get(0);
+ private final Assignment cTargetsAssignment_6_1_1 = (Assignment)cGroup_6_1.eContents().get(1);
+ private final RuleCall cTargetsAnnotationTargetTypeParserRuleCall_6_1_1_0 = (RuleCall)cTargetsAssignment_6_1_1.eContents().get(0);
+ private final Group cGroup_6_1_2 = (Group)cGroup_6_1.eContents().get(2);
+ private final Keyword cCommaKeyword_6_1_2_0 = (Keyword)cGroup_6_1_2.eContents().get(0);
+ private final Assignment cTargetsAssignment_6_1_2_1 = (Assignment)cGroup_6_1_2.eContents().get(1);
+ private final RuleCall cTargetsAnnotationTargetTypeParserRuleCall_6_1_2_1_0 = (RuleCall)cTargetsAssignment_6_1_2_1.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_6_1_3 = (Keyword)cGroup_6_1.eContents().get(3);
+ private final Assignment cAttributesAssignment_7 = (Assignment)cGroup.eContents().get(7);
+ private final RuleCall cAttributesAnnotationAttributeParserRuleCall_7_0 = (RuleCall)cAttributesAssignment_7.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_8 = (Keyword)cGroup.eContents().get(8);
+
+ //AnnotationType:
+ //
+ // "AnnotationType" name=ID docu=Documentation? "{" "target" "=" (targets+=AnnotationTargetType | "{"
+ //
+ // targets+=AnnotationTargetType ("," targets+=AnnotationTargetType)* "}") attributes+=AnnotationAttribute* "}";
+ public ParserRule getRule() { return rule; }
+
+ //"AnnotationType" name=ID docu=Documentation? "{" "target" "=" (targets+=AnnotationTargetType | "{"
+ //
+ //targets+=AnnotationTargetType ("," targets+=AnnotationTargetType)* "}") attributes+=AnnotationAttribute* "}"
+ public Group getGroup() { return cGroup; }
+
+ //"AnnotationType"
+ public Keyword getAnnotationTypeKeyword_0() { return cAnnotationTypeKeyword_0; }
+
+ //name=ID
+ public Assignment getNameAssignment_1() { return cNameAssignment_1; }
+
+ //ID
+ public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; }
+
+ //docu=Documentation?
+ public Assignment getDocuAssignment_2() { return cDocuAssignment_2; }
+
+ //Documentation
+ public RuleCall getDocuDocumentationParserRuleCall_2_0() { return cDocuDocumentationParserRuleCall_2_0; }
+
+ //"{"
+ public Keyword getLeftCurlyBracketKeyword_3() { return cLeftCurlyBracketKeyword_3; }
+
+ //"target"
+ public Keyword getTargetKeyword_4() { return cTargetKeyword_4; }
+
+ //"="
+ public Keyword getEqualsSignKeyword_5() { return cEqualsSignKeyword_5; }
+
+ //targets+=AnnotationTargetType | "{" targets+=AnnotationTargetType ("," targets+=AnnotationTargetType)* "}"
+ public Alternatives getAlternatives_6() { return cAlternatives_6; }
+
+ //targets+=AnnotationTargetType
+ public Assignment getTargetsAssignment_6_0() { return cTargetsAssignment_6_0; }
+
+ //AnnotationTargetType
+ public RuleCall getTargetsAnnotationTargetTypeParserRuleCall_6_0_0() { return cTargetsAnnotationTargetTypeParserRuleCall_6_0_0; }
+
+ //"{" targets+=AnnotationTargetType ("," targets+=AnnotationTargetType)* "}"
+ public Group getGroup_6_1() { return cGroup_6_1; }
+
+ //"{"
+ public Keyword getLeftCurlyBracketKeyword_6_1_0() { return cLeftCurlyBracketKeyword_6_1_0; }
+
+ //targets+=AnnotationTargetType
+ public Assignment getTargetsAssignment_6_1_1() { return cTargetsAssignment_6_1_1; }
+
+ //AnnotationTargetType
+ public RuleCall getTargetsAnnotationTargetTypeParserRuleCall_6_1_1_0() { return cTargetsAnnotationTargetTypeParserRuleCall_6_1_1_0; }
+
+ //("," targets+=AnnotationTargetType)*
+ public Group getGroup_6_1_2() { return cGroup_6_1_2; }
+
+ //","
+ public Keyword getCommaKeyword_6_1_2_0() { return cCommaKeyword_6_1_2_0; }
+
+ //targets+=AnnotationTargetType
+ public Assignment getTargetsAssignment_6_1_2_1() { return cTargetsAssignment_6_1_2_1; }
+
+ //AnnotationTargetType
+ public RuleCall getTargetsAnnotationTargetTypeParserRuleCall_6_1_2_1_0() { return cTargetsAnnotationTargetTypeParserRuleCall_6_1_2_1_0; }
+
+ //"}"
+ public Keyword getRightCurlyBracketKeyword_6_1_3() { return cRightCurlyBracketKeyword_6_1_3; }
+
+ //attributes+=AnnotationAttribute*
+ public Assignment getAttributesAssignment_7() { return cAttributesAssignment_7; }
+
+ //AnnotationAttribute
+ public RuleCall getAttributesAnnotationAttributeParserRuleCall_7_0() { return cAttributesAnnotationAttributeParserRuleCall_7_0; }
+
+ //"}"
+ public Keyword getRightCurlyBracketKeyword_8() { return cRightCurlyBracketKeyword_8; }
+ }
+
+ public class AnnotationTargetTypeElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "AnnotationTargetType");
+ private final RuleCall cIDTerminalRuleCall = (RuleCall)rule.eContents().get(1);
+
+ ////
+ //
+ //// Sub-grammars should use AnnotationTargetType to refer to
+ //
+ //// specific sub-grammar targets. For example, valid values for
+ //
+ //// AnnotationTargetType in the Room.xtext sub-grammar include "ActorClass",
+ //
+ //// "ActorBehavior", "ProtocolClass", etc. The sub-grammar is responsible for
+ //
+ //// implementing validation, quick-fixes, and code completion proposals via the
+ //
+ //// usual Xtext mechanisms.
+ //
+ ////
+ //
+ //AnnotationTargetType:
+ //
+ // ID;
+ public ParserRule getRule() { return rule; }
+
+ //ID
+ public RuleCall getIDTerminalRuleCall() { return cIDTerminalRuleCall; }
+ }
+
+ public class AnnotationAttributeElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "AnnotationAttribute");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cSimpleAnnotationAttributeParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cEnumAnnotationAttributeParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+
+ //AnnotationAttribute:
+ //
+ // SimpleAnnotationAttribute | EnumAnnotationAttribute;
+ public ParserRule getRule() { return rule; }
+
+ //SimpleAnnotationAttribute | EnumAnnotationAttribute
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //SimpleAnnotationAttribute
+ public RuleCall getSimpleAnnotationAttributeParserRuleCall_0() { return cSimpleAnnotationAttributeParserRuleCall_0; }
+
+ //EnumAnnotationAttribute
+ public RuleCall getEnumAnnotationAttributeParserRuleCall_1() { return cEnumAnnotationAttributeParserRuleCall_1; }
+ }
+
+ public class SimpleAnnotationAttributeElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "SimpleAnnotationAttribute");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
+ private final Assignment cOptionalAssignment_0_0 = (Assignment)cAlternatives_0.eContents().get(0);
+ private final Keyword cOptionalOptionalKeyword_0_0_0 = (Keyword)cOptionalAssignment_0_0.eContents().get(0);
+ private final Keyword cMandatoryKeyword_0_1 = (Keyword)cAlternatives_0.eContents().get(1);
+ private final Keyword cAttributeKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
+ private final Keyword cColonKeyword_3 = (Keyword)cGroup.eContents().get(3);
+ private final Assignment cTypeAssignment_4 = (Assignment)cGroup.eContents().get(4);
+ private final RuleCall cTypeLiteralTypeEnumRuleCall_4_0 = (RuleCall)cTypeAssignment_4.eContents().get(0);
+
+ //SimpleAnnotationAttribute:
+ //
+ // (optional?="optional" | "mandatory") "attribute" name=ID ":" type=LiteralType;
+ public ParserRule getRule() { return rule; }
+
+ //(optional?="optional" | "mandatory") "attribute" name=ID ":" type=LiteralType
+ public Group getGroup() { return cGroup; }
+
+ //optional?="optional" | "mandatory"
+ public Alternatives getAlternatives_0() { return cAlternatives_0; }
+
+ //optional?="optional"
+ public Assignment getOptionalAssignment_0_0() { return cOptionalAssignment_0_0; }
+
+ //"optional"
+ public Keyword getOptionalOptionalKeyword_0_0_0() { return cOptionalOptionalKeyword_0_0_0; }
+
+ //"mandatory"
+ public Keyword getMandatoryKeyword_0_1() { return cMandatoryKeyword_0_1; }
+
+ //"attribute"
+ public Keyword getAttributeKeyword_1() { return cAttributeKeyword_1; }
+
+ //name=ID
+ public Assignment getNameAssignment_2() { return cNameAssignment_2; }
+
+ //ID
+ public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; }
+
+ //":"
+ public Keyword getColonKeyword_3() { return cColonKeyword_3; }
+
+ //type=LiteralType
+ public Assignment getTypeAssignment_4() { return cTypeAssignment_4; }
+
+ //LiteralType
+ public RuleCall getTypeLiteralTypeEnumRuleCall_4_0() { return cTypeLiteralTypeEnumRuleCall_4_0; }
+ }
+
+ public class EnumAnnotationAttributeElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "EnumAnnotationAttribute");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
+ private final Assignment cOptionalAssignment_0_0 = (Assignment)cAlternatives_0.eContents().get(0);
+ private final Keyword cOptionalOptionalKeyword_0_0_0 = (Keyword)cOptionalAssignment_0_0.eContents().get(0);
+ private final Keyword cMandatoryKeyword_0_1 = (Keyword)cAlternatives_0.eContents().get(1);
+ private final Keyword cAttributeKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
+ private final Keyword cColonKeyword_3 = (Keyword)cGroup.eContents().get(3);
+ private final Keyword cLeftCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4);
+ private final Assignment cValuesAssignment_5 = (Assignment)cGroup.eContents().get(5);
+ private final RuleCall cValuesSTRINGTerminalRuleCall_5_0 = (RuleCall)cValuesAssignment_5.eContents().get(0);
+ private final Group cGroup_6 = (Group)cGroup.eContents().get(6);
+ private final Keyword cCommaKeyword_6_0 = (Keyword)cGroup_6.eContents().get(0);
+ private final Assignment cValuesAssignment_6_1 = (Assignment)cGroup_6.eContents().get(1);
+ private final RuleCall cValuesSTRINGTerminalRuleCall_6_1_0 = (RuleCall)cValuesAssignment_6_1.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_7 = (Keyword)cGroup.eContents().get(7);
+
+ //EnumAnnotationAttribute:
+ //
+ // (optional?="optional" | "mandatory") "attribute" name=ID ":" "{" values+=STRING ("," values+=STRING)* "}";
+ public ParserRule getRule() { return rule; }
+
+ //(optional?="optional" | "mandatory") "attribute" name=ID ":" "{" values+=STRING ("," values+=STRING)* "}"
+ public Group getGroup() { return cGroup; }
+
+ //optional?="optional" | "mandatory"
+ public Alternatives getAlternatives_0() { return cAlternatives_0; }
+
+ //optional?="optional"
+ public Assignment getOptionalAssignment_0_0() { return cOptionalAssignment_0_0; }
+
+ //"optional"
+ public Keyword getOptionalOptionalKeyword_0_0_0() { return cOptionalOptionalKeyword_0_0_0; }
+
+ //"mandatory"
+ public Keyword getMandatoryKeyword_0_1() { return cMandatoryKeyword_0_1; }
+
+ //"attribute"
+ public Keyword getAttributeKeyword_1() { return cAttributeKeyword_1; }
+
+ //name=ID
+ public Assignment getNameAssignment_2() { return cNameAssignment_2; }
+
+ //ID
+ public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; }
+
+ //":"
+ public Keyword getColonKeyword_3() { return cColonKeyword_3; }
+
+ //"{"
+ public Keyword getLeftCurlyBracketKeyword_4() { return cLeftCurlyBracketKeyword_4; }
+
+ //values+=STRING
+ public Assignment getValuesAssignment_5() { return cValuesAssignment_5; }
+
+ //STRING
+ public RuleCall getValuesSTRINGTerminalRuleCall_5_0() { return cValuesSTRINGTerminalRuleCall_5_0; }
+
+ //("," values+=STRING)*
+ public Group getGroup_6() { return cGroup_6; }
+
+ //","
+ public Keyword getCommaKeyword_6_0() { return cCommaKeyword_6_0; }
+
+ //values+=STRING
+ public Assignment getValuesAssignment_6_1() { return cValuesAssignment_6_1; }
+
+ //STRING
+ public RuleCall getValuesSTRINGTerminalRuleCall_6_1_0() { return cValuesSTRINGTerminalRuleCall_6_1_0; }
+
+ //"}"
+ public Keyword getRightCurlyBracketKeyword_7() { return cRightCurlyBracketKeyword_7; }
+ }
+
+ public class DocumentationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Documentation");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cDocumentationAction_0 = (Action)cGroup.eContents().get(0);
+ private final Keyword cLeftSquareBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cLinesAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cLinesSTRINGTerminalRuleCall_2_0 = (RuleCall)cLinesAssignment_2.eContents().get(0);
+ private final Keyword cRightSquareBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
+
+ //// **************************************************************
+ //
+ //// Documentation Rule
+ //
+ //Documentation:
+ //
+ // {Documentation} "[" lines+=STRING* "]";
+ public ParserRule getRule() { return rule; }
+
+ //{Documentation} "[" lines+=STRING* "]"
+ public Group getGroup() { return cGroup; }
+
+ //{Documentation}
+ public Action getDocumentationAction_0() { return cDocumentationAction_0; }
+
+ //"["
+ public Keyword getLeftSquareBracketKeyword_1() { return cLeftSquareBracketKeyword_1; }
+
+ //lines+=STRING*
+ public Assignment getLinesAssignment_2() { return cLinesAssignment_2; }
+
+ //STRING
+ public RuleCall getLinesSTRINGTerminalRuleCall_2_0() { return cLinesSTRINGTerminalRuleCall_2_0; }
+
+ //"]"
+ public Keyword getRightSquareBracketKeyword_3() { return cRightSquareBracketKeyword_3; }
+ }
+
public class LiteralArrayElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "LiteralArray");
private final Group cGroup = (Group)rule.eContents().get(1);
@@ -446,8 +874,95 @@ public class BaseGrammarAccess extends AbstractGrammarElementFinder {
//EXP
public RuleCall getEXPTerminalRuleCall_4() { return cEXPTerminalRuleCall_4; }
}
+
+ public class FQNElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "FQN");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cIDTerminalRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
+ private final RuleCall cIDTerminalRuleCall_1_1 = (RuleCall)cGroup_1.eContents().get(1);
+
+ //FQN:
+ //
+ // ID ("." ID)*;
+ public ParserRule getRule() { return rule; }
+
+ //ID ("." ID)*
+ public Group getGroup() { return cGroup; }
+
+ //ID
+ public RuleCall getIDTerminalRuleCall_0() { return cIDTerminalRuleCall_0; }
+
+ //("." ID)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //"."
+ public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; }
+
+ //ID
+ public RuleCall getIDTerminalRuleCall_1_1() { return cIDTerminalRuleCall_1_1; }
+ }
+ public class LiteralTypeElements extends AbstractEnumRuleElementFinder {
+ private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "LiteralType");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final EnumLiteralDeclaration cBOOLEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0);
+ private final Keyword cBOOLPtBooleanKeyword_0_0 = (Keyword)cBOOLEnumLiteralDeclaration_0.eContents().get(0);
+ private final EnumLiteralDeclaration cINTEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1);
+ private final Keyword cINTPtIntegerKeyword_1_0 = (Keyword)cINTEnumLiteralDeclaration_1.eContents().get(0);
+ private final EnumLiteralDeclaration cREALEnumLiteralDeclaration_2 = (EnumLiteralDeclaration)cAlternatives.eContents().get(2);
+ private final Keyword cREALPtRealKeyword_2_0 = (Keyword)cREALEnumLiteralDeclaration_2.eContents().get(0);
+ private final EnumLiteralDeclaration cCHAREnumLiteralDeclaration_3 = (EnumLiteralDeclaration)cAlternatives.eContents().get(3);
+ private final Keyword cCHARPtCharacterKeyword_3_0 = (Keyword)cCHAREnumLiteralDeclaration_3.eContents().get(0);
+
+ //// **************************************************************
+ //
+ //// Literal Rules
+ //
+ //enum LiteralType:
+ //
+ // BOOL="ptBoolean" | INT="ptInteger" | REAL="ptReal" | CHAR="ptCharacter";
+ public EnumRule getRule() { return rule; }
+
+ //BOOL="ptBoolean" | INT="ptInteger" | REAL="ptReal" | CHAR="ptCharacter"
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //BOOL="ptBoolean"
+ public EnumLiteralDeclaration getBOOLEnumLiteralDeclaration_0() { return cBOOLEnumLiteralDeclaration_0; }
+
+ //"ptBoolean"
+ public Keyword getBOOLPtBooleanKeyword_0_0() { return cBOOLPtBooleanKeyword_0_0; }
+
+ //INT="ptInteger"
+ public EnumLiteralDeclaration getINTEnumLiteralDeclaration_1() { return cINTEnumLiteralDeclaration_1; }
+
+ //"ptInteger"
+ public Keyword getINTPtIntegerKeyword_1_0() { return cINTPtIntegerKeyword_1_0; }
+
+ //REAL="ptReal"
+ public EnumLiteralDeclaration getREALEnumLiteralDeclaration_2() { return cREALEnumLiteralDeclaration_2; }
+
+ //"ptReal"
+ public Keyword getREALPtRealKeyword_2_0() { return cREALPtRealKeyword_2_0; }
+
+ //CHAR="ptCharacter"
+ public EnumLiteralDeclaration getCHAREnumLiteralDeclaration_3() { return cCHAREnumLiteralDeclaration_3; }
+
+ //"ptCharacter"
+ public Keyword getCHARPtCharacterKeyword_3_0() { return cCHARPtCharacterKeyword_3_0; }
+ }
+
+ private AnnotationElements pAnnotation;
+ private KeyValueElements pKeyValue;
+ private AnnotationTypeElements pAnnotationType;
+ private AnnotationTargetTypeElements pAnnotationTargetType;
+ private AnnotationAttributeElements pAnnotationAttribute;
+ private SimpleAnnotationAttributeElements pSimpleAnnotationAttribute;
+ private EnumAnnotationAttributeElements pEnumAnnotationAttribute;
+ private DocumentationElements pDocumentation;
+ private LiteralTypeElements unknownRuleLiteralType;
private LiteralArrayElements pLiteralArray;
private LiteralElements pLiteral;
private BooleanLiteralElements pBooleanLiteral;
@@ -465,6 +980,7 @@ public class BaseGrammarAccess extends AbstractGrammarElementFinder {
private DecimalExpElements pDecimalExp;
private TerminalRule tEXP;
private TerminalRule tHEX;
+ private FQNElements pFQN;
private final Grammar grammar;
@@ -504,6 +1020,135 @@ public class BaseGrammarAccess extends AbstractGrammarElementFinder {
}
+ //// **************************************************************
+ //
+ //// AnnotationType and Annotation Rules
+ //
+ //Annotation:
+ //
+ // "@" type=[AnnotationType|FQN] ("(" attributes+=KeyValue ("," attributes+=KeyValue)* ")")?;
+ public AnnotationElements getAnnotationAccess() {
+ return (pAnnotation != null) ? pAnnotation : (pAnnotation = new AnnotationElements());
+ }
+
+ public ParserRule getAnnotationRule() {
+ return getAnnotationAccess().getRule();
+ }
+
+ //KeyValue:
+ //
+ // key=ID "=" value=Literal;
+ public KeyValueElements getKeyValueAccess() {
+ return (pKeyValue != null) ? pKeyValue : (pKeyValue = new KeyValueElements());
+ }
+
+ public ParserRule getKeyValueRule() {
+ return getKeyValueAccess().getRule();
+ }
+
+ //AnnotationType:
+ //
+ // "AnnotationType" name=ID docu=Documentation? "{" "target" "=" (targets+=AnnotationTargetType | "{"
+ //
+ // targets+=AnnotationTargetType ("," targets+=AnnotationTargetType)* "}") attributes+=AnnotationAttribute* "}";
+ public AnnotationTypeElements getAnnotationTypeAccess() {
+ return (pAnnotationType != null) ? pAnnotationType : (pAnnotationType = new AnnotationTypeElements());
+ }
+
+ public ParserRule getAnnotationTypeRule() {
+ return getAnnotationTypeAccess().getRule();
+ }
+
+ ////
+ //
+ //// Sub-grammars should use AnnotationTargetType to refer to
+ //
+ //// specific sub-grammar targets. For example, valid values for
+ //
+ //// AnnotationTargetType in the Room.xtext sub-grammar include "ActorClass",
+ //
+ //// "ActorBehavior", "ProtocolClass", etc. The sub-grammar is responsible for
+ //
+ //// implementing validation, quick-fixes, and code completion proposals via the
+ //
+ //// usual Xtext mechanisms.
+ //
+ ////
+ //
+ //AnnotationTargetType:
+ //
+ // ID;
+ public AnnotationTargetTypeElements getAnnotationTargetTypeAccess() {
+ return (pAnnotationTargetType != null) ? pAnnotationTargetType : (pAnnotationTargetType = new AnnotationTargetTypeElements());
+ }
+
+ public ParserRule getAnnotationTargetTypeRule() {
+ return getAnnotationTargetTypeAccess().getRule();
+ }
+
+ //AnnotationAttribute:
+ //
+ // SimpleAnnotationAttribute | EnumAnnotationAttribute;
+ public AnnotationAttributeElements getAnnotationAttributeAccess() {
+ return (pAnnotationAttribute != null) ? pAnnotationAttribute : (pAnnotationAttribute = new AnnotationAttributeElements());
+ }
+
+ public ParserRule getAnnotationAttributeRule() {
+ return getAnnotationAttributeAccess().getRule();
+ }
+
+ //SimpleAnnotationAttribute:
+ //
+ // (optional?="optional" | "mandatory") "attribute" name=ID ":" type=LiteralType;
+ public SimpleAnnotationAttributeElements getSimpleAnnotationAttributeAccess() {
+ return (pSimpleAnnotationAttribute != null) ? pSimpleAnnotationAttribute : (pSimpleAnnotationAttribute = new SimpleAnnotationAttributeElements());
+ }
+
+ public ParserRule getSimpleAnnotationAttributeRule() {
+ return getSimpleAnnotationAttributeAccess().getRule();
+ }
+
+ //EnumAnnotationAttribute:
+ //
+ // (optional?="optional" | "mandatory") "attribute" name=ID ":" "{" values+=STRING ("," values+=STRING)* "}";
+ public EnumAnnotationAttributeElements getEnumAnnotationAttributeAccess() {
+ return (pEnumAnnotationAttribute != null) ? pEnumAnnotationAttribute : (pEnumAnnotationAttribute = new EnumAnnotationAttributeElements());
+ }
+
+ public ParserRule getEnumAnnotationAttributeRule() {
+ return getEnumAnnotationAttributeAccess().getRule();
+ }
+
+ //// **************************************************************
+ //
+ //// Documentation Rule
+ //
+ //Documentation:
+ //
+ // {Documentation} "[" lines+=STRING* "]";
+ public DocumentationElements getDocumentationAccess() {
+ return (pDocumentation != null) ? pDocumentation : (pDocumentation = new DocumentationElements());
+ }
+
+ public ParserRule getDocumentationRule() {
+ return getDocumentationAccess().getRule();
+ }
+
+ //// **************************************************************
+ //
+ //// Literal Rules
+ //
+ //enum LiteralType:
+ //
+ // BOOL="ptBoolean" | INT="ptInteger" | REAL="ptReal" | CHAR="ptCharacter";
+ public LiteralTypeElements getLiteralTypeAccess() {
+ return (unknownRuleLiteralType != null) ? unknownRuleLiteralType : (unknownRuleLiteralType = new LiteralTypeElements());
+ }
+
+ public EnumRule getLiteralTypeRule() {
+ return getLiteralTypeAccess().getRule();
+ }
+
//LiteralArray:
//
// literals+=Literal ("," literals+=Literal)*;
@@ -685,6 +1330,17 @@ public class BaseGrammarAccess extends AbstractGrammarElementFinder {
return (tHEX != null) ? tHEX : (tHEX = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "HEX"));
}
+ //FQN:
+ //
+ // ID ("." ID)*;
+ public FQNElements getFQNAccess() {
+ return (pFQN != null) ? pFQN : (pFQN = new FQNElements());
+ }
+
+ public ParserRule getFQNRule() {
+ return getFQNAccess().getRule();
+ }
+
//terminal ID:
//
// "^"? ("a".."z" | "A".."Z" | "_") ("a".."z" | "A".."Z" | "_" | "0".."9")*;

Back to the top