*
@@ -23,10 +24,11 @@
*/
public interface BoundAndWeight extends EObject {
/**
- * Returns the value of the 'Upper Bound' reference.
+ * Returns the value of the 'Upper Bound' reference.
*
- * If the meaning of the 'Upper Bound' reference isn't clear, there really should be
- * more of a description here...
+ * If the meaning of the 'Upper Bound' reference isn't clear, there
+ * really should be more of a description here...
*
*
*
@@ -39,21 +41,23 @@ public interface BoundAndWeight extends EObject {
org.somox.metrics.dsl.metricDSL.Number getUpperBound();
/**
- * Sets the value of the '{@link org.somox.metrics.dsl.metricDSL.BoundAndWeight#getUpperBound
- * Upper Bound}' reference.
+ * Sets the value of the
+ * '{@link org.somox.metrics.dsl.metricDSL.BoundAndWeight#getUpperBound
+ * Upper Bound}' reference.
*
- * @param value
- * the new value of the 'Upper Bound' reference.
+ * @param value the new value of the 'Upper Bound' reference.
* @see #getUpperBound()
* @generated
*/
void setUpperBound(org.somox.metrics.dsl.metricDSL.Number value);
/**
- * Returns the value of the 'Weight' reference.
+ * Returns the value of the 'Weight' reference.
*
- * If the meaning of the 'Weight' reference isn't clear, there really should be more of
- * a description here...
+ * If the meaning of the 'Weight' reference isn't clear, there really
+ * should be more of a description here...
*
*
*
@@ -66,11 +70,11 @@ public interface BoundAndWeight extends EObject {
org.somox.metrics.dsl.metricDSL.Number getWeight();
/**
- * Sets the value of the '{@link org.somox.metrics.dsl.metricDSL.BoundAndWeight#getWeight
+ * Sets the value of the
+ * '{@link org.somox.metrics.dsl.metricDSL.BoundAndWeight#getWeight
* Weight}' reference.
*
- * @param value
- * the new value of the 'Weight' reference.
+ * @param value the new value of the 'Weight' reference.
* @see #getWeight()
* @generated
*/
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/Constant.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/Constant.java
index 6e8aa79..84ca259 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/Constant.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/Constant.java
@@ -3,13 +3,14 @@
package org.somox.metrics.dsl.metricDSL;
/**
- * A representation of the model object 'Constant'.
+ * A representation of the model object
+ * 'Constant'.
*
*
*
*
@@ -19,10 +20,11 @@
*/
public interface Constant extends org.somox.metrics.dsl.metricDSL.Number {
/**
- * Returns the value of the 'Value' attribute.
+ * Returns the value of the 'Value' attribute.
*
- * If the meaning of the 'Value' attribute isn't clear, there really should be more of
- * a description here...
+ * If the meaning of the 'Value' attribute isn't clear, there really
+ * should be more of a description here...
*
*
*
@@ -35,11 +37,11 @@ public interface Constant extends org.somox.metrics.dsl.metricDSL.Number {
double getValue();
/**
- * Sets the value of the '{@link org.somox.metrics.dsl.metricDSL.Constant#getValue
- * Value}' attribute.
+ * Sets the value of the
+ * '{@link org.somox.metrics.dsl.metricDSL.Constant#getValue Value}'
+ * attribute.
*
- * @param value
- * the new value of the 'Value' attribute.
+ * @param value the new value of the 'Value' attribute.
* @see #getValue()
* @generated
*/
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/ExternalMetric.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/ExternalMetric.java
index ad13ef7..cb8212b 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/ExternalMetric.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/ExternalMetric.java
@@ -3,8 +3,8 @@
package org.somox.metrics.dsl.metricDSL;
/**
- * A representation of the model object 'External Metric'.
- *
+ * A representation of the model object 'External
+ * Metric'.
*
*
* @see org.somox.metrics.dsl.metricDSL.MetricDSLPackage#getExternalMetric()
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/InternalMetric.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/InternalMetric.java
index 5b44e5d..eb24350 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/InternalMetric.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/InternalMetric.java
@@ -5,17 +5,20 @@
import org.eclipse.emf.common.util.EList;
/**
- * A representation of the model object 'Internal Metric'.
- *
+ * A representation of the model object 'Internal
+ * Metric'.
*
*
* The following features are supported:
*
- *
{@link org.somox.metrics.dsl.metricDSL.InternalMetric#getShortName Short Name}
*
*
@@ -25,10 +28,11 @@
*/
public interface InternalMetric extends Metric {
/**
- * Returns the value of the 'Short Name' attribute.
+ * Returns the value of the 'Short Name' attribute.
*
- * If the meaning of the 'Short Name' attribute isn't clear, there really should be
- * more of a description here...
+ * If the meaning of the 'Short Name' attribute isn't clear, there
+ * really should be more of a description here...
*
*
*
@@ -41,21 +45,22 @@ public interface InternalMetric extends Metric {
String getShortName();
/**
- * Sets the value of the '{@link org.somox.metrics.dsl.metricDSL.InternalMetric#getShortName
- * Short Name}' attribute.
+ * Sets the value of the
+ * '{@link org.somox.metrics.dsl.metricDSL.InternalMetric#getShortName Short
+ * Name}' attribute.
*
- * @param value
- * the new value of the 'Short Name' attribute.
+ * @param value the new value of the 'Short Name' attribute.
* @see #getShortName()
* @generated
*/
void setShortName(String value);
/**
- * Returns the value of the 'Description' attribute.
+ * Returns the value of the 'Description' attribute.
*
- * If the meaning of the 'Description' attribute isn't clear, there really should be
- * more of a description here...
+ * If the meaning of the 'Description' attribute isn't clear, there
+ * really should be more of a description here...
*
*
*
@@ -68,22 +73,24 @@ public interface InternalMetric extends Metric {
String getDescription();
/**
- * Sets the value of the '{@link org.somox.metrics.dsl.metricDSL.InternalMetric#getDescription
- * Description}' attribute.
+ * Sets the value of the
+ * '{@link org.somox.metrics.dsl.metricDSL.InternalMetric#getDescription
+ * Description}' attribute.
*
- * @param value
- * the new value of the 'Description' attribute.
+ * @param value the new value of the 'Description' attribute.
* @see #getDescription()
* @generated
*/
void setDescription(String value);
/**
- * Returns the value of the 'Parameter' containment reference list. The list
- * contents are of type {@link org.somox.metrics.dsl.metricDSL.Number}.
+ * Returns the value of the 'Parameter' containment reference
+ * list. The list contents are of type
+ * {@link org.somox.metrics.dsl.metricDSL.Number}.
*
- * If the meaning of the 'Parameter' containment reference list isn't clear, there
- * really should be more of a description here...
+ * If the meaning of the 'Parameter' containment reference list isn't
+ * clear, there really should be more of a description here...
*
*
*
@@ -95,11 +102,11 @@ public interface InternalMetric extends Metric {
EList getParameter();
/**
- * Returns the value of the 'Definition' containment reference.
+ * Returns the value of the 'Definition' containment reference.
+ *
*
- * If the meaning of the 'Definition' containment reference isn't clear, there really
- * should be more of a description here...
+ * If the meaning of the 'Definition' containment reference isn't
+ * clear, there really should be more of a description here...
*
*
*
@@ -112,11 +119,13 @@ public interface InternalMetric extends Metric {
MetricDefinition getDefinition();
/**
- * Sets the value of the '{@link org.somox.metrics.dsl.metricDSL.InternalMetric#getDefinition
- * Definition}' containment reference.
+ * Sets the value of the
+ * '{@link org.somox.metrics.dsl.metricDSL.InternalMetric#getDefinition
+ * Definition}' containment reference.
*
- * @param value
- * the new value of the 'Definition' containment reference.
+ * @param value the new value of the 'Definition' containment
+ * reference.
* @see #getDefinition()
* @generated
*/
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/Metric.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/Metric.java
index 8263eb1..a1b411b 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/Metric.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/Metric.java
@@ -5,8 +5,8 @@
import org.eclipse.emf.ecore.EObject;
/**
- * A representation of the model object 'Metric'.
+ * A representation of the model object
+ * 'Metric'.
*
*
* The following features are supported:
@@ -21,10 +21,11 @@
*/
public interface Metric extends EObject {
/**
- * Returns the value of the 'Name' attribute.
+ * Returns the value of the 'Name' attribute.
*
- * If the meaning of the 'Name' attribute isn't clear, there really should be more of a
- * description here...
+ * If the meaning of the 'Name' attribute isn't clear, there really
+ * should be more of a description here...
*
*
*
@@ -37,11 +38,10 @@ public interface Metric extends EObject {
String getName();
/**
- * Sets the value of the '{@link org.somox.metrics.dsl.metricDSL.Metric#getName Name}'
- * attribute.
+ * Sets the value of the '{@link org.somox.metrics.dsl.metricDSL.Metric#getName
+ * Name}' attribute.
*
- * @param value
- * the new value of the 'Name' attribute.
+ * @param value the new value of the 'Name' attribute.
* @see #getName()
* @generated
*/
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricAndWeight.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricAndWeight.java
index 5248a77..ddb552b 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricAndWeight.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricAndWeight.java
@@ -5,14 +5,16 @@
import org.eclipse.emf.ecore.EObject;
/**
- * A representation of the model object 'Metric And Weight'.
- *
+ * A representation of the model object 'Metric
+ * And Weight'.
*
*
*
*
@@ -22,10 +24,11 @@
*/
public interface MetricAndWeight extends EObject {
/**
- * Returns the value of the 'Metric' reference.
+ * Returns the value of the 'Metric' reference.
*
- * If the meaning of the 'Metric' reference isn't clear, there really should be more of
- * a description here...
+ * If the meaning of the 'Metric' reference isn't clear, there really
+ * should be more of a description here...
*
*
*
@@ -38,21 +41,22 @@ public interface MetricAndWeight extends EObject {
Metric getMetric();
/**
- * Sets the value of the '{@link org.somox.metrics.dsl.metricDSL.MetricAndWeight#getMetric
+ * Sets the value of the
+ * '{@link org.somox.metrics.dsl.metricDSL.MetricAndWeight#getMetric
* Metric}' reference.
*
- * @param value
- * the new value of the 'Metric' reference.
+ * @param value the new value of the 'Metric' reference.
* @see #getMetric()
* @generated
*/
void setMetric(Metric value);
/**
- * Returns the value of the 'Weight' reference.
+ * Returns the value of the 'Weight' reference.
*
- * If the meaning of the 'Weight' reference isn't clear, there really should be more of
- * a description here...
+ * If the meaning of the 'Weight' reference isn't clear, there really
+ * should be more of a description here...
*
*
*
@@ -65,11 +69,11 @@ public interface MetricAndWeight extends EObject {
org.somox.metrics.dsl.metricDSL.Number getWeight();
/**
- * Sets the value of the '{@link org.somox.metrics.dsl.metricDSL.MetricAndWeight#getWeight
+ * Sets the value of the
+ * '{@link org.somox.metrics.dsl.metricDSL.MetricAndWeight#getWeight
* Weight}' reference.
*
- * @param value
- * the new value of the 'Weight' reference.
+ * @param value the new value of the 'Weight' reference.
* @see #getWeight()
* @generated
*/
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricDSLFactory.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricDSLFactory.java
index 229abf6..6a5acb0 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricDSLFactory.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricDSLFactory.java
@@ -5,23 +5,24 @@
import org.eclipse.emf.ecore.EFactory;
/**
- * The Factory for the model. It provides a create method for each
- * non-abstract class of the model.
+ * The Factory for the model. It provides a
+ * create method for each non-abstract class of the model.
*
* @see org.somox.metrics.dsl.metricDSL.MetricDSLPackage
* @generated
*/
public interface MetricDSLFactory extends EFactory {
/**
- * The singleton instance of the factory.
+ * The singleton instance of the factory.
*
* @generated
*/
MetricDSLFactory eINSTANCE = org.somox.metrics.dsl.metricDSL.impl.MetricDSLFactoryImpl.init();
/**
- * Returns a new object of class 'Metric Model'.
+ * Returns a new object of class 'Metric Model'.
*
* @return a new object of class 'Metric Model'.
* @generated
@@ -29,8 +30,8 @@ public interface MetricDSLFactory extends EFactory {
MetricModel createMetricModel();
/**
- * Returns a new object of class 'Metric'.
+ * Returns a new object of class 'Metric'.
*
* @return a new object of class 'Metric'.
* @generated
@@ -38,8 +39,8 @@ public interface MetricDSLFactory extends EFactory {
Metric createMetric();
/**
- * Returns a new object of class 'External Metric'.
+ * Returns a new object of class 'External Metric'.
*
* @return a new object of class 'External Metric'.
* @generated
@@ -47,8 +48,8 @@ public interface MetricDSLFactory extends EFactory {
ExternalMetric createExternalMetric();
/**
- * Returns a new object of class 'Internal Metric'.
+ * Returns a new object of class 'Internal Metric'.
*
* @return a new object of class 'Internal Metric'.
* @generated
@@ -56,8 +57,8 @@ public interface MetricDSLFactory extends EFactory {
InternalMetric createInternalMetric();
/**
- * Returns a new object of class 'Number'.
+ * Returns a new object of class 'Number'.
*
* @return a new object of class 'Number'.
* @generated
@@ -65,8 +66,8 @@ public interface MetricDSLFactory extends EFactory {
Number createNumber();
/**
- * Returns a new object of class 'Parameter'.
+ * Returns a new object of class 'Parameter'.
+ *
*
* @return a new object of class 'Parameter'.
* @generated
@@ -74,8 +75,8 @@ public interface MetricDSLFactory extends EFactory {
Parameter createParameter();
/**
- * Returns a new object of class 'Constant'.
+ * Returns a new object of class 'Constant'.
+ *
*
* @return a new object of class 'Constant'.
* @generated
@@ -83,8 +84,8 @@ public interface MetricDSLFactory extends EFactory {
Constant createConstant();
/**
- * Returns a new object of class 'Metric Definition'.
+ * Returns a new object of class 'Metric Definition'.
*
* @return a new object of class 'Metric Definition'.
* @generated
@@ -92,8 +93,8 @@ public interface MetricDSLFactory extends EFactory {
MetricDefinition createMetricDefinition();
/**
- * Returns a new object of class 'Weighted Metric'.
+ * Returns a new object of class 'Weighted Metric'.
*
* @return a new object of class 'Weighted Metric'.
* @generated
@@ -101,8 +102,8 @@ public interface MetricDSLFactory extends EFactory {
WeightedMetric createWeightedMetric();
/**
- * Returns a new object of class 'Stepwise Metric'.
+ * Returns a new object of class 'Stepwise Metric'.
*
* @return a new object of class 'Stepwise Metric'.
* @generated
@@ -110,8 +111,8 @@ public interface MetricDSLFactory extends EFactory {
StepwiseMetric createStepwiseMetric();
/**
- * Returns a new object of class 'Ratio Metric'.
+ * Returns a new object of class 'Ratio Metric'.
*
* @return a new object of class 'Ratio Metric'.
* @generated
@@ -119,8 +120,8 @@ public interface MetricDSLFactory extends EFactory {
RatioMetric createRatioMetric();
/**
- * Returns a new object of class 'Bound And Weight'.
+ * Returns a new object of class 'Bound And Weight'.
*
* @return a new object of class 'Bound And Weight'.
* @generated
@@ -128,8 +129,8 @@ public interface MetricDSLFactory extends EFactory {
BoundAndWeight createBoundAndWeight();
/**
- * Returns a new object of class 'Metric And Weight'.
+ * Returns a new object of class 'Metric And Weight'.
*
* @return a new object of class 'Metric And Weight'.
* @generated
@@ -137,7 +138,8 @@ public interface MetricDSLFactory extends EFactory {
MetricAndWeight createMetricAndWeight();
/**
- * Returns the package supported by this factory.
+ * Returns the package supported by this factory.
*
* @return the package supported by this factory.
* @generated
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricDSLPackage.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricDSLPackage.java
index 9e4c3c8..db002fe 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricDSLPackage.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricDSLPackage.java
@@ -8,8 +8,8 @@
import org.eclipse.emf.ecore.EReference;
/**
- * The Package for the model. It contains accessors for the meta
- * objects to represent
+ * The Package for the model. It contains
+ * accessors for the meta objects to represent
*
*
each class,
*
each feature of each class,
@@ -45,15 +45,17 @@ public interface MetricDSLPackage extends EPackage {
String eNS_PREFIX = "metricDSL";
/**
- * The singleton instance of the package.
+ * The singleton instance of the package.
*
* @generated
*/
MetricDSLPackage eINSTANCE = org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl.init();
/**
- * The meta object id for the '{@link org.somox.metrics.dsl.metricDSL.impl.MetricModelImpl
- * Metric Model}' class.
+ * The meta object id for the
+ * '{@link org.somox.metrics.dsl.metricDSL.impl.MetricModelImpl Metric
+ * Model}' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.MetricModelImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getMetricModel()
@@ -62,8 +64,8 @@ public interface MetricDSLPackage extends EPackage {
int METRIC_MODEL = 0;
/**
- * The feature id for the 'Import URI' attribute list.
- *
+ * The feature id for the 'Import URI' attribute list.
*
* @generated
* @ordered
@@ -71,8 +73,8 @@ public interface MetricDSLPackage extends EPackage {
int METRIC_MODEL__IMPORT_URI = 0;
/**
- * The feature id for the 'Metrics' containment reference list.
+ * The feature id for the 'Metrics' containment reference list.
+ *
*
* @generated
* @ordered
@@ -80,8 +82,8 @@ public interface MetricDSLPackage extends EPackage {
int METRIC_MODEL__METRICS = 1;
/**
- * The number of structural features of the 'Metric Model' class.
+ * The number of structural features of the 'Metric Model' class.
*
* @generated
* @ordered
@@ -89,8 +91,9 @@ public interface MetricDSLPackage extends EPackage {
int METRIC_MODEL_FEATURE_COUNT = 2;
/**
- * The meta object id for the '{@link org.somox.metrics.dsl.metricDSL.impl.MetricImpl
- * Metric}' class.
+ * The meta object id for the
+ * '{@link org.somox.metrics.dsl.metricDSL.impl.MetricImpl Metric}'
+ * class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.MetricImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getMetric()
@@ -99,8 +102,8 @@ public interface MetricDSLPackage extends EPackage {
int METRIC = 1;
/**
- * The feature id for the 'Name' attribute.
+ * The feature id for the 'Name' attribute.
*
* @generated
* @ordered
@@ -108,8 +111,8 @@ public interface MetricDSLPackage extends EPackage {
int METRIC__NAME = 0;
/**
- * The number of structural features of the 'Metric' class.
- *
+ * The number of structural features of the 'Metric' class.
*
* @generated
* @ordered
@@ -117,8 +120,9 @@ public interface MetricDSLPackage extends EPackage {
int METRIC_FEATURE_COUNT = 1;
/**
- * The meta object id for the '{@link org.somox.metrics.dsl.metricDSL.impl.ExternalMetricImpl
- * External Metric}' class.
+ * The meta object id for the
+ * '{@link org.somox.metrics.dsl.metricDSL.impl.ExternalMetricImpl External
+ * Metric}' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.ExternalMetricImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getExternalMetric()
@@ -127,8 +131,8 @@ public interface MetricDSLPackage extends EPackage {
int EXTERNAL_METRIC = 2;
/**
- * The feature id for the 'Name' attribute.
+ * The feature id for the 'Name' attribute.
*
* @generated
* @ordered
@@ -136,8 +140,8 @@ public interface MetricDSLPackage extends EPackage {
int EXTERNAL_METRIC__NAME = METRIC__NAME;
/**
- * The number of structural features of the 'External Metric' class.
+ * The number of structural features of the 'External Metric' class.
+ *
*
* @generated
* @ordered
@@ -145,8 +149,9 @@ public interface MetricDSLPackage extends EPackage {
int EXTERNAL_METRIC_FEATURE_COUNT = METRIC_FEATURE_COUNT + 0;
/**
- * The meta object id for the '{@link org.somox.metrics.dsl.metricDSL.impl.InternalMetricImpl
- * Internal Metric}' class.
+ * The meta object id for the
+ * '{@link org.somox.metrics.dsl.metricDSL.impl.InternalMetricImpl Internal
+ * Metric}' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.InternalMetricImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getInternalMetric()
@@ -155,8 +160,8 @@ public interface MetricDSLPackage extends EPackage {
int INTERNAL_METRIC = 3;
/**
- * The feature id for the 'Name' attribute.
+ * The feature id for the 'Name' attribute.
*
* @generated
* @ordered
@@ -164,8 +169,8 @@ public interface MetricDSLPackage extends EPackage {
int INTERNAL_METRIC__NAME = METRIC__NAME;
/**
- * The feature id for the 'Short Name' attribute.
+ * The feature id for the 'Short Name' attribute.
*
* @generated
* @ordered
@@ -173,8 +178,8 @@ public interface MetricDSLPackage extends EPackage {
int INTERNAL_METRIC__SHORT_NAME = METRIC_FEATURE_COUNT + 0;
/**
- * The feature id for the 'Description' attribute.
+ * The feature id for the 'Description' attribute.
*
* @generated
* @ordered
@@ -182,8 +187,8 @@ public interface MetricDSLPackage extends EPackage {
int INTERNAL_METRIC__DESCRIPTION = METRIC_FEATURE_COUNT + 1;
/**
- * The feature id for the 'Parameter' containment reference list.
+ * The feature id for the 'Parameter' containment reference
+ * list.
*
* @generated
* @ordered
@@ -191,8 +196,8 @@ public interface MetricDSLPackage extends EPackage {
int INTERNAL_METRIC__PARAMETER = METRIC_FEATURE_COUNT + 2;
/**
- * The feature id for the 'Definition' containment reference.
+ * The feature id for the 'Definition' containment reference.
+ *
*
* @generated
* @ordered
@@ -200,8 +205,8 @@ public interface MetricDSLPackage extends EPackage {
int INTERNAL_METRIC__DEFINITION = METRIC_FEATURE_COUNT + 3;
/**
- * The number of structural features of the 'Internal Metric' class.
+ * The number of structural features of the 'Internal Metric' class.
+ *
*
* @generated
* @ordered
@@ -209,8 +214,9 @@ public interface MetricDSLPackage extends EPackage {
int INTERNAL_METRIC_FEATURE_COUNT = METRIC_FEATURE_COUNT + 4;
/**
- * The meta object id for the '{@link org.somox.metrics.dsl.metricDSL.impl.NumberImpl
- * Number}' class.
+ * The meta object id for the
+ * '{@link org.somox.metrics.dsl.metricDSL.impl.NumberImpl Number}'
+ * class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.NumberImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getNumber()
@@ -219,8 +225,8 @@ public interface MetricDSLPackage extends EPackage {
int NUMBER = 4;
/**
- * The feature id for the 'Name' attribute.
+ * The feature id for the 'Name' attribute.
*
* @generated
* @ordered
@@ -228,8 +234,8 @@ public interface MetricDSLPackage extends EPackage {
int NUMBER__NAME = 0;
/**
- * The number of structural features of the 'Number' class.
- *
+ * The number of structural features of the 'Number' class.
*
* @generated
* @ordered
@@ -237,7 +243,8 @@ public interface MetricDSLPackage extends EPackage {
int NUMBER_FEATURE_COUNT = 1;
/**
- * The meta object id for the '{@link org.somox.metrics.dsl.metricDSL.impl.ParameterImpl
+ * The meta object id for the
+ * '{@link org.somox.metrics.dsl.metricDSL.impl.ParameterImpl
* Parameter}' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.ParameterImpl
@@ -247,8 +254,8 @@ public interface MetricDSLPackage extends EPackage {
int PARAMETER = 5;
/**
- * The feature id for the 'Name' attribute.
+ * The feature id for the 'Name' attribute.
*
* @generated
* @ordered
@@ -256,8 +263,8 @@ public interface MetricDSLPackage extends EPackage {
int PARAMETER__NAME = NUMBER__NAME;
/**
- * The feature id for the 'Shortname' attribute.
+ * The feature id for the 'Shortname' attribute.
*
* @generated
* @ordered
@@ -265,8 +272,8 @@ public interface MetricDSLPackage extends EPackage {
int PARAMETER__SHORTNAME = NUMBER_FEATURE_COUNT + 0;
/**
- * The feature id for the 'Description' attribute.
+ * The feature id for the 'Description' attribute.
*
* @generated
* @ordered
@@ -274,8 +281,8 @@ public interface MetricDSLPackage extends EPackage {
int PARAMETER__DESCRIPTION = NUMBER_FEATURE_COUNT + 1;
/**
- * The feature id for the 'Default Value' attribute.
- *
+ * The feature id for the 'Default Value' attribute.
*
* @generated
* @ordered
@@ -283,8 +290,8 @@ public interface MetricDSLPackage extends EPackage {
int PARAMETER__DEFAULT_VALUE = NUMBER_FEATURE_COUNT + 2;
/**
- * The number of structural features of the 'Parameter' class.
- *
+ * The number of structural features of the 'Parameter' class.
*
* @generated
* @ordered
@@ -292,8 +299,9 @@ public interface MetricDSLPackage extends EPackage {
int PARAMETER_FEATURE_COUNT = NUMBER_FEATURE_COUNT + 3;
/**
- * The meta object id for the '{@link org.somox.metrics.dsl.metricDSL.impl.ConstantImpl
- * Constant}' class.
+ * The meta object id for the
+ * '{@link org.somox.metrics.dsl.metricDSL.impl.ConstantImpl Constant}'
+ * class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.ConstantImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getConstant()
@@ -302,8 +310,8 @@ public interface MetricDSLPackage extends EPackage {
int CONSTANT = 6;
/**
- * The feature id for the 'Name' attribute.
+ * The feature id for the 'Name' attribute.
*
* @generated
* @ordered
@@ -311,8 +319,8 @@ public interface MetricDSLPackage extends EPackage {
int CONSTANT__NAME = NUMBER__NAME;
/**
- * The feature id for the 'Value' attribute.
+ * The feature id for the 'Value' attribute.
*
* @generated
* @ordered
@@ -320,8 +328,8 @@ public interface MetricDSLPackage extends EPackage {
int CONSTANT__VALUE = NUMBER_FEATURE_COUNT + 0;
/**
- * The number of structural features of the 'Constant' class.
- *
+ * The number of structural features of the 'Constant' class.
*
* @generated
* @ordered
@@ -329,8 +337,9 @@ public interface MetricDSLPackage extends EPackage {
int CONSTANT_FEATURE_COUNT = NUMBER_FEATURE_COUNT + 1;
/**
- * The meta object id for the '{@link org.somox.metrics.dsl.metricDSL.impl.MetricDefinitionImpl
- * Metric Definition}' class.
+ * The meta object id for the
+ * '{@link org.somox.metrics.dsl.metricDSL.impl.MetricDefinitionImpl Metric
+ * Definition}' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDefinitionImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getMetricDefinition()
@@ -339,8 +348,8 @@ public interface MetricDSLPackage extends EPackage {
int METRIC_DEFINITION = 7;
/**
- * The number of structural features of the 'Metric Definition' class.
+ * The number of structural features of the 'Metric Definition' class.
+ *
*
* @generated
* @ordered
@@ -348,8 +357,9 @@ public interface MetricDSLPackage extends EPackage {
int METRIC_DEFINITION_FEATURE_COUNT = 0;
/**
- * The meta object id for the '{@link org.somox.metrics.dsl.metricDSL.impl.WeightedMetricImpl
- * Weighted Metric}' class.
+ * The meta object id for the
+ * '{@link org.somox.metrics.dsl.metricDSL.impl.WeightedMetricImpl Weighted
+ * Metric}' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.WeightedMetricImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getWeightedMetric()
@@ -358,8 +368,8 @@ public interface MetricDSLPackage extends EPackage {
int WEIGHTED_METRIC = 8;
/**
- * The feature id for the 'Weights' containment reference list.
+ * The feature id for the 'Weights' containment reference list.
+ *
*
* @generated
* @ordered
@@ -367,8 +377,8 @@ public interface MetricDSLPackage extends EPackage {
int WEIGHTED_METRIC__WEIGHTS = METRIC_DEFINITION_FEATURE_COUNT + 0;
/**
- * The number of structural features of the 'Weighted Metric' class.
+ * The number of structural features of the 'Weighted Metric' class.
+ *
*
* @generated
* @ordered
@@ -376,8 +386,9 @@ public interface MetricDSLPackage extends EPackage {
int WEIGHTED_METRIC_FEATURE_COUNT = METRIC_DEFINITION_FEATURE_COUNT + 1;
/**
- * The meta object id for the '{@link org.somox.metrics.dsl.metricDSL.impl.StepwiseMetricImpl
- * Stepwise Metric}' class.
+ * The meta object id for the
+ * '{@link org.somox.metrics.dsl.metricDSL.impl.StepwiseMetricImpl Stepwise
+ * Metric}' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.StepwiseMetricImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getStepwiseMetric()
@@ -386,8 +397,8 @@ public interface MetricDSLPackage extends EPackage {
int STEPWISE_METRIC = 9;
/**
- * The feature id for the 'Inner Metric' reference.
+ * The feature id for the 'Inner Metric' reference.
*
* @generated
* @ordered
@@ -395,8 +406,8 @@ public interface MetricDSLPackage extends EPackage {
int STEPWISE_METRIC__INNER_METRIC = METRIC_DEFINITION_FEATURE_COUNT + 0;
/**
- * The feature id for the 'Steps' containment reference list.
+ * The feature id for the 'Steps' containment reference list.
+ *
*
* @generated
* @ordered
@@ -404,8 +415,8 @@ public interface MetricDSLPackage extends EPackage {
int STEPWISE_METRIC__STEPS = METRIC_DEFINITION_FEATURE_COUNT + 1;
/**
- * The number of structural features of the 'Stepwise Metric' class.
+ * The number of structural features of the 'Stepwise Metric' class.
+ *
*
* @generated
* @ordered
@@ -413,8 +424,9 @@ public interface MetricDSLPackage extends EPackage {
int STEPWISE_METRIC_FEATURE_COUNT = METRIC_DEFINITION_FEATURE_COUNT + 2;
/**
- * The meta object id for the '{@link org.somox.metrics.dsl.metricDSL.impl.RatioMetricImpl
- * Ratio Metric}' class.
+ * The meta object id for the
+ * '{@link org.somox.metrics.dsl.metricDSL.impl.RatioMetricImpl Ratio
+ * Metric}' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.RatioMetricImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getRatioMetric()
@@ -423,8 +435,8 @@ public interface MetricDSLPackage extends EPackage {
int RATIO_METRIC = 10;
/**
- * The feature id for the 'Nominator Metric' reference.
- *
+ * The feature id for the 'Nominator Metric' reference.
*
* @generated
* @ordered
@@ -432,8 +444,8 @@ public interface MetricDSLPackage extends EPackage {
int RATIO_METRIC__NOMINATOR_METRIC = METRIC_DEFINITION_FEATURE_COUNT + 0;
/**
- * The feature id for the 'Denominator Metric' reference.
+ * The feature id for the 'Denominator Metric' reference.
*
* @generated
* @ordered
@@ -441,8 +453,8 @@ public interface MetricDSLPackage extends EPackage {
int RATIO_METRIC__DENOMINATOR_METRIC = METRIC_DEFINITION_FEATURE_COUNT + 1;
/**
- * The number of structural features of the 'Ratio Metric' class.
+ * The number of structural features of the 'Ratio Metric' class.
*
* @generated
* @ordered
@@ -450,8 +462,9 @@ public interface MetricDSLPackage extends EPackage {
int RATIO_METRIC_FEATURE_COUNT = METRIC_DEFINITION_FEATURE_COUNT + 2;
/**
- * The meta object id for the '{@link org.somox.metrics.dsl.metricDSL.impl.BoundAndWeightImpl
- * Bound And Weight}' class.
+ * The meta object id for the
+ * '{@link org.somox.metrics.dsl.metricDSL.impl.BoundAndWeightImpl Bound And
+ * Weight}' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.BoundAndWeightImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getBoundAndWeight()
@@ -460,8 +473,8 @@ public interface MetricDSLPackage extends EPackage {
int BOUND_AND_WEIGHT = 11;
/**
- * The feature id for the 'Upper Bound' reference.
+ * The feature id for the 'Upper Bound' reference.
*
* @generated
* @ordered
@@ -469,8 +482,8 @@ public interface MetricDSLPackage extends EPackage {
int BOUND_AND_WEIGHT__UPPER_BOUND = 0;
/**
- * The feature id for the 'Weight' reference.
+ * The feature id for the 'Weight' reference.
*
* @generated
* @ordered
@@ -478,8 +491,8 @@ public interface MetricDSLPackage extends EPackage {
int BOUND_AND_WEIGHT__WEIGHT = 1;
/**
- * The number of structural features of the 'Bound And Weight' class.
+ * The number of structural features of the 'Bound And Weight' class.
+ *
*
* @generated
* @ordered
@@ -487,8 +500,9 @@ public interface MetricDSLPackage extends EPackage {
int BOUND_AND_WEIGHT_FEATURE_COUNT = 2;
/**
- * The meta object id for the '{@link org.somox.metrics.dsl.metricDSL.impl.MetricAndWeightImpl
- * Metric And Weight}' class.
+ * The meta object id for the
+ * '{@link org.somox.metrics.dsl.metricDSL.impl.MetricAndWeightImpl Metric
+ * And Weight}' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.MetricAndWeightImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getMetricAndWeight()
@@ -497,8 +511,8 @@ public interface MetricDSLPackage extends EPackage {
int METRIC_AND_WEIGHT = 12;
/**
- * The feature id for the 'Metric' reference.
+ * The feature id for the 'Metric' reference.
*
* @generated
* @ordered
@@ -506,8 +520,8 @@ public interface MetricDSLPackage extends EPackage {
int METRIC_AND_WEIGHT__METRIC = 0;
/**
- * The feature id for the 'Weight' reference.
+ * The feature id for the 'Weight' reference.
*
* @generated
* @ordered
@@ -515,8 +529,8 @@ public interface MetricDSLPackage extends EPackage {
int METRIC_AND_WEIGHT__WEIGHT = 1;
/**
- * The number of structural features of the 'Metric And Weight' class.
+ * The number of structural features of the 'Metric And Weight' class.
+ *
*
* @generated
* @ordered
@@ -524,8 +538,9 @@ public interface MetricDSLPackage extends EPackage {
int METRIC_AND_WEIGHT_FEATURE_COUNT = 2;
/**
- * Returns the meta object for class '{@link org.somox.metrics.dsl.metricDSL.MetricModel
- * Metric Model}'.
+ * Returns the meta object for class
+ * '{@link org.somox.metrics.dsl.metricDSL.MetricModel Metric Model}'.
+ *
*
* @return the meta object for class 'Metric Model'.
* @see org.somox.metrics.dsl.metricDSL.MetricModel
@@ -535,8 +550,8 @@ public interface MetricDSLPackage extends EPackage {
/**
* Returns the meta object for the attribute list '
- * {@link org.somox.metrics.dsl.metricDSL.MetricModel#getImportURI Import URI}'.
+ * {@link org.somox.metrics.dsl.metricDSL.MetricModel#getImportURI Import
+ * URI}'.
*
* @return the meta object for the attribute list 'Import URI'.
* @see org.somox.metrics.dsl.metricDSL.MetricModel#getImportURI()
@@ -547,10 +562,11 @@ public interface MetricDSLPackage extends EPackage {
/**
* Returns the meta object for the containment reference list '
- * {@link org.somox.metrics.dsl.metricDSL.MetricModel#getMetrics Metrics}'.
+ * {@link org.somox.metrics.dsl.metricDSL.MetricModel#getMetrics
+ * Metrics}'.
*
- * @return the meta object for the containment reference list 'Metrics'.
+ * @return the meta object for the containment reference list
+ * 'Metrics'.
* @see org.somox.metrics.dsl.metricDSL.MetricModel#getMetrics()
* @see #getMetricModel()
* @generated
@@ -558,8 +574,9 @@ public interface MetricDSLPackage extends EPackage {
EReference getMetricModel_Metrics();
/**
- * Returns the meta object for class '{@link org.somox.metrics.dsl.metricDSL.Metric
- * Metric}'.
+ * Returns the meta object for class
+ * '{@link org.somox.metrics.dsl.metricDSL.Metric Metric}'.
*
* @return the meta object for class 'Metric'.
* @see org.somox.metrics.dsl.metricDSL.Metric
@@ -569,8 +586,8 @@ public interface MetricDSLPackage extends EPackage {
/**
* Returns the meta object for the attribute '
- * {@link org.somox.metrics.dsl.metricDSL.Metric#getName Name}'.
+ * {@link org.somox.metrics.dsl.metricDSL.Metric#getName Name}'.
*
* @return the meta object for the attribute 'Name'.
* @see org.somox.metrics.dsl.metricDSL.Metric#getName()
@@ -580,8 +597,9 @@ public interface MetricDSLPackage extends EPackage {
EAttribute getMetric_Name();
/**
- * Returns the meta object for class '{@link org.somox.metrics.dsl.metricDSL.ExternalMetric
- * External Metric}'.
+ * Returns the meta object for class
+ * '{@link org.somox.metrics.dsl.metricDSL.ExternalMetric External
+ * Metric}'.
*
* @return the meta object for class 'External Metric'.
* @see org.somox.metrics.dsl.metricDSL.ExternalMetric
@@ -590,8 +608,9 @@ public interface MetricDSLPackage extends EPackage {
EClass getExternalMetric();
/**
- * Returns the meta object for class '{@link org.somox.metrics.dsl.metricDSL.InternalMetric
- * Internal Metric}'.
+ * Returns the meta object for class
+ * '{@link org.somox.metrics.dsl.metricDSL.InternalMetric Internal
+ * Metric}'.
*
* @return the meta object for class 'Internal Metric'.
* @see org.somox.metrics.dsl.metricDSL.InternalMetric
@@ -601,8 +620,8 @@ public interface MetricDSLPackage extends EPackage {
/**
* Returns the meta object for the attribute '
- * {@link org.somox.metrics.dsl.metricDSL.InternalMetric#getShortName Short Name}'.
- *
+ * {@link org.somox.metrics.dsl.metricDSL.InternalMetric#getShortName Short
+ * Name}'.
*
* @return the meta object for the attribute 'Short Name'.
* @see org.somox.metrics.dsl.metricDSL.InternalMetric#getShortName()
@@ -613,8 +632,8 @@ public interface MetricDSLPackage extends EPackage {
/**
* Returns the meta object for the attribute '
- * {@link org.somox.metrics.dsl.metricDSL.InternalMetric#getDescription Description}'.
- *
+ * {@link org.somox.metrics.dsl.metricDSL.InternalMetric#getDescription
+ * Description}'.
*
* @return the meta object for the attribute 'Description'.
* @see org.somox.metrics.dsl.metricDSL.InternalMetric#getDescription()
@@ -625,10 +644,11 @@ public interface MetricDSLPackage extends EPackage {
/**
* Returns the meta object for the containment reference list '
- * {@link org.somox.metrics.dsl.metricDSL.InternalMetric#getParameter Parameter}'.
+ * {@link org.somox.metrics.dsl.metricDSL.InternalMetric#getParameter
+ * Parameter}'.
*
- * @return the meta object for the containment reference list 'Parameter'.
+ * @return the meta object for the containment reference list
+ * 'Parameter'.
* @see org.somox.metrics.dsl.metricDSL.InternalMetric#getParameter()
* @see #getInternalMetric()
* @generated
@@ -637,8 +657,8 @@ public interface MetricDSLPackage extends EPackage {
/**
* Returns the meta object for the containment reference '
- * {@link org.somox.metrics.dsl.metricDSL.InternalMetric#getDefinition Definition}'.
- *
+ * {@link org.somox.metrics.dsl.metricDSL.InternalMetric#getDefinition
+ * Definition}'.
*
* @return the meta object for the containment reference 'Definition'.
* @see org.somox.metrics.dsl.metricDSL.InternalMetric#getDefinition()
@@ -648,8 +668,9 @@ public interface MetricDSLPackage extends EPackage {
EReference getInternalMetric_Definition();
/**
- * Returns the meta object for class '{@link org.somox.metrics.dsl.metricDSL.Number
- * Number}'.
+ * Returns the meta object for class
+ * '{@link org.somox.metrics.dsl.metricDSL.Number Number}'.
*
* @return the meta object for class 'Number'.
* @see org.somox.metrics.dsl.metricDSL.Number
@@ -659,8 +680,8 @@ public interface MetricDSLPackage extends EPackage {
/**
* Returns the meta object for the attribute '
- * {@link org.somox.metrics.dsl.metricDSL.Number#getName Name}'.
+ * {@link org.somox.metrics.dsl.metricDSL.Number#getName Name}'.
*
* @return the meta object for the attribute 'Name'.
* @see org.somox.metrics.dsl.metricDSL.Number#getName()
@@ -670,8 +691,9 @@ public interface MetricDSLPackage extends EPackage {
EAttribute getNumber_Name();
/**
- * Returns the meta object for class '{@link org.somox.metrics.dsl.metricDSL.Parameter
- * Parameter}'.
+ * Returns the meta object for class
+ * '{@link org.somox.metrics.dsl.metricDSL.Parameter Parameter}'.
*
* @return the meta object for class 'Parameter'.
* @see org.somox.metrics.dsl.metricDSL.Parameter
@@ -681,8 +703,8 @@ public interface MetricDSLPackage extends EPackage {
/**
* Returns the meta object for the attribute '
- * {@link org.somox.metrics.dsl.metricDSL.Parameter#getShortname Shortname}'.
+ * {@link org.somox.metrics.dsl.metricDSL.Parameter#getShortname
+ * Shortname}'.
*
* @return the meta object for the attribute 'Shortname'.
* @see org.somox.metrics.dsl.metricDSL.Parameter#getShortname()
@@ -693,8 +715,8 @@ public interface MetricDSLPackage extends EPackage {
/**
* Returns the meta object for the attribute '
- * {@link org.somox.metrics.dsl.metricDSL.Parameter#getDescription Description}'.
+ * {@link org.somox.metrics.dsl.metricDSL.Parameter#getDescription
+ * Description}'.
*
* @return the meta object for the attribute 'Description'.
* @see org.somox.metrics.dsl.metricDSL.Parameter#getDescription()
@@ -705,8 +727,8 @@ public interface MetricDSLPackage extends EPackage {
/**
* Returns the meta object for the attribute '
- * {@link org.somox.metrics.dsl.metricDSL.Parameter#getDefaultValue Default Value}'.
- *
+ * {@link org.somox.metrics.dsl.metricDSL.Parameter#getDefaultValue Default
+ * Value}'.
*
* @return the meta object for the attribute 'Default Value'.
* @see org.somox.metrics.dsl.metricDSL.Parameter#getDefaultValue()
@@ -716,8 +738,9 @@ public interface MetricDSLPackage extends EPackage {
EAttribute getParameter_DefaultValue();
/**
- * Returns the meta object for class '{@link org.somox.metrics.dsl.metricDSL.Constant
- * Constant}'.
+ * Returns the meta object for class
+ * '{@link org.somox.metrics.dsl.metricDSL.Constant Constant}'.
*
* @return the meta object for class 'Constant'.
* @see org.somox.metrics.dsl.metricDSL.Constant
@@ -727,8 +750,8 @@ public interface MetricDSLPackage extends EPackage {
/**
* Returns the meta object for the attribute '
- * {@link org.somox.metrics.dsl.metricDSL.Constant#getValue Value}'.
+ * {@link org.somox.metrics.dsl.metricDSL.Constant#getValue Value}'.
+ *
*
* @return the meta object for the attribute 'Value'.
* @see org.somox.metrics.dsl.metricDSL.Constant#getValue()
@@ -738,8 +761,9 @@ public interface MetricDSLPackage extends EPackage {
EAttribute getConstant_Value();
/**
- * Returns the meta object for class '{@link org.somox.metrics.dsl.metricDSL.MetricDefinition
- * Metric Definition}'.
+ * Returns the meta object for class
+ * '{@link org.somox.metrics.dsl.metricDSL.MetricDefinition Metric
+ * Definition}'.
*
* @return the meta object for class 'Metric Definition'.
* @see org.somox.metrics.dsl.metricDSL.MetricDefinition
@@ -748,8 +772,9 @@ public interface MetricDSLPackage extends EPackage {
EClass getMetricDefinition();
/**
- * Returns the meta object for class '{@link org.somox.metrics.dsl.metricDSL.WeightedMetric
- * Weighted Metric}'.
+ * Returns the meta object for class
+ * '{@link org.somox.metrics.dsl.metricDSL.WeightedMetric Weighted
+ * Metric}'.
*
* @return the meta object for class 'Weighted Metric'.
* @see org.somox.metrics.dsl.metricDSL.WeightedMetric
@@ -759,10 +784,11 @@ public interface MetricDSLPackage extends EPackage {
/**
* Returns the meta object for the containment reference list '
- * {@link org.somox.metrics.dsl.metricDSL.WeightedMetric#getWeights Weights}'.
+ * {@link org.somox.metrics.dsl.metricDSL.WeightedMetric#getWeights
+ * Weights}'.
*
- * @return the meta object for the containment reference list 'Weights'.
+ * @return the meta object for the containment reference list
+ * 'Weights'.
* @see org.somox.metrics.dsl.metricDSL.WeightedMetric#getWeights()
* @see #getWeightedMetric()
* @generated
@@ -770,8 +796,9 @@ public interface MetricDSLPackage extends EPackage {
EReference getWeightedMetric_Weights();
/**
- * Returns the meta object for class '{@link org.somox.metrics.dsl.metricDSL.StepwiseMetric
- * Stepwise Metric}'.
+ * Returns the meta object for class
+ * '{@link org.somox.metrics.dsl.metricDSL.StepwiseMetric Stepwise
+ * Metric}'.
*
* @return the meta object for class 'Stepwise Metric'.
* @see org.somox.metrics.dsl.metricDSL.StepwiseMetric
@@ -781,8 +808,8 @@ public interface MetricDSLPackage extends EPackage {
/**
* Returns the meta object for the reference '
- * {@link org.somox.metrics.dsl.metricDSL.StepwiseMetric#getInnerMetric Inner Metric}'.
- *
+ * {@link org.somox.metrics.dsl.metricDSL.StepwiseMetric#getInnerMetric
+ * Inner Metric}'.
*
* @return the meta object for the reference 'Inner Metric'.
* @see org.somox.metrics.dsl.metricDSL.StepwiseMetric#getInnerMetric()
@@ -793,8 +820,8 @@ public interface MetricDSLPackage extends EPackage {
/**
* Returns the meta object for the containment reference list '
- * {@link org.somox.metrics.dsl.metricDSL.StepwiseMetric#getSteps Steps}'.
+ * {@link org.somox.metrics.dsl.metricDSL.StepwiseMetric#getSteps
+ * Steps}'.
*
* @return the meta object for the containment reference list 'Steps'.
* @see org.somox.metrics.dsl.metricDSL.StepwiseMetric#getSteps()
@@ -804,8 +831,9 @@ public interface MetricDSLPackage extends EPackage {
EReference getStepwiseMetric_Steps();
/**
- * Returns the meta object for class '{@link org.somox.metrics.dsl.metricDSL.RatioMetric
- * Ratio Metric}'.
+ * Returns the meta object for class
+ * '{@link org.somox.metrics.dsl.metricDSL.RatioMetric Ratio Metric}'.
+ *
*
* @return the meta object for class 'Ratio Metric'.
* @see org.somox.metrics.dsl.metricDSL.RatioMetric
@@ -838,8 +866,9 @@ public interface MetricDSLPackage extends EPackage {
EReference getRatioMetric_DenominatorMetric();
/**
- * Returns the meta object for class '{@link org.somox.metrics.dsl.metricDSL.BoundAndWeight
- * Bound And Weight}'.
+ * Returns the meta object for class
+ * '{@link org.somox.metrics.dsl.metricDSL.BoundAndWeight Bound And
+ * Weight}'.
*
* @return the meta object for class 'Bound And Weight'.
* @see org.somox.metrics.dsl.metricDSL.BoundAndWeight
@@ -849,8 +878,8 @@ public interface MetricDSLPackage extends EPackage {
/**
* Returns the meta object for the reference '
- * {@link org.somox.metrics.dsl.metricDSL.BoundAndWeight#getUpperBound Upper Bound}'.
- *
+ * {@link org.somox.metrics.dsl.metricDSL.BoundAndWeight#getUpperBound Upper
+ * Bound}'.
*
* @return the meta object for the reference 'Upper Bound'.
* @see org.somox.metrics.dsl.metricDSL.BoundAndWeight#getUpperBound()
@@ -861,8 +890,8 @@ public interface MetricDSLPackage extends EPackage {
/**
* Returns the meta object for the reference '
- * {@link org.somox.metrics.dsl.metricDSL.BoundAndWeight#getWeight Weight}'.
+ * {@link org.somox.metrics.dsl.metricDSL.BoundAndWeight#getWeight
+ * Weight}'.
*
* @return the meta object for the reference 'Weight'.
* @see org.somox.metrics.dsl.metricDSL.BoundAndWeight#getWeight()
@@ -872,8 +901,9 @@ public interface MetricDSLPackage extends EPackage {
EReference getBoundAndWeight_Weight();
/**
- * Returns the meta object for class '{@link org.somox.metrics.dsl.metricDSL.MetricAndWeight
- * Metric And Weight}'.
+ * Returns the meta object for class
+ * '{@link org.somox.metrics.dsl.metricDSL.MetricAndWeight Metric And
+ * Weight}'.
*
* @return the meta object for class 'Metric And Weight'.
* @see org.somox.metrics.dsl.metricDSL.MetricAndWeight
@@ -883,8 +913,8 @@ public interface MetricDSLPackage extends EPackage {
/**
* Returns the meta object for the reference '
- * {@link org.somox.metrics.dsl.metricDSL.MetricAndWeight#getMetric Metric}'.
+ * {@link org.somox.metrics.dsl.metricDSL.MetricAndWeight#getMetric
+ * Metric}'.
*
* @return the meta object for the reference 'Metric'.
* @see org.somox.metrics.dsl.metricDSL.MetricAndWeight#getMetric()
@@ -895,8 +925,8 @@ public interface MetricDSLPackage extends EPackage {
/**
* Returns the meta object for the reference '
- * {@link org.somox.metrics.dsl.metricDSL.MetricAndWeight#getWeight Weight}'.
+ * {@link org.somox.metrics.dsl.metricDSL.MetricAndWeight#getWeight
+ * Weight}'.
*
* @return the meta object for the reference 'Weight'.
* @see org.somox.metrics.dsl.metricDSL.MetricAndWeight#getWeight()
@@ -906,8 +936,8 @@ public interface MetricDSLPackage extends EPackage {
EReference getMetricAndWeight_Weight();
/**
- * Returns the factory that creates the instances of the model.
+ * Returns the factory that creates the instances of the model.
*
* @return the factory that creates the instances of the model.
* @generated
@@ -929,8 +959,8 @@ public interface MetricDSLPackage extends EPackage {
interface Literals {
/**
* The meta object literal for the '
- * {@link org.somox.metrics.dsl.metricDSL.impl.MetricModelImpl Metric Model}'
- * class.
+ * {@link org.somox.metrics.dsl.metricDSL.impl.MetricModelImpl Metric
+ * Model}' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.MetricModelImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getMetricModel()
@@ -939,24 +969,25 @@ interface Literals {
EClass METRIC_MODEL = eINSTANCE.getMetricModel();
/**
- * The meta object literal for the 'Import URI' attribute list feature.
+ * The meta object literal for the 'Import URI' attribute list
+ * feature.
*
* @generated
*/
EAttribute METRIC_MODEL__IMPORT_URI = eINSTANCE.getMetricModel_ImportURI();
/**
- * The meta object literal for the 'Metrics' containment reference list
- * feature.
+ * The meta object literal for the 'Metrics' containment
+ * reference list feature.
*
* @generated
*/
EReference METRIC_MODEL__METRICS = eINSTANCE.getMetricModel_Metrics();
/**
- * The meta object literal for the '{@link org.somox.metrics.dsl.metricDSL.impl.MetricImpl
- * Metric}' class.
+ * The meta object literal for the
+ * '{@link org.somox.metrics.dsl.metricDSL.impl.MetricImpl Metric}'
+ * class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.MetricImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getMetric()
@@ -965,8 +996,8 @@ interface Literals {
EClass METRIC = eINSTANCE.getMetric();
/**
- * The meta object literal for the 'Name' attribute feature.
+ * The meta object literal for the 'Name' attribute feature.
+ *
*
* @generated
*/
@@ -974,8 +1005,8 @@ interface Literals {
/**
* The meta object literal for the '
- * {@link org.somox.metrics.dsl.metricDSL.impl.ExternalMetricImpl External Metric}'
- * class.
+ * {@link org.somox.metrics.dsl.metricDSL.impl.ExternalMetricImpl External
+ * Metric}' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.ExternalMetricImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getExternalMetric()
@@ -985,8 +1016,8 @@ interface Literals {
/**
* The meta object literal for the '
- * {@link org.somox.metrics.dsl.metricDSL.impl.InternalMetricImpl Internal Metric}'
- * class.
+ * {@link org.somox.metrics.dsl.metricDSL.impl.InternalMetricImpl Internal
+ * Metric}' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.InternalMetricImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getInternalMetric()
@@ -995,40 +1026,41 @@ interface Literals {
EClass INTERNAL_METRIC = eINSTANCE.getInternalMetric();
/**
- * The meta object literal for the 'Short Name' attribute feature.
+ * The meta object literal for the 'Short Name' attribute
+ * feature.
*
* @generated
*/
EAttribute INTERNAL_METRIC__SHORT_NAME = eINSTANCE.getInternalMetric_ShortName();
/**
- * The meta object literal for the 'Description' attribute feature.
+ * The meta object literal for the 'Description' attribute
+ * feature.
*
* @generated
*/
EAttribute INTERNAL_METRIC__DESCRIPTION = eINSTANCE.getInternalMetric_Description();
/**
- * The meta object literal for the 'Parameter' containment reference list
- * feature.
+ * The meta object literal for the 'Parameter' containment
+ * reference list feature.
*
* @generated
*/
EReference INTERNAL_METRIC__PARAMETER = eINSTANCE.getInternalMetric_Parameter();
/**
- * The meta object literal for the 'Definition' containment reference
- * feature.
+ * The meta object literal for the 'Definition' containment
+ * reference feature.
*
* @generated
*/
EReference INTERNAL_METRIC__DEFINITION = eINSTANCE.getInternalMetric_Definition();
/**
- * The meta object literal for the '{@link org.somox.metrics.dsl.metricDSL.impl.NumberImpl
- * Number}' class.
+ * The meta object literal for the
+ * '{@link org.somox.metrics.dsl.metricDSL.impl.NumberImpl Number}'
+ * class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.NumberImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getNumber()
@@ -1037,8 +1069,8 @@ interface Literals {
EClass NUMBER = eINSTANCE.getNumber();
/**
- * The meta object literal for the 'Name' attribute feature.
+ * The meta object literal for the 'Name' attribute feature.
+ *
*
* @generated
*/
@@ -1046,8 +1078,8 @@ interface Literals {
/**
* The meta object literal for the '
- * {@link org.somox.metrics.dsl.metricDSL.impl.ParameterImpl Parameter}' class.
- *
+ * {@link org.somox.metrics.dsl.metricDSL.impl.ParameterImpl
+ * Parameter}' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.ParameterImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getParameter()
@@ -1056,32 +1088,33 @@ interface Literals {
EClass PARAMETER = eINSTANCE.getParameter();
/**
- * The meta object literal for the 'Shortname' attribute feature.
+ * The meta object literal for the 'Shortname' attribute
+ * feature.
*
* @generated
*/
EAttribute PARAMETER__SHORTNAME = eINSTANCE.getParameter_Shortname();
/**
- * The meta object literal for the 'Description' attribute feature.
+ * The meta object literal for the 'Description' attribute
+ * feature.
*
* @generated
*/
EAttribute PARAMETER__DESCRIPTION = eINSTANCE.getParameter_Description();
/**
- * The meta object literal for the 'Default Value' attribute feature.
+ * The meta object literal for the 'Default Value' attribute
+ * feature.
*
* @generated
*/
EAttribute PARAMETER__DEFAULT_VALUE = eINSTANCE.getParameter_DefaultValue();
/**
- * The meta object literal for the '{@link org.somox.metrics.dsl.metricDSL.impl.ConstantImpl
- * Constant}' class.
+ * The meta object literal for the
+ * '{@link org.somox.metrics.dsl.metricDSL.impl.ConstantImpl Constant}'
+ * class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.ConstantImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getConstant()
@@ -1090,8 +1123,8 @@ interface Literals {
EClass CONSTANT = eINSTANCE.getConstant();
/**
- * The meta object literal for the 'Value' attribute feature.
+ * The meta object literal for the 'Value' attribute feature.
+ *
*
* @generated
*/
@@ -1099,8 +1132,8 @@ interface Literals {
/**
* The meta object literal for the '
- * {@link org.somox.metrics.dsl.metricDSL.impl.MetricDefinitionImpl
- * Metric Definition}' class.
+ * {@link org.somox.metrics.dsl.metricDSL.impl.MetricDefinitionImpl Metric
+ * Definition}' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDefinitionImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getMetricDefinition()
@@ -1110,8 +1143,8 @@ interface Literals {
/**
* The meta object literal for the '
- * {@link org.somox.metrics.dsl.metricDSL.impl.WeightedMetricImpl Weighted Metric}'
- * class.
+ * {@link org.somox.metrics.dsl.metricDSL.impl.WeightedMetricImpl Weighted
+ * Metric}' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.WeightedMetricImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getWeightedMetric()
@@ -1120,8 +1153,8 @@ interface Literals {
EClass WEIGHTED_METRIC = eINSTANCE.getWeightedMetric();
/**
- * The meta object literal for the 'Weights' containment reference list
- * feature.
+ * The meta object literal for the 'Weights' containment
+ * reference list feature.
*
* @generated
*/
@@ -1129,8 +1162,8 @@ interface Literals {
/**
* The meta object literal for the '
- * {@link org.somox.metrics.dsl.metricDSL.impl.StepwiseMetricImpl Stepwise Metric}'
- * class.
+ * {@link org.somox.metrics.dsl.metricDSL.impl.StepwiseMetricImpl Stepwise
+ * Metric}' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.StepwiseMetricImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getStepwiseMetric()
@@ -1139,16 +1172,16 @@ interface Literals {
EClass STEPWISE_METRIC = eINSTANCE.getStepwiseMetric();
/**
- * The meta object literal for the 'Inner Metric' reference feature.
+ * The meta object literal for the 'Inner Metric' reference
+ * feature.
*
* @generated
*/
EReference STEPWISE_METRIC__INNER_METRIC = eINSTANCE.getStepwiseMetric_InnerMetric();
/**
- * The meta object literal for the 'Steps' containment reference list
- * feature.
+ * The meta object literal for the 'Steps' containment reference
+ * list feature.
*
* @generated
*/
@@ -1156,8 +1189,8 @@ interface Literals {
/**
* The meta object literal for the '
- * {@link org.somox.metrics.dsl.metricDSL.impl.RatioMetricImpl Ratio Metric}'
- * class.
+ * {@link org.somox.metrics.dsl.metricDSL.impl.RatioMetricImpl Ratio
+ * Metric}' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.RatioMetricImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getRatioMetric()
@@ -1166,16 +1199,16 @@ interface Literals {
EClass RATIO_METRIC = eINSTANCE.getRatioMetric();
/**
- * The meta object literal for the 'Nominator Metric' reference feature.
- *
+ * The meta object literal for the 'Nominator Metric' reference
+ * feature.
*
* @generated
*/
EReference RATIO_METRIC__NOMINATOR_METRIC = eINSTANCE.getRatioMetric_NominatorMetric();
/**
- * The meta object literal for the 'Denominator Metric' reference feature.
- *
+ * The meta object literal for the 'Denominator Metric'
+ * reference feature.
*
* @generated
*/
@@ -1183,8 +1216,8 @@ interface Literals {
/**
* The meta object literal for the '
- * {@link org.somox.metrics.dsl.metricDSL.impl.BoundAndWeightImpl Bound And Weight}
- * ' class.
+ * {@link org.somox.metrics.dsl.metricDSL.impl.BoundAndWeightImpl Bound And
+ * Weight} ' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.BoundAndWeightImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getBoundAndWeight()
@@ -1193,16 +1226,16 @@ interface Literals {
EClass BOUND_AND_WEIGHT = eINSTANCE.getBoundAndWeight();
/**
- * The meta object literal for the 'Upper Bound' reference feature.
+ * The meta object literal for the 'Upper Bound' reference
+ * feature.
*
* @generated
*/
EReference BOUND_AND_WEIGHT__UPPER_BOUND = eINSTANCE.getBoundAndWeight_UpperBound();
/**
- * The meta object literal for the 'Weight' reference feature.
+ * The meta object literal for the 'Weight' reference feature.
+ *
*
* @generated
*/
@@ -1210,8 +1243,8 @@ interface Literals {
/**
* The meta object literal for the '
- * {@link org.somox.metrics.dsl.metricDSL.impl.MetricAndWeightImpl
- * Metric And Weight}' class.
+ * {@link org.somox.metrics.dsl.metricDSL.impl.MetricAndWeightImpl Metric
+ * And Weight}' class.
*
* @see org.somox.metrics.dsl.metricDSL.impl.MetricAndWeightImpl
* @see org.somox.metrics.dsl.metricDSL.impl.MetricDSLPackageImpl#getMetricAndWeight()
@@ -1220,16 +1253,16 @@ interface Literals {
EClass METRIC_AND_WEIGHT = eINSTANCE.getMetricAndWeight();
/**
- * The meta object literal for the 'Metric' reference feature.
+ * The meta object literal for the 'Metric' reference feature.
+ *
*
* @generated
*/
EReference METRIC_AND_WEIGHT__METRIC = eINSTANCE.getMetricAndWeight_Metric();
/**
- * The meta object literal for the 'Weight' reference feature.
+ * The meta object literal for the 'Weight' reference feature.
+ *
*
* @generated
*/
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricDefinition.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricDefinition.java
index f85baba..8005304 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricDefinition.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricDefinition.java
@@ -5,8 +5,8 @@
import org.eclipse.emf.ecore.EObject;
/**
- * A representation of the model object 'Metric Definition'.
- *
+ * A representation of the model object 'Metric
+ * Definition'.
*
*
* @see org.somox.metrics.dsl.metricDSL.MetricDSLPackage#getMetricDefinition()
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricModel.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricModel.java
index 1ef40c0..29b0d13 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricModel.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/MetricModel.java
@@ -6,14 +6,16 @@
import org.eclipse.emf.ecore.EObject;
/**
- * A representation of the model object 'Metric Model'.
+ * A representation of the model object 'Metric
+ * Model'.
*
*
*
*
@@ -23,11 +25,11 @@
*/
public interface MetricModel extends EObject {
/**
- * Returns the value of the 'Import URI' attribute list. The list contents are
- * of type {@link java.lang.String}.
+ * Returns the value of the 'Import URI' attribute list. The
+ * list contents are of type {@link java.lang.String}.
*
- * If the meaning of the 'Import URI' attribute list isn't clear, there really should
- * be more of a description here...
+ * If the meaning of the 'Import URI' attribute list isn't clear, there
+ * really should be more of a description here...
*
*
*
@@ -39,11 +41,12 @@ public interface MetricModel extends EObject {
EList getImportURI();
/**
- * Returns the value of the 'Metrics' containment reference list. The list
- * contents are of type {@link org.somox.metrics.dsl.metricDSL.Metric}.
+ * Returns the value of the 'Metrics' containment reference
+ * list. The list contents are of type
+ * {@link org.somox.metrics.dsl.metricDSL.Metric}.
*
- * If the meaning of the 'Metrics' containment reference list isn't clear, there really
- * should be more of a description here...
+ * If the meaning of the 'Metrics' containment reference list isn't
+ * clear, there really should be more of a description here...
*
*
*
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/Number.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/Number.java
index 7d2760e..e8c037a 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/Number.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/Number.java
@@ -5,8 +5,8 @@
import org.eclipse.emf.ecore.EObject;
/**
- * A representation of the model object 'Number'.
+ * A representation of the model object
+ * 'Number'.
*
*
* The following features are supported:
@@ -21,10 +21,11 @@
*/
public interface Number extends EObject {
/**
- * Returns the value of the 'Name' attribute.
+ * Returns the value of the 'Name' attribute.
*
- * If the meaning of the 'Name' attribute isn't clear, there really should be more of a
- * description here...
+ * If the meaning of the 'Name' attribute isn't clear, there really
+ * should be more of a description here...
*
*
*
@@ -37,11 +38,10 @@ public interface Number extends EObject {
String getName();
/**
- * Sets the value of the '{@link org.somox.metrics.dsl.metricDSL.Number#getName Name}'
- * attribute.
+ * Sets the value of the '{@link org.somox.metrics.dsl.metricDSL.Number#getName
+ * Name}' attribute.
*
- * @param value
- * the new value of the 'Name' attribute.
+ * @param value the new value of the 'Name' attribute.
* @see #getName()
* @generated
*/
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/Parameter.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/Parameter.java
index a05c798..4df5d7c 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/Parameter.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/Parameter.java
@@ -3,15 +3,18 @@
package org.somox.metrics.dsl.metricDSL;
/**
- * A representation of the model object 'Parameter'.
+ * A representation of the model object
+ * 'Parameter'.
*
*
*
*
@@ -21,10 +24,11 @@
*/
public interface Parameter extends org.somox.metrics.dsl.metricDSL.Number {
/**
- * Returns the value of the 'Shortname' attribute.
+ * Returns the value of the 'Shortname' attribute.
*
- * If the meaning of the 'Shortname' attribute isn't clear, there really should be more
- * of a description here...
+ * If the meaning of the 'Shortname' attribute isn't clear, there
+ * really should be more of a description here...
*
*
*
@@ -37,21 +41,22 @@ public interface Parameter extends org.somox.metrics.dsl.metricDSL.Number {
String getShortname();
/**
- * Sets the value of the '{@link org.somox.metrics.dsl.metricDSL.Parameter#getShortname
+ * Sets the value of the
+ * '{@link org.somox.metrics.dsl.metricDSL.Parameter#getShortname
* Shortname}' attribute.
*
- * @param value
- * the new value of the 'Shortname' attribute.
+ * @param value the new value of the 'Shortname' attribute.
* @see #getShortname()
* @generated
*/
void setShortname(String value);
/**
- * Returns the value of the 'Description' attribute.
+ * Returns the value of the 'Description' attribute.
*
- * If the meaning of the 'Description' attribute isn't clear, there really should be
- * more of a description here...
+ * If the meaning of the 'Description' attribute isn't clear, there
+ * really should be more of a description here...
*
*
*
@@ -64,21 +69,23 @@ public interface Parameter extends org.somox.metrics.dsl.metricDSL.Number {
String getDescription();
/**
- * Sets the value of the '{@link org.somox.metrics.dsl.metricDSL.Parameter#getDescription
- * Description}' attribute.
+ * Sets the value of the
+ * '{@link org.somox.metrics.dsl.metricDSL.Parameter#getDescription
+ * Description}' attribute.
*
- * @param value
- * the new value of the 'Description' attribute.
+ * @param value the new value of the 'Description' attribute.
* @see #getDescription()
* @generated
*/
void setDescription(String value);
/**
- * Returns the value of the 'Default Value' attribute.
+ * Returns the value of the 'Default Value' attribute.
*
- * If the meaning of the 'Default Value' attribute isn't clear, there really should be
- * more of a description here...
+ * If the meaning of the 'Default Value' attribute isn't clear, there
+ * really should be more of a description here...
*
*
*
@@ -91,11 +98,11 @@ public interface Parameter extends org.somox.metrics.dsl.metricDSL.Number {
double getDefaultValue();
/**
- * Sets the value of the '{@link org.somox.metrics.dsl.metricDSL.Parameter#getDefaultValue
- * Default Value}' attribute.
+ * Sets the value of the
+ * '{@link org.somox.metrics.dsl.metricDSL.Parameter#getDefaultValue Default
+ * Value}' attribute.
*
- * @param value
- * the new value of the 'Default Value' attribute.
+ * @param value the new value of the 'Default Value' attribute.
* @see #getDefaultValue()
* @generated
*/
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/RatioMetric.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/RatioMetric.java
index 287e0cf..10eaa4a 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/RatioMetric.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/RatioMetric.java
@@ -3,8 +3,8 @@
package org.somox.metrics.dsl.metricDSL;
/**
- * A representation of the model object 'Ratio Metric'.
+ * A representation of the model object 'Ratio
+ * Metric'.
*
*
* The following features are supported:
@@ -22,11 +22,11 @@
*/
public interface RatioMetric extends MetricDefinition {
/**
- * Returns the value of the 'Nominator Metric' reference.
+ * Returns the value of the 'Nominator Metric' reference.
*
- * If the meaning of the 'Nominator Metric' reference isn't clear, there really should
- * be more of a description here...
+ * If the meaning of the 'Nominator Metric' reference isn't clear,
+ * there really should be more of a description here...
*
*
*
@@ -39,22 +39,23 @@ public interface RatioMetric extends MetricDefinition {
Metric getNominatorMetric();
/**
- * Sets the value of the '{@link org.somox.metrics.dsl.metricDSL.RatioMetric#getNominatorMetric
- * Nominator Metric}' reference.
+ * Sets the value of the
+ * '{@link org.somox.metrics.dsl.metricDSL.RatioMetric#getNominatorMetric
+ * Nominator Metric}' reference.
*
- * @param value
- * the new value of the 'Nominator Metric' reference.
+ * @param value the new value of the 'Nominator Metric' reference.
* @see #getNominatorMetric()
* @generated
*/
void setNominatorMetric(Metric value);
/**
- * Returns the value of the 'Denominator Metric' reference.
+ * Returns the value of the 'Denominator Metric' reference.
*
- * If the meaning of the 'Denominator Metric' reference isn't clear, there really
- * should be more of a description here...
+ * If the meaning of the 'Denominator Metric' reference isn't clear,
+ * there really should be more of a description here...
*
*
*
@@ -69,10 +70,10 @@ public interface RatioMetric extends MetricDefinition {
/**
* Sets the value of the '
* {@link org.somox.metrics.dsl.metricDSL.RatioMetric#getDenominatorMetric
- * Denominator Metric}' reference.
+ * Denominator Metric}' reference.
*
- * @param value
- * the new value of the 'Denominator Metric' reference.
+ * @param value the new value of the 'Denominator Metric' reference.
* @see #getDenominatorMetric()
* @generated
*/
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/StepwiseMetric.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/StepwiseMetric.java
index 1cedf2c..d1dfbed 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/StepwiseMetric.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/StepwiseMetric.java
@@ -5,15 +5,16 @@
import org.eclipse.emf.common.util.EList;
/**
- * A representation of the model object 'Stepwise Metric'.
- *
+ * A representation of the model object 'Stepwise
+ * Metric'.
*
*
*
*
@@ -23,10 +24,11 @@
*/
public interface StepwiseMetric extends MetricDefinition {
/**
- * Returns the value of the 'Inner Metric' reference.
+ * Returns the value of the 'Inner Metric' reference.
*
- * If the meaning of the 'Inner Metric' reference isn't clear, there really should be
- * more of a description here...
+ * If the meaning of the 'Inner Metric' reference isn't clear, there
+ * really should be more of a description here...
*
*
*
@@ -39,23 +41,25 @@ public interface StepwiseMetric extends MetricDefinition {
Metric getInnerMetric();
/**
- * Sets the value of the '{@link org.somox.metrics.dsl.metricDSL.StepwiseMetric#getInnerMetric
- * Inner Metric}' reference.
+ * Sets the value of the
+ * '{@link org.somox.metrics.dsl.metricDSL.StepwiseMetric#getInnerMetric
+ * Inner Metric}' reference.
*
- * @param value
- * the new value of the 'Inner Metric' reference.
+ * @param value the new value of the 'Inner Metric' reference.
* @see #getInnerMetric()
* @generated
*/
void setInnerMetric(Metric value);
/**
- * Returns the value of the 'Steps' containment reference list. The list
- * contents are of type {@link org.somox.metrics.dsl.metricDSL.BoundAndWeight}.
+ * Returns the value of the 'Steps' containment reference list.
+ * The list contents are of type
+ * {@link org.somox.metrics.dsl.metricDSL.BoundAndWeight}.
*
- * If the meaning of the 'Steps' containment reference list isn't clear, there really
- * should be more of a description here...
+ * If the meaning of the 'Steps' containment reference list isn't
+ * clear, there really should be more of a description here...
*
*
*
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/WeightedMetric.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/WeightedMetric.java
index 9c8cfc6..be255e7 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/WeightedMetric.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/WeightedMetric.java
@@ -5,13 +5,14 @@
import org.eclipse.emf.common.util.EList;
/**
- * A representation of the model object 'Weighted Metric'.
- *
+ * A representation of the model object 'Weighted
+ * Metric'.
*
*
*
*
@@ -21,12 +22,13 @@
*/
public interface WeightedMetric extends MetricDefinition {
/**
- * Returns the value of the 'Weights' containment reference list. The list
- * contents are of type {@link org.somox.metrics.dsl.metricDSL.MetricAndWeight}.
+ * Returns the value of the 'Weights' containment reference
+ * list. The list contents are of type
+ * {@link org.somox.metrics.dsl.metricDSL.MetricAndWeight}.
*
- * If the meaning of the 'Weights' containment reference list isn't clear, there really
- * should be more of a description here...
+ * If the meaning of the 'Weights' containment reference list isn't
+ * clear, there really should be more of a description here...
*
*
*
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/impl/BoundAndWeightImpl.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/impl/BoundAndWeightImpl.java
index 3779014..1812172 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/impl/BoundAndWeightImpl.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/impl/BoundAndWeightImpl.java
@@ -11,15 +11,15 @@
import org.somox.metrics.dsl.metricDSL.MetricDSLPackage;
/**
- * An implementation of the model object 'Bound And Weight'.
- *
+ * An implementation of the model object 'Bound
+ * And Weight'.
*
*
*
@@ -28,8 +28,8 @@
*/
public class MetricAndWeightImpl extends MinimalEObjectImpl.Container implements MetricAndWeight {
/**
- * The cached value of the '{@link #getMetric() Metric}' reference.
+ * The cached value of the '{@link #getMetric() Metric}' reference.
+ *
*
* @see #getMetric()
* @generated
@@ -38,8 +38,8 @@ public class MetricAndWeightImpl extends MinimalEObjectImpl.Container implements
protected Metric metric;
/**
- * The cached value of the '{@link #getWeight() Weight}' reference.
+ * The cached value of the '{@link #getWeight() Weight}' reference.
+ *
*
* @see #getWeight()
* @generated
@@ -53,7 +53,6 @@ public class MetricAndWeightImpl extends MinimalEObjectImpl.Container implements
* @generated
*/
protected MetricAndWeightImpl() {
- super();
}
/**
@@ -73,17 +72,15 @@ protected EClass eStaticClass() {
*/
@Override
public Metric getMetric() {
- if (this.metric != null && this.metric.eIsProxy()) {
- final InternalEObject oldMetric = (InternalEObject) this.metric;
- this.metric = (Metric) this.eResolveProxy(oldMetric);
- if (this.metric != oldMetric) {
- if (this.eNotificationRequired()) {
- this.eNotify(new ENotificationImpl(this, Notification.RESOLVE,
- MetricDSLPackage.METRIC_AND_WEIGHT__METRIC, oldMetric, this.metric));
- }
+ if ((metric != null) && metric.eIsProxy()) {
+ final InternalEObject oldMetric = (InternalEObject) metric;
+ metric = (Metric) eResolveProxy(oldMetric);
+ if ((metric != oldMetric) && eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, MetricDSLPackage.METRIC_AND_WEIGHT__METRIC,
+ oldMetric, metric));
}
}
- return this.metric;
+ return metric;
}
/**
@@ -92,7 +89,7 @@ public Metric getMetric() {
* @generated
*/
public Metric basicGetMetric() {
- return this.metric;
+ return metric;
}
/**
@@ -102,11 +99,11 @@ public Metric basicGetMetric() {
*/
@Override
public void setMetric(final Metric newMetric) {
- final Metric oldMetric = this.metric;
- this.metric = newMetric;
- if (this.eNotificationRequired()) {
- this.eNotify(new ENotificationImpl(this, Notification.SET, MetricDSLPackage.METRIC_AND_WEIGHT__METRIC,
- oldMetric, this.metric));
+ final Metric oldMetric = metric;
+ metric = newMetric;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, MetricDSLPackage.METRIC_AND_WEIGHT__METRIC, oldMetric,
+ metric));
}
}
@@ -117,17 +114,15 @@ public void setMetric(final Metric newMetric) {
*/
@Override
public org.somox.metrics.dsl.metricDSL.Number getWeight() {
- if (this.weight != null && this.weight.eIsProxy()) {
- final InternalEObject oldWeight = (InternalEObject) this.weight;
- this.weight = (org.somox.metrics.dsl.metricDSL.Number) this.eResolveProxy(oldWeight);
- if (this.weight != oldWeight) {
- if (this.eNotificationRequired()) {
- this.eNotify(new ENotificationImpl(this, Notification.RESOLVE,
- MetricDSLPackage.METRIC_AND_WEIGHT__WEIGHT, oldWeight, this.weight));
- }
+ if ((weight != null) && weight.eIsProxy()) {
+ final InternalEObject oldWeight = (InternalEObject) weight;
+ weight = (org.somox.metrics.dsl.metricDSL.Number) eResolveProxy(oldWeight);
+ if ((weight != oldWeight) && eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, MetricDSLPackage.METRIC_AND_WEIGHT__WEIGHT,
+ oldWeight, weight));
}
}
- return this.weight;
+ return weight;
}
/**
@@ -136,7 +131,7 @@ public org.somox.metrics.dsl.metricDSL.Number getWeight() {
* @generated
*/
public org.somox.metrics.dsl.metricDSL.Number basicGetWeight() {
- return this.weight;
+ return weight;
}
/**
@@ -146,11 +141,11 @@ public org.somox.metrics.dsl.metricDSL.Number basicGetWeight() {
*/
@Override
public void setWeight(final org.somox.metrics.dsl.metricDSL.Number newWeight) {
- final org.somox.metrics.dsl.metricDSL.Number oldWeight = this.weight;
- this.weight = newWeight;
- if (this.eNotificationRequired()) {
- this.eNotify(new ENotificationImpl(this, Notification.SET, MetricDSLPackage.METRIC_AND_WEIGHT__WEIGHT,
- oldWeight, this.weight));
+ final org.somox.metrics.dsl.metricDSL.Number oldWeight = weight;
+ weight = newWeight;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, MetricDSLPackage.METRIC_AND_WEIGHT__WEIGHT, oldWeight,
+ weight));
}
}
@@ -164,14 +159,14 @@ public Object eGet(final int featureID, final boolean resolve, final boolean cor
switch (featureID) {
case MetricDSLPackage.METRIC_AND_WEIGHT__METRIC:
if (resolve) {
- return this.getMetric();
+ return getMetric();
}
- return this.basicGetMetric();
+ return basicGetMetric();
case MetricDSLPackage.METRIC_AND_WEIGHT__WEIGHT:
if (resolve) {
- return this.getWeight();
+ return getWeight();
}
- return this.basicGetWeight();
+ return basicGetWeight();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -185,10 +180,10 @@ public Object eGet(final int featureID, final boolean resolve, final boolean cor
public void eSet(final int featureID, final Object newValue) {
switch (featureID) {
case MetricDSLPackage.METRIC_AND_WEIGHT__METRIC:
- this.setMetric((Metric) newValue);
+ setMetric((Metric) newValue);
return;
case MetricDSLPackage.METRIC_AND_WEIGHT__WEIGHT:
- this.setWeight((org.somox.metrics.dsl.metricDSL.Number) newValue);
+ setWeight((org.somox.metrics.dsl.metricDSL.Number) newValue);
return;
}
super.eSet(featureID, newValue);
@@ -203,10 +198,10 @@ public void eSet(final int featureID, final Object newValue) {
public void eUnset(final int featureID) {
switch (featureID) {
case MetricDSLPackage.METRIC_AND_WEIGHT__METRIC:
- this.setMetric((Metric) null);
+ setMetric((Metric) null);
return;
case MetricDSLPackage.METRIC_AND_WEIGHT__WEIGHT:
- this.setWeight((org.somox.metrics.dsl.metricDSL.Number) null);
+ setWeight((org.somox.metrics.dsl.metricDSL.Number) null);
return;
}
super.eUnset(featureID);
@@ -221,9 +216,9 @@ public void eUnset(final int featureID) {
public boolean eIsSet(final int featureID) {
switch (featureID) {
case MetricDSLPackage.METRIC_AND_WEIGHT__METRIC:
- return this.metric != null;
+ return metric != null;
case MetricDSLPackage.METRIC_AND_WEIGHT__WEIGHT:
- return this.weight != null;
+ return weight != null;
}
return super.eIsSet(featureID);
}
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/impl/MetricDSLFactoryImpl.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/impl/MetricDSLFactoryImpl.java
index 64eb198..cfddfcb 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/impl/MetricDSLFactoryImpl.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/impl/MetricDSLFactoryImpl.java
@@ -23,13 +23,15 @@
import org.somox.metrics.dsl.metricDSL.WeightedMetric;
/**
- * An implementation of the model Factory.
+ * An implementation of the model Factory.
*
* @generated
*/
public class MetricDSLFactoryImpl extends EFactoryImpl implements MetricDSLFactory {
/**
- * Creates the default factory implementation.
+ * Creates the default factory implementation.
*
* @generated
*/
@@ -47,12 +49,12 @@ public static MetricDSLFactory init() {
}
/**
- * Creates an instance of the factory.
+ * Creates an instance of the factory.
*
* @generated
*/
public MetricDSLFactoryImpl() {
- super();
}
/**
@@ -62,36 +64,22 @@ public MetricDSLFactoryImpl() {
*/
@Override
public EObject create(final EClass eClass) {
- switch (eClass.getClassifierID()) {
- case MetricDSLPackage.METRIC_MODEL:
- return this.createMetricModel();
- case MetricDSLPackage.METRIC:
- return this.createMetric();
- case MetricDSLPackage.EXTERNAL_METRIC:
- return this.createExternalMetric();
- case MetricDSLPackage.INTERNAL_METRIC:
- return this.createInternalMetric();
- case MetricDSLPackage.NUMBER:
- return this.createNumber();
- case MetricDSLPackage.PARAMETER:
- return this.createParameter();
- case MetricDSLPackage.CONSTANT:
- return this.createConstant();
- case MetricDSLPackage.METRIC_DEFINITION:
- return this.createMetricDefinition();
- case MetricDSLPackage.WEIGHTED_METRIC:
- return this.createWeightedMetric();
- case MetricDSLPackage.STEPWISE_METRIC:
- return this.createStepwiseMetric();
- case MetricDSLPackage.RATIO_METRIC:
- return this.createRatioMetric();
- case MetricDSLPackage.BOUND_AND_WEIGHT:
- return this.createBoundAndWeight();
- case MetricDSLPackage.METRIC_AND_WEIGHT:
- return this.createMetricAndWeight();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
+ return switch (eClass.getClassifierID()) {
+ case MetricDSLPackage.METRIC_MODEL -> createMetricModel();
+ case MetricDSLPackage.METRIC -> createMetric();
+ case MetricDSLPackage.EXTERNAL_METRIC -> createExternalMetric();
+ case MetricDSLPackage.INTERNAL_METRIC -> createInternalMetric();
+ case MetricDSLPackage.NUMBER -> createNumber();
+ case MetricDSLPackage.PARAMETER -> createParameter();
+ case MetricDSLPackage.CONSTANT -> createConstant();
+ case MetricDSLPackage.METRIC_DEFINITION -> createMetricDefinition();
+ case MetricDSLPackage.WEIGHTED_METRIC -> createWeightedMetric();
+ case MetricDSLPackage.STEPWISE_METRIC -> createStepwiseMetric();
+ case MetricDSLPackage.RATIO_METRIC -> createRatioMetric();
+ case MetricDSLPackage.BOUND_AND_WEIGHT -> createBoundAndWeight();
+ case MetricDSLPackage.METRIC_AND_WEIGHT -> createMetricAndWeight();
+ default -> throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ };
}
/**
@@ -101,8 +89,7 @@ public EObject create(final EClass eClass) {
*/
@Override
public MetricModel createMetricModel() {
- final MetricModelImpl metricModel = new MetricModelImpl();
- return metricModel;
+ return new MetricModelImpl();
}
/**
@@ -112,8 +99,7 @@ public MetricModel createMetricModel() {
*/
@Override
public Metric createMetric() {
- final MetricImpl metric = new MetricImpl();
- return metric;
+ return new MetricImpl();
}
/**
@@ -123,8 +109,7 @@ public Metric createMetric() {
*/
@Override
public ExternalMetric createExternalMetric() {
- final ExternalMetricImpl externalMetric = new ExternalMetricImpl();
- return externalMetric;
+ return new ExternalMetricImpl();
}
/**
@@ -134,8 +119,7 @@ public ExternalMetric createExternalMetric() {
*/
@Override
public InternalMetric createInternalMetric() {
- final InternalMetricImpl internalMetric = new InternalMetricImpl();
- return internalMetric;
+ return new InternalMetricImpl();
}
/**
@@ -145,8 +129,7 @@ public InternalMetric createInternalMetric() {
*/
@Override
public org.somox.metrics.dsl.metricDSL.Number createNumber() {
- final NumberImpl number = new NumberImpl();
- return number;
+ return new NumberImpl();
}
/**
@@ -156,8 +139,7 @@ public org.somox.metrics.dsl.metricDSL.Number createNumber() {
*/
@Override
public Parameter createParameter() {
- final ParameterImpl parameter = new ParameterImpl();
- return parameter;
+ return new ParameterImpl();
}
/**
@@ -167,8 +149,7 @@ public Parameter createParameter() {
*/
@Override
public Constant createConstant() {
- final ConstantImpl constant = new ConstantImpl();
- return constant;
+ return new ConstantImpl();
}
/**
@@ -178,8 +159,7 @@ public Constant createConstant() {
*/
@Override
public MetricDefinition createMetricDefinition() {
- final MetricDefinitionImpl metricDefinition = new MetricDefinitionImpl();
- return metricDefinition;
+ return new MetricDefinitionImpl();
}
/**
@@ -189,8 +169,7 @@ public MetricDefinition createMetricDefinition() {
*/
@Override
public WeightedMetric createWeightedMetric() {
- final WeightedMetricImpl weightedMetric = new WeightedMetricImpl();
- return weightedMetric;
+ return new WeightedMetricImpl();
}
/**
@@ -200,8 +179,7 @@ public WeightedMetric createWeightedMetric() {
*/
@Override
public StepwiseMetric createStepwiseMetric() {
- final StepwiseMetricImpl stepwiseMetric = new StepwiseMetricImpl();
- return stepwiseMetric;
+ return new StepwiseMetricImpl();
}
/**
@@ -211,8 +189,7 @@ public StepwiseMetric createStepwiseMetric() {
*/
@Override
public RatioMetric createRatioMetric() {
- final RatioMetricImpl ratioMetric = new RatioMetricImpl();
- return ratioMetric;
+ return new RatioMetricImpl();
}
/**
@@ -222,8 +199,7 @@ public RatioMetric createRatioMetric() {
*/
@Override
public BoundAndWeight createBoundAndWeight() {
- final BoundAndWeightImpl boundAndWeight = new BoundAndWeightImpl();
- return boundAndWeight;
+ return new BoundAndWeightImpl();
}
/**
@@ -233,8 +209,7 @@ public BoundAndWeight createBoundAndWeight() {
*/
@Override
public MetricAndWeight createMetricAndWeight() {
- final MetricAndWeightImpl metricAndWeight = new MetricAndWeightImpl();
- return metricAndWeight;
+ return new MetricAndWeightImpl();
}
/**
@@ -244,7 +219,7 @@ public MetricAndWeight createMetricAndWeight() {
*/
@Override
public MetricDSLPackage getMetricDSLPackage() {
- return (MetricDSLPackage) this.getEPackage();
+ return (MetricDSLPackage) getEPackage();
}
/**
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/impl/MetricDSLPackageImpl.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/impl/MetricDSLPackageImpl.java
index b1a8411..e415a1f 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/impl/MetricDSLPackageImpl.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/impl/MetricDSLPackageImpl.java
@@ -23,7 +23,8 @@
import org.somox.metrics.dsl.metricDSL.WeightedMetric;
/**
- * An implementation of the model Package.
+ * An implementation of the model Package.
*
* @generated
*/
@@ -121,12 +122,13 @@ public class MetricDSLPackageImpl extends EPackageImpl implements MetricDSLPacka
/**
* Creates an instance of the model Package, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package package URI
- * value.
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the
+ * package package URI value.
*
- * Note: the correct way to create the package is via the static factory method {@link #init
- * init()}, which also performs initialization of the package, or returns the registered
- * package, if one already exists.
+ * Note: the correct way to create the package is via the static factory method
+ * {@link #init init()}, which also performs initialization of the package, or
+ * returns the registered package, if one already exists.
*
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see org.somox.metrics.dsl.metricDSL.MetricDSLPackage#eNS_URI
@@ -145,13 +147,14 @@ private MetricDSLPackageImpl() {
private static boolean isInited = false;
/**
- * Creates, registers, and initializes the Package for this model, and for any others
- * upon which it depends.
+ * Creates, registers, and initializes the Package for this model, and
+ * for any others upon which it depends.
*
*
*
*
@@ -29,8 +29,8 @@
*/
public class WeightedMetricImpl extends MetricDefinitionImpl implements WeightedMetric {
/**
- * The cached value of the '{@link #getWeights() Weights}' containment reference list.
- *
+ * The cached value of the '{@link #getWeights() Weights}' containment
+ * reference list.
*
* @see #getWeights()
* @generated
@@ -44,7 +44,6 @@ public class WeightedMetricImpl extends MetricDefinitionImpl implements Weighted
* @generated
*/
protected WeightedMetricImpl() {
- super();
}
/**
@@ -64,11 +63,11 @@ protected EClass eStaticClass() {
*/
@Override
public EList getWeights() {
- if (this.weights == null) {
- this.weights = new EObjectContainmentEList(MetricAndWeight.class, this,
+ if (weights == null) {
+ weights = new EObjectContainmentEList<>(MetricAndWeight.class, this,
MetricDSLPackage.WEIGHTED_METRIC__WEIGHTS);
}
- return this.weights;
+ return weights;
}
/**
@@ -81,7 +80,7 @@ public NotificationChain eInverseRemove(final InternalEObject otherEnd, final in
final NotificationChain msgs) {
switch (featureID) {
case MetricDSLPackage.WEIGHTED_METRIC__WEIGHTS:
- return ((InternalEList>) this.getWeights()).basicRemove(otherEnd, msgs);
+ return ((InternalEList>) getWeights()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -95,7 +94,7 @@ public NotificationChain eInverseRemove(final InternalEObject otherEnd, final in
public Object eGet(final int featureID, final boolean resolve, final boolean coreType) {
switch (featureID) {
case MetricDSLPackage.WEIGHTED_METRIC__WEIGHTS:
- return this.getWeights();
+ return getWeights();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -110,8 +109,8 @@ public Object eGet(final int featureID, final boolean resolve, final boolean cor
public void eSet(final int featureID, final Object newValue) {
switch (featureID) {
case MetricDSLPackage.WEIGHTED_METRIC__WEIGHTS:
- this.getWeights().clear();
- this.getWeights().addAll((Collection extends MetricAndWeight>) newValue);
+ getWeights().clear();
+ getWeights().addAll((Collection extends MetricAndWeight>) newValue);
return;
}
super.eSet(featureID, newValue);
@@ -126,7 +125,7 @@ public void eSet(final int featureID, final Object newValue) {
public void eUnset(final int featureID) {
switch (featureID) {
case MetricDSLPackage.WEIGHTED_METRIC__WEIGHTS:
- this.getWeights().clear();
+ getWeights().clear();
return;
}
super.eUnset(featureID);
@@ -141,7 +140,7 @@ public void eUnset(final int featureID) {
public boolean eIsSet(final int featureID) {
switch (featureID) {
case MetricDSLPackage.WEIGHTED_METRIC__WEIGHTS:
- return this.weights != null && !this.weights.isEmpty();
+ return (weights != null) && !weights.isEmpty();
}
return super.eIsSet(featureID);
}
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/util/MetricDSLAdapterFactory.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/util/MetricDSLAdapterFactory.java
index eed6e11..bb241a9 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/util/MetricDSLAdapterFactory.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/util/MetricDSLAdapterFactory.java
@@ -21,8 +21,9 @@
import org.somox.metrics.dsl.metricDSL.WeightedMetric;
/**
- * The Adapter Factory for the model. It provides an adapter
- * createXXX method for each class of the model.
+ * The Adapter Factory for the model. It provides
+ * an adapter createXXX method for each class of the model.
*
* @see org.somox.metrics.dsl.metricDSL.MetricDSLPackage
* @generated
@@ -36,7 +37,8 @@ public class MetricDSLAdapterFactory extends AdapterFactoryImpl {
protected static MetricDSLPackage modelPackage;
/**
- * Creates an instance of the adapter factory.
+ * Creates an instance of the adapter factory.
*
* @generated
*/
@@ -47,9 +49,10 @@ public MetricDSLAdapterFactory() {
}
/**
- * Returns whether this factory is applicable for the type of the object. This implementation returns true if the object is either the model's package
- * or is an instance object of the model.
+ * Returns whether this factory is applicable for the type of the object. This implementation returns true if the
+ * object is either the model's package or is an instance object of the model.
+ *
*
* @return whether this factory is applicable for the type of the object.
* @generated
@@ -66,12 +69,12 @@ public boolean isFactoryForType(final Object object) {
}
/**
- * The switch that delegates to the createXXX methods.
+ * The switch that delegates to the createXXX methods.
*
* @generated
*/
- protected MetricDSLSwitch modelSwitch = new MetricDSLSwitch() {
+ protected MetricDSLSwitch modelSwitch = new MetricDSLSwitch<>() {
@Override
public Adapter caseMetricModel(final MetricModel object) {
return MetricDSLAdapterFactory.this.createMetricModelAdapter();
@@ -144,24 +147,24 @@ public Adapter defaultCase(final EObject object) {
};
/**
- * Creates an adapter for the target.
+ * Creates an adapter for the target.
*
- * @param target
- * the object to adapt.
+ * @param target the object to adapt.
* @return the adapter for the target.
* @generated
*/
@Override
public Adapter createAdapter(final Notifier target) {
- return this.modelSwitch.doSwitch((EObject) target);
+ return modelSwitch.doSwitch((EObject) target);
}
/**
* Creates a new adapter for an object of class '
- * {@link org.somox.metrics.dsl.metricDSL.MetricModel Metric Model}'. 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.
+ * {@link org.somox.metrics.dsl.metricDSL.MetricModel Metric Model}'.
+ * 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.
*
* @return the new adapter.
* @see org.somox.metrics.dsl.metricDSL.MetricModel
@@ -172,10 +175,11 @@ public Adapter createMetricModelAdapter() {
}
/**
- * Creates a new adapter for an object of class '{@link org.somox.metrics.dsl.metricDSL.Metric
- * Metric}'. 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.
+ * Creates a new adapter for an object of class
+ * '{@link org.somox.metrics.dsl.metricDSL.Metric Metric}'. 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.
*
* @return the new adapter.
* @see org.somox.metrics.dsl.metricDSL.Metric
@@ -187,10 +191,10 @@ public Adapter createMetricAdapter() {
/**
* Creates a new adapter for an object of class '
- * {@link org.somox.metrics.dsl.metricDSL.ExternalMetric External Metric}'. 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.
+ * {@link org.somox.metrics.dsl.metricDSL.ExternalMetric External
+ * Metric}'. 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.
*
* @return the new adapter.
* @see org.somox.metrics.dsl.metricDSL.ExternalMetric
@@ -202,10 +206,10 @@ public Adapter createExternalMetricAdapter() {
/**
* Creates a new adapter for an object of class '
- * {@link org.somox.metrics.dsl.metricDSL.InternalMetric Internal Metric}'. 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.
+ * {@link org.somox.metrics.dsl.metricDSL.InternalMetric Internal
+ * Metric}'. 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.
*
* @return the new adapter.
* @see org.somox.metrics.dsl.metricDSL.InternalMetric
@@ -216,10 +220,11 @@ public Adapter createInternalMetricAdapter() {
}
/**
- * Creates a new adapter for an object of class '{@link org.somox.metrics.dsl.metricDSL.Number
- * Number}'. 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.
+ * Creates a new adapter for an object of class
+ * '{@link org.somox.metrics.dsl.metricDSL.Number Number}'. 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.
*
* @return the new adapter.
* @see org.somox.metrics.dsl.metricDSL.Number
@@ -231,9 +236,10 @@ public Adapter createNumberAdapter() {
/**
* Creates a new adapter for an object of class '
- * {@link org.somox.metrics.dsl.metricDSL.Parameter Parameter}'. 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.
+ * {@link org.somox.metrics.dsl.metricDSL.Parameter Parameter}'. 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.
*
* @return the new adapter.
* @see org.somox.metrics.dsl.metricDSL.Parameter
@@ -244,10 +250,11 @@ public Adapter createParameterAdapter() {
}
/**
- * Creates a new adapter for an object of class '{@link org.somox.metrics.dsl.metricDSL.Constant
- * Constant}'. 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.
+ * Creates a new adapter for an object of class
+ * '{@link org.somox.metrics.dsl.metricDSL.Constant Constant}'. 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.
*
* @return the new adapter.
* @see org.somox.metrics.dsl.metricDSL.Constant
@@ -259,10 +266,10 @@ public Adapter createConstantAdapter() {
/**
* Creates a new adapter for an object of class '
- * {@link org.somox.metrics.dsl.metricDSL.MetricDefinition Metric Definition}'. 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.
+ * {@link org.somox.metrics.dsl.metricDSL.MetricDefinition Metric
+ * Definition}'. 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.
*
* @return the new adapter.
* @see org.somox.metrics.dsl.metricDSL.MetricDefinition
@@ -274,10 +281,10 @@ public Adapter createMetricDefinitionAdapter() {
/**
* Creates a new adapter for an object of class '
- * {@link org.somox.metrics.dsl.metricDSL.WeightedMetric Weighted Metric}'. 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.
+ * {@link org.somox.metrics.dsl.metricDSL.WeightedMetric Weighted
+ * Metric}'. 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.
*
* @return the new adapter.
* @see org.somox.metrics.dsl.metricDSL.WeightedMetric
@@ -289,10 +296,10 @@ public Adapter createWeightedMetricAdapter() {
/**
* Creates a new adapter for an object of class '
- * {@link org.somox.metrics.dsl.metricDSL.StepwiseMetric Stepwise Metric}'. 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.
+ * {@link org.somox.metrics.dsl.metricDSL.StepwiseMetric Stepwise
+ * Metric}'. 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.
*
* @return the new adapter.
* @see org.somox.metrics.dsl.metricDSL.StepwiseMetric
@@ -304,10 +311,10 @@ public Adapter createStepwiseMetricAdapter() {
/**
* Creates a new adapter for an object of class '
- * {@link org.somox.metrics.dsl.metricDSL.RatioMetric Ratio Metric}'. 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.
+ * {@link org.somox.metrics.dsl.metricDSL.RatioMetric Ratio Metric}'.
+ * 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.
*
* @return the new adapter.
* @see org.somox.metrics.dsl.metricDSL.RatioMetric
@@ -319,10 +326,10 @@ public Adapter createRatioMetricAdapter() {
/**
* Creates a new adapter for an object of class '
- * {@link org.somox.metrics.dsl.metricDSL.BoundAndWeight Bound And Weight}'. 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.
+ * {@link org.somox.metrics.dsl.metricDSL.BoundAndWeight Bound And
+ * Weight}'. 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.
*
* @return the new adapter.
* @see org.somox.metrics.dsl.metricDSL.BoundAndWeight
@@ -334,10 +341,10 @@ public Adapter createBoundAndWeightAdapter() {
/**
* Creates a new adapter for an object of class '
- * {@link org.somox.metrics.dsl.metricDSL.MetricAndWeight Metric And Weight}'. 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.
+ * {@link org.somox.metrics.dsl.metricDSL.MetricAndWeight Metric And
+ * Weight}'. 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.
*
* @return the new adapter.
* @see org.somox.metrics.dsl.metricDSL.MetricAndWeight
@@ -348,8 +355,8 @@ public Adapter createMetricAndWeightAdapter() {
}
/**
- * Creates a new adapter for the default case. This default
- * implementation returns null.
+ * Creates a new adapter for the default case. This
+ * default implementation returns null.
*
* @return the new adapter.
* @generated
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/util/MetricDSLSwitch.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/util/MetricDSLSwitch.java
index 9ed9d12..d85d32a 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/util/MetricDSLSwitch.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/metricDSL/util/MetricDSLSwitch.java
@@ -20,11 +20,12 @@
import org.somox.metrics.dsl.metricDSL.WeightedMetric;
/**
- * The Switch for the model's inheritance hierarchy. It supports the
- * call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for
- * each class of the model, starting with the actual class of the object and proceeding up the
- * inheritance hierarchy until a non-null result is returned, which is the result of the switch.
- *
+ * The Switch for the model's inheritance
+ * hierarchy. It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the caseXXX method for each class of the model,
+ * starting with the actual class of the object and proceeding up the
+ * inheritance hierarchy until a non-null result is returned, which is the
+ * result of the switch.
*
* @see org.somox.metrics.dsl.metricDSL.MetricDSLPackage
* @generated
@@ -38,7 +39,8 @@ public class MetricDSLSwitch extends Switch {
protected static MetricDSLPackage modelPackage;
/**
- * Creates an instance of the switch.
+ * Creates an instance of the switch.
*
* @generated
*/
@@ -49,8 +51,8 @@ public MetricDSLSwitch() {
}
/**
- * Checks whether this is a switch for the given package.
+ * Checks whether this is a switch for the given package.
*
* @parameter ePackage the package in question.
* @return whether this is a switch for the given package.
@@ -62,8 +64,9 @@ protected boolean isSwitchFor(final EPackage ePackage) {
}
/**
- * Calls caseXXX for each class of the model until one returns a non null result;
- * it yields that result.
+ * Calls caseXXX for each class of the model until one returns a
+ * non null result; it yields that result.
*
* @return the first non-null result returned by a caseXXX call.
* @generated
@@ -202,13 +205,13 @@ protected T doSwitch(final int classifierID, final EObject theEObject) {
}
/**
- * Returns the result of interpreting the object as an instance of 'Metric Model'. This implementation returns null; returning a non-null result will
- * terminate the switch.
+ * Returns the result of interpreting the object as an instance of 'Metric
+ * Model'. This implementation returns null;
+ * returning a non-null result will terminate the switch.
*
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Metric Model'.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Metric
+ * Model'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
@@ -217,13 +220,13 @@ public T caseMetricModel(final MetricModel object) {
}
/**
- * Returns the result of interpreting the object as an instance of 'Metric'. This implementation returns null; returning a non-null result will
- * terminate the switch.
+ * Returns the result of interpreting the object as an instance of
+ * 'Metric'. This implementation returns null;
+ * returning a non-null result will terminate the switch.
*
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Metric'.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
+ * 'Metric'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
@@ -232,13 +235,13 @@ public T caseMetric(final Metric object) {
}
/**
- * Returns the result of interpreting the object as an instance of 'External Metric'.
- * This implementation returns null; returning a non-null result will
- * terminate the switch.
+ * Returns the result of interpreting the object as an instance of 'External
+ * Metric'. This implementation returns null;
+ * returning a non-null result will terminate the switch.
*
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'External Metric'.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'External
+ * Metric'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
@@ -247,13 +250,13 @@ public T caseExternalMetric(final ExternalMetric object) {
}
/**
- * Returns the result of interpreting the object as an instance of 'Internal Metric'.
- * This implementation returns null; returning a non-null result will
- * terminate the switch.
+ * Returns the result of interpreting the object as an instance of 'Internal
+ * Metric'. This implementation returns null;
+ * returning a non-null result will terminate the switch.
*
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Internal Metric'.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Internal
+ * Metric'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
@@ -262,13 +265,13 @@ public T caseInternalMetric(final InternalMetric object) {
}
/**
- * Returns the result of interpreting the object as an instance of 'Number'. This implementation returns null; returning a non-null result will
- * terminate the switch.
+ * Returns the result of interpreting the object as an instance of
+ * 'Number'. This implementation returns null;
+ * returning a non-null result will terminate the switch.
*
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Number'.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
+ * 'Number'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
@@ -277,13 +280,14 @@ public T caseNumber(final org.somox.metrics.dsl.metricDSL.Number object) {
}
/**
- * Returns the result of interpreting the object as an instance of 'Parameter'. This implementation returns null; returning a non-null result will
- * terminate the switch.
+ * Returns the result of interpreting the object as an instance of
+ * 'Parameter'. This implementation returns
+ * null; returning a non-null result will terminate the switch.
*
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Parameter'.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
+ * 'Parameter'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
@@ -292,13 +296,14 @@ public T caseParameter(final Parameter object) {
}
/**
- * Returns the result of interpreting the object as an instance of 'Constant'. This implementation returns null; returning a non-null result will
- * terminate the switch.
+ * Returns the result of interpreting the object as an instance of
+ * 'Constant'. This implementation returns
+ * null; returning a non-null result will terminate the switch.
*
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Constant'.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
+ * 'Constant'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
@@ -307,13 +312,13 @@ public T caseConstant(final Constant object) {
}
/**
- * Returns the result of interpreting the object as an instance of 'Metric Definition'.
- * This implementation returns null; returning a non-null result will
- * terminate the switch.
+ * Returns the result of interpreting the object as an instance of 'Metric
+ * Definition'. This implementation returns null;
+ * returning a non-null result will terminate the switch.
*
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Metric Definition'.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Metric
+ * Definition'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
@@ -322,13 +327,13 @@ public T caseMetricDefinition(final MetricDefinition object) {
}
/**
- * Returns the result of interpreting the object as an instance of 'Weighted Metric'.
- * This implementation returns null; returning a non-null result will
- * terminate the switch.
+ * Returns the result of interpreting the object as an instance of 'Weighted
+ * Metric'. This implementation returns null;
+ * returning a non-null result will terminate the switch.
*
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Weighted Metric'.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Weighted
+ * Metric'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
@@ -337,13 +342,13 @@ public T caseWeightedMetric(final WeightedMetric object) {
}
/**
- * Returns the result of interpreting the object as an instance of 'Stepwise Metric'.
- * This implementation returns null; returning a non-null result will
- * terminate the switch.
+ * Returns the result of interpreting the object as an instance of 'Stepwise
+ * Metric'. This implementation returns null;
+ * returning a non-null result will terminate the switch.
*
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Stepwise Metric'.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Stepwise
+ * Metric'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
@@ -352,13 +357,13 @@ public T caseStepwiseMetric(final StepwiseMetric object) {
}
/**
- * Returns the result of interpreting the object as an instance of 'Ratio Metric'. This implementation returns null; returning a non-null result will
- * terminate the switch.
+ * Returns the result of interpreting the object as an instance of 'Ratio
+ * Metric'. This implementation returns null;
+ * returning a non-null result will terminate the switch.
*
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Ratio Metric'.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Ratio
+ * Metric'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
@@ -367,13 +372,13 @@ public T caseRatioMetric(final RatioMetric object) {
}
/**
- * Returns the result of interpreting the object as an instance of 'Bound And Weight'.
- * This implementation returns null; returning a non-null result will
- * terminate the switch.
+ * Returns the result of interpreting the object as an instance of 'Bound
+ * And Weight'. This implementation returns null;
+ * returning a non-null result will terminate the switch.
*
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Bound And Weight'.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Bound
+ * And Weight'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
@@ -382,13 +387,13 @@ public T caseBoundAndWeight(final BoundAndWeight object) {
}
/**
- * Returns the result of interpreting the object as an instance of 'Metric And Weight'.
- * This implementation returns null; returning a non-null result will
- * terminate the switch.
+ * Returns the result of interpreting the object as an instance of 'Metric
+ * And Weight'. This implementation returns null;
+ * returning a non-null result will terminate the switch.
*
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Metric And Weight'.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Metric
+ * And Weight'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
@@ -397,13 +402,14 @@ public T caseMetricAndWeight(final MetricAndWeight object) {
}
/**
- * Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will
- * terminate the switch, but this is the last case anyway.
+ * Returns the result of interpreting the object as an instance of
+ * 'EObject'. This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last
+ * case anyway.
*
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'EObject'.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
+ * 'EObject'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
*/
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/MetricDSLParser.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/MetricDSLParser.java
index 4fc1c2d..3c46dfe 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/MetricDSLParser.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/MetricDSLParser.java
@@ -21,7 +21,7 @@ protected void setInitialHiddenTokens(final XtextTokenStream tokenStream) {
@Override
protected org.somox.metrics.dsl.parser.antlr.internal.InternalMetricDSLParser createParser(
final XtextTokenStream stream) {
- return new org.somox.metrics.dsl.parser.antlr.internal.InternalMetricDSLParser(stream, this.getGrammarAccess());
+ return new org.somox.metrics.dsl.parser.antlr.internal.InternalMetricDSLParser(stream, getGrammarAccess());
}
@Override
@@ -30,7 +30,7 @@ protected String getDefaultRuleName() {
}
public MetricDSLGrammarAccess getGrammarAccess() {
- return this.grammarAccess;
+ return grammarAccess;
}
public void setGrammarAccess(final MetricDSLGrammarAccess grammarAccess) {
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSLLexer.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSLLexer.java
index a12b451..272f63f 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSLLexer.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSLLexer.java
@@ -53,7 +53,7 @@ public class InternalMetricDSLLexer extends Lexer {
// delegators
public InternalMetricDSLLexer() {
- ;
+
}
public InternalMetricDSLLexer(final CharStream input) {
@@ -84,8 +84,8 @@ public final void mT__12() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -105,8 +105,8 @@ public final void mT__13() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -126,8 +126,8 @@ public final void mT__14() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -147,8 +147,8 @@ public final void mT__15() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -168,8 +168,8 @@ public final void mT__16() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -189,8 +189,8 @@ public final void mT__17() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -210,8 +210,8 @@ public final void mT__18() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -231,8 +231,8 @@ public final void mT__19() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -252,8 +252,8 @@ public final void mT__20() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -273,8 +273,8 @@ public final void mT__21() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -294,8 +294,8 @@ public final void mT__22() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -315,8 +315,8 @@ public final void mT__23() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -336,8 +336,8 @@ public final void mT__24() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -357,8 +357,8 @@ public final void mT__25() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -378,8 +378,8 @@ public final void mT__26() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -399,8 +399,8 @@ public final void mT__27() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -420,8 +420,8 @@ public final void mT__28() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -441,8 +441,8 @@ public final void mT__29() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -462,8 +462,8 @@ public final void mT__30() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -483,8 +483,8 @@ public final void mT__31() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -504,8 +504,8 @@ public final void mT__32() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -525,8 +525,8 @@ public final void mT__33() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -546,8 +546,8 @@ public final void mT__34() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -567,8 +567,8 @@ public final void mT__35() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -587,7 +587,7 @@ public final void mRULE_DOUBLE() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:992:15:
// ( '-' )?
int alt1 = 2;
- final int LA1_0 = this.input.LA(1);
+ final int LA1_0 = input.LA(1);
if ((LA1_0 == '-')) {
alt1 = 1;
@@ -604,14 +604,14 @@ public final void mRULE_DOUBLE() throws RecognitionException {
}
- this.mRULE_INT();
+ mRULE_INT();
this.match('.');
- this.mRULE_INT();
+ mRULE_INT();
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -623,16 +623,18 @@ public final void mRULE_ID() throws RecognitionException {
final int _type = RULE_ID;
final int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:994:9:
- // ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' ..
+ // ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_'
+ // | '0' ..
// '9' )* )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:994:11:
- // ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' ..
+ // ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' |
+ // '0' ..
// '9' )*
{
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:994:11:
// ( '^' )?
int alt2 = 2;
- final int LA2_0 = this.input.LA(1);
+ final int LA2_0 = input.LA(1);
if ((LA2_0 == '^')) {
alt2 = 1;
@@ -649,24 +651,22 @@ public final void mRULE_ID() throws RecognitionException {
}
- if ((this.input.LA(1) >= 'A' && this.input.LA(1) <= 'Z') || this.input.LA(1) == '_'
- || (this.input.LA(1) >= 'a' && this.input.LA(1) <= 'z')) {
- this.input.consume();
-
- } else {
- final MismatchedSetException mse = new MismatchedSetException(null, this.input);
+ if (((input.LA(1) < 'A') || (input.LA(1) > 'Z')) && (input.LA(1) != '_')
+ && ((input.LA(1) < 'a') || (input.LA(1) > 'z'))) {
+ final MismatchedSetException mse = new MismatchedSetException(null, input);
this.recover(mse);
throw mse;
}
+ input.consume();
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:994:40:
// ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
loop3: do {
int alt3 = 2;
- final int LA3_0 = this.input.LA(1);
+ final int LA3_0 = input.LA(1);
- if (((LA3_0 >= '0' && LA3_0 <= '9') || (LA3_0 >= 'A' && LA3_0 <= 'Z') || LA3_0 == '_'
- || (LA3_0 >= 'a' && LA3_0 <= 'z'))) {
+ if ((((LA3_0 >= '0') && (LA3_0 <= '9')) || ((LA3_0 >= 'A') && (LA3_0 <= 'Z')) || (LA3_0 == '_')
+ || ((LA3_0 >= 'a') && (LA3_0 <= 'z')))) {
alt3 = 1;
}
@@ -674,16 +674,13 @@ public final void mRULE_ID() throws RecognitionException {
case 1:
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:
{
- if ((this.input.LA(1) >= '0' && this.input.LA(1) <= '9')
- || (this.input.LA(1) >= 'A' && this.input.LA(1) <= 'Z') || this.input.LA(1) == '_'
- || (this.input.LA(1) >= 'a' && this.input.LA(1) <= 'z')) {
- this.input.consume();
-
- } else {
- final MismatchedSetException mse = new MismatchedSetException(null, this.input);
+ if (((input.LA(1) < '0') || (input.LA(1) > '9')) && ((input.LA(1) < 'A') || (input.LA(1) > 'Z'))
+ && (input.LA(1) != '_') && ((input.LA(1) < 'a') || (input.LA(1) > 'z'))) {
+ final MismatchedSetException mse = new MismatchedSetException(null, input);
this.recover(mse);
throw mse;
}
+ input.consume();
}
break;
@@ -695,8 +692,8 @@ public final void mRULE_ID() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -717,9 +714,9 @@ public final void mRULE_INT() throws RecognitionException {
int cnt4 = 0;
loop4: do {
int alt4 = 2;
- final int LA4_0 = this.input.LA(1);
+ final int LA4_0 = input.LA(1);
- if (((LA4_0 >= '0' && LA4_0 <= '9'))) {
+ if ((((LA4_0 >= '0') && (LA4_0 <= '9')))) {
alt4 = 1;
}
@@ -728,7 +725,7 @@ public final void mRULE_INT() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:996:13:
// '0' .. '9'
{
- this.matchRange('0', '9');
+ matchRange('0', '9');
}
break;
@@ -737,7 +734,7 @@ public final void mRULE_INT() throws RecognitionException {
if (cnt4 >= 1) {
break loop4;
}
- final EarlyExitException eee = new EarlyExitException(4, this.input);
+ final EarlyExitException eee = new EarlyExitException(4, input);
throw eee;
}
cnt4++;
@@ -745,8 +742,8 @@ public final void mRULE_INT() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -758,34 +755,41 @@ public final void mRULE_STRING() throws RecognitionException {
final int _type = RULE_STRING;
final int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:998:13:
- // ( ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ (
- // ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' |
+ // ( ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\'
+ // ) | ~ (
+ // ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' |
+ // 'u' |
// '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:998:15:
- // ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( (
- // '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"'
+ // ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
+ // | ~ ( (
+ // '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' |
+ // 'u' | '\"'
// | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
{
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:998:15:
- // ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~
- // ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' |
+ // ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
+ // | ~
+ // ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r'
+ // |
// 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
int alt7 = 2;
- final int LA7_0 = this.input.LA(1);
+ final int LA7_0 = input.LA(1);
if ((LA7_0 == '\"')) {
alt7 = 1;
} else if ((LA7_0 == '\'')) {
alt7 = 2;
} else {
- final NoViableAltException nvae = new NoViableAltException("", 7, 0, this.input);
+ final NoViableAltException nvae = new NoViableAltException("", 7, 0, input);
throw nvae;
}
switch (alt7) {
case 1:
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:998:16:
- // '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ (
+ // '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) |
+ // ~ (
// ( '\\\\' | '\"' ) ) )* '\"'
{
this.match('\"');
@@ -794,12 +798,12 @@ public final void mRULE_STRING() throws RecognitionException {
// ( '\\\\' | '\"' ) ) )*
loop5: do {
int alt5 = 3;
- final int LA5_0 = this.input.LA(1);
+ final int LA5_0 = input.LA(1);
if ((LA5_0 == '\\')) {
alt5 = 1;
- } else if (((LA5_0 >= '\u0000' && LA5_0 <= '!') || (LA5_0 >= '#' && LA5_0 <= '[')
- || (LA5_0 >= ']' && LA5_0 <= '\uFFFF'))) {
+ } else if ((((LA5_0 >= '\u0000') && (LA5_0 <= '!')) || ((LA5_0 >= '#') && (LA5_0 <= '['))
+ || ((LA5_0 >= ']') && (LA5_0 <= '\uFFFF')))) {
alt5 = 2;
}
@@ -809,17 +813,14 @@ public final void mRULE_STRING() throws RecognitionException {
// '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
{
this.match('\\');
- if (this.input.LA(1) == '\"' || this.input.LA(1) == '\'' || this.input.LA(1) == '\\'
- || this.input.LA(1) == 'b' || this.input.LA(1) == 'f' || this.input.LA(1) == 'n'
- || this.input.LA(1) == 'r'
- || (this.input.LA(1) >= 't' && this.input.LA(1) <= 'u')) {
- this.input.consume();
-
- } else {
- final MismatchedSetException mse = new MismatchedSetException(null, this.input);
+ 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'))) {
+ final MismatchedSetException mse = new MismatchedSetException(null, input);
this.recover(mse);
throw mse;
}
+ input.consume();
}
break;
@@ -827,16 +828,14 @@ public final void mRULE_STRING() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:998:66:
// ~ ( ( '\\\\' | '\"' ) )
{
- if ((this.input.LA(1) >= '\u0000' && this.input.LA(1) <= '!')
- || (this.input.LA(1) >= '#' && this.input.LA(1) <= '[')
- || (this.input.LA(1) >= ']' && this.input.LA(1) <= '\uFFFF')) {
- this.input.consume();
-
- } else {
- final MismatchedSetException mse = new MismatchedSetException(null, this.input);
+ if (((input.LA(1) < '\u0000') || (input.LA(1) > '!'))
+ && ((input.LA(1) < '#') || (input.LA(1) > '['))
+ && ((input.LA(1) < ']') || (input.LA(1) > '\uFFFF'))) {
+ final MismatchedSetException mse = new MismatchedSetException(null, input);
this.recover(mse);
throw mse;
}
+ input.consume();
}
break;
@@ -852,7 +851,8 @@ public final void mRULE_STRING() throws RecognitionException {
break;
case 2:
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:998:86:
- // '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~
+ // '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
+ // | ~
// ( ( '\\\\' | '\\'' ) ) )* '\\''
{
this.match('\'');
@@ -861,12 +861,12 @@ public final void mRULE_STRING() throws RecognitionException {
// ( '\\\\' | '\\'' ) ) )*
loop6: do {
int alt6 = 3;
- final int LA6_0 = this.input.LA(1);
+ final int LA6_0 = input.LA(1);
if ((LA6_0 == '\\')) {
alt6 = 1;
- } else if (((LA6_0 >= '\u0000' && LA6_0 <= '&') || (LA6_0 >= '(' && LA6_0 <= '[')
- || (LA6_0 >= ']' && LA6_0 <= '\uFFFF'))) {
+ } else if ((((LA6_0 >= '\u0000') && (LA6_0 <= '&')) || ((LA6_0 >= '(') && (LA6_0 <= '['))
+ || ((LA6_0 >= ']') && (LA6_0 <= '\uFFFF')))) {
alt6 = 2;
}
@@ -876,17 +876,14 @@ public final void mRULE_STRING() throws RecognitionException {
// '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
{
this.match('\\');
- if (this.input.LA(1) == '\"' || this.input.LA(1) == '\'' || this.input.LA(1) == '\\'
- || this.input.LA(1) == 'b' || this.input.LA(1) == 'f' || this.input.LA(1) == 'n'
- || this.input.LA(1) == 'r'
- || (this.input.LA(1) >= 't' && this.input.LA(1) <= 'u')) {
- this.input.consume();
-
- } else {
- final MismatchedSetException mse = new MismatchedSetException(null, this.input);
+ 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'))) {
+ final MismatchedSetException mse = new MismatchedSetException(null, input);
this.recover(mse);
throw mse;
}
+ input.consume();
}
break;
@@ -894,16 +891,14 @@ public final void mRULE_STRING() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:998:137:
// ~ ( ( '\\\\' | '\\'' ) )
{
- if ((this.input.LA(1) >= '\u0000' && this.input.LA(1) <= '&')
- || (this.input.LA(1) >= '(' && this.input.LA(1) <= '[')
- || (this.input.LA(1) >= ']' && this.input.LA(1) <= '\uFFFF')) {
- this.input.consume();
-
- } else {
- final MismatchedSetException mse = new MismatchedSetException(null, this.input);
+ if (((input.LA(1) < '\u0000') || (input.LA(1) > '&'))
+ && ((input.LA(1) < '(') || (input.LA(1) > '['))
+ && ((input.LA(1) < ']') || (input.LA(1) > '\uFFFF'))) {
+ final MismatchedSetException mse = new MismatchedSetException(null, input);
this.recover(mse);
throw mse;
}
+ input.consume();
}
break;
@@ -922,8 +917,8 @@ public final void mRULE_STRING() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -945,18 +940,19 @@ public final void mRULE_ML_COMMENT() throws RecognitionException {
// ( options {greedy=false; } : . )*
loop8: do {
int alt8 = 2;
- final int LA8_0 = this.input.LA(1);
+ final int LA8_0 = input.LA(1);
if ((LA8_0 == '*')) {
- final int LA8_1 = this.input.LA(2);
+ final int LA8_1 = input.LA(2);
if ((LA8_1 == '/')) {
alt8 = 2;
- } else if (((LA8_1 >= '\u0000' && LA8_1 <= '.') || (LA8_1 >= '0' && LA8_1 <= '\uFFFF'))) {
+ } else if ((((LA8_1 >= '\u0000') && (LA8_1 <= '.'))
+ || ((LA8_1 >= '0') && (LA8_1 <= '\uFFFF')))) {
alt8 = 1;
}
- } else if (((LA8_0 >= '\u0000' && LA8_0 <= ')') || (LA8_0 >= '+' && LA8_0 <= '\uFFFF'))) {
+ } else if ((((LA8_0 >= '\u0000') && (LA8_0 <= ')')) || ((LA8_0 >= '+') && (LA8_0 <= '\uFFFF')))) {
alt8 = 1;
}
@@ -979,8 +975,8 @@ public final void mRULE_ML_COMMENT() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -1002,10 +998,10 @@ public final void mRULE_SL_COMMENT() throws RecognitionException {
// (~ ( ( '\\n' | '\\r' ) ) )*
loop9: do {
int alt9 = 2;
- final int LA9_0 = this.input.LA(1);
+ final int LA9_0 = input.LA(1);
- if (((LA9_0 >= '\u0000' && LA9_0 <= '\t') || (LA9_0 >= '\u000B' && LA9_0 <= '\f')
- || (LA9_0 >= '\u000E' && LA9_0 <= '\uFFFF'))) {
+ if ((((LA9_0 >= '\u0000') && (LA9_0 <= '\t')) || ((LA9_0 >= '\u000B') && (LA9_0 <= '\f'))
+ || ((LA9_0 >= '\u000E') && (LA9_0 <= '\uFFFF')))) {
alt9 = 1;
}
@@ -1014,16 +1010,14 @@ public final void mRULE_SL_COMMENT() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1002:24:
// ~ ( ( '\\n' | '\\r' ) )
{
- if ((this.input.LA(1) >= '\u0000' && this.input.LA(1) <= '\t')
- || (this.input.LA(1) >= '\u000B' && this.input.LA(1) <= '\f')
- || (this.input.LA(1) >= '\u000E' && this.input.LA(1) <= '\uFFFF')) {
- this.input.consume();
-
- } else {
- final MismatchedSetException mse = new MismatchedSetException(null, this.input);
+ 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'))) {
+ final MismatchedSetException mse = new MismatchedSetException(null, input);
this.recover(mse);
throw mse;
}
+ input.consume();
}
break;
@@ -1036,9 +1030,9 @@ public final void mRULE_SL_COMMENT() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1002:40:
// ( ( '\\r' )? '\\n' )?
int alt11 = 2;
- final int LA11_0 = this.input.LA(1);
+ final int LA11_0 = input.LA(1);
- if ((LA11_0 == '\n' || LA11_0 == '\r')) {
+ if (((LA11_0 == '\n') || (LA11_0 == '\r'))) {
alt11 = 1;
}
switch (alt11) {
@@ -1049,7 +1043,7 @@ public final void mRULE_SL_COMMENT() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1002:41:
// ( '\\r' )?
int alt10 = 2;
- final int LA10_0 = this.input.LA(1);
+ final int LA10_0 = input.LA(1);
if ((LA10_0 == '\r')) {
alt10 = 1;
@@ -1075,8 +1069,8 @@ public final void mRULE_SL_COMMENT() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -1097,9 +1091,9 @@ public final void mRULE_WS() throws RecognitionException {
int cnt12 = 0;
loop12: do {
int alt12 = 2;
- final int LA12_0 = this.input.LA(1);
+ final int LA12_0 = input.LA(1);
- if (((LA12_0 >= '\t' && LA12_0 <= '\n') || LA12_0 == '\r' || LA12_0 == ' ')) {
+ if ((((LA12_0 >= '\t') && (LA12_0 <= '\n')) || (LA12_0 == '\r') || (LA12_0 == ' '))) {
alt12 = 1;
}
@@ -1107,15 +1101,13 @@ public final void mRULE_WS() throws RecognitionException {
case 1:
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:
{
- if ((this.input.LA(1) >= '\t' && this.input.LA(1) <= '\n') || this.input.LA(1) == '\r'
- || this.input.LA(1) == ' ') {
- this.input.consume();
-
- } else {
- final MismatchedSetException mse = new MismatchedSetException(null, this.input);
+ if (((input.LA(1) < '\t') || (input.LA(1) > '\n')) && (input.LA(1) != '\r')
+ && (input.LA(1) != ' ')) {
+ final MismatchedSetException mse = new MismatchedSetException(null, input);
this.recover(mse);
throw mse;
}
+ input.consume();
}
break;
@@ -1124,7 +1116,7 @@ public final void mRULE_WS() throws RecognitionException {
if (cnt12 >= 1) {
break loop12;
}
- final EarlyExitException eee = new EarlyExitException(12, this.input);
+ final EarlyExitException eee = new EarlyExitException(12, input);
throw eee;
}
cnt12++;
@@ -1132,8 +1124,8 @@ public final void mRULE_WS() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -1153,8 +1145,8 @@ public final void mRULE_ANY_OTHER() throws RecognitionException {
}
- this.state.type = _type;
- this.state.channel = _channel;
+ state.type = _type;
+ state.channel = _channel;
} finally {
}
}
@@ -1162,19 +1154,13 @@ public final void mRULE_ANY_OTHER() throws RecognitionException {
@Override
public void mTokens() throws RecognitionException {
- // ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:8:
- // ( T__12 | 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 | T__35 | RULE_DOUBLE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT |
- // RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER )
- int alt13 = 32;
- alt13 = this.dfa13.predict(this.input);
+ final int alt13 = dfa13.predict(input);
switch (alt13) {
case 1:
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:10:
// T__12
{
- this.mT__12();
+ mT__12();
}
break;
@@ -1182,7 +1168,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:16:
// T__13
{
- this.mT__13();
+ mT__13();
}
break;
@@ -1190,7 +1176,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:22:
// T__14
{
- this.mT__14();
+ mT__14();
}
break;
@@ -1198,7 +1184,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:28:
// T__15
{
- this.mT__15();
+ mT__15();
}
break;
@@ -1206,7 +1192,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:34:
// T__16
{
- this.mT__16();
+ mT__16();
}
break;
@@ -1214,7 +1200,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:40:
// T__17
{
- this.mT__17();
+ mT__17();
}
break;
@@ -1222,7 +1208,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:46:
// T__18
{
- this.mT__18();
+ mT__18();
}
break;
@@ -1230,7 +1216,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:52:
// T__19
{
- this.mT__19();
+ mT__19();
}
break;
@@ -1238,7 +1224,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:58:
// T__20
{
- this.mT__20();
+ mT__20();
}
break;
@@ -1246,7 +1232,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:64:
// T__21
{
- this.mT__21();
+ mT__21();
}
break;
@@ -1254,7 +1240,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:70:
// T__22
{
- this.mT__22();
+ mT__22();
}
break;
@@ -1262,7 +1248,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:76:
// T__23
{
- this.mT__23();
+ mT__23();
}
break;
@@ -1270,7 +1256,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:82:
// T__24
{
- this.mT__24();
+ mT__24();
}
break;
@@ -1278,7 +1264,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:88:
// T__25
{
- this.mT__25();
+ mT__25();
}
break;
@@ -1286,7 +1272,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:94:
// T__26
{
- this.mT__26();
+ mT__26();
}
break;
@@ -1294,7 +1280,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:100:
// T__27
{
- this.mT__27();
+ mT__27();
}
break;
@@ -1302,7 +1288,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:106:
// T__28
{
- this.mT__28();
+ mT__28();
}
break;
@@ -1310,7 +1296,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:112:
// T__29
{
- this.mT__29();
+ mT__29();
}
break;
@@ -1318,7 +1304,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:118:
// T__30
{
- this.mT__30();
+ mT__30();
}
break;
@@ -1326,7 +1312,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:124:
// T__31
{
- this.mT__31();
+ mT__31();
}
break;
@@ -1334,7 +1320,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:130:
// T__32
{
- this.mT__32();
+ mT__32();
}
break;
@@ -1342,7 +1328,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:136:
// T__33
{
- this.mT__33();
+ mT__33();
}
break;
@@ -1350,7 +1336,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:142:
// T__34
{
- this.mT__34();
+ mT__34();
}
break;
@@ -1358,7 +1344,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:148:
// T__35
{
- this.mT__35();
+ mT__35();
}
break;
@@ -1366,7 +1352,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:154:
// RULE_DOUBLE
{
- this.mRULE_DOUBLE();
+ mRULE_DOUBLE();
}
break;
@@ -1374,7 +1360,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:166:
// RULE_ID
{
- this.mRULE_ID();
+ mRULE_ID();
}
break;
@@ -1382,7 +1368,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:174:
// RULE_INT
{
- this.mRULE_INT();
+ mRULE_INT();
}
break;
@@ -1390,7 +1376,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:183:
// RULE_STRING
{
- this.mRULE_STRING();
+ mRULE_STRING();
}
break;
@@ -1398,7 +1384,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:195:
// RULE_ML_COMMENT
{
- this.mRULE_ML_COMMENT();
+ mRULE_ML_COMMENT();
}
break;
@@ -1406,7 +1392,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:211:
// RULE_SL_COMMENT
{
- this.mRULE_SL_COMMENT();
+ mRULE_SL_COMMENT();
}
break;
@@ -1414,7 +1400,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:227:
// RULE_WS
{
- this.mRULE_WS();
+ mRULE_WS();
}
break;
@@ -1422,7 +1408,7 @@ public void mTokens() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:1:235:
// RULE_ANY_OTHER
{
- this.mRULE_ANY_OTHER();
+ mRULE_ANY_OTHER();
}
break;
@@ -1432,35 +1418,42 @@ public void mTokens() throws RecognitionException {
}
protected DFA13 dfa13 = new DFA13(this);
- static final String DFA13_eotS = "\1\uffff\1\40\1\uffff\2\40\1\uffff\1\46\3\uffff\3\40\1\uffff\2\40"
- + "\2\uffff\1\40\1\65\3\uffff\1\36\1\72\1\36\1\uffff\2\36\2\uffff\1"
- + "\40\2\uffff\2\40\6\uffff\3\40\1\uffff\2\40\2\uffff\1\40\10\uffff"
- + "\1\72\2\uffff\27\40\1\136\2\40\1\141\1\142\1\143\1\145\2\40\1\uffff"
- + "\2\40\3\uffff\1\152\1\uffff\4\40\1\uffff\3\40\1\162\1\40\1\164\1"
- + "\40\1\uffff\1\166\1\uffff\1\40\1\uffff\1\170\1\uffff";
+ static final String DFA13_eotS = """
+ \1\uffff\1\40\1\uffff\2\40\1\uffff\1\46\3\uffff\3\40\1\uffff\2\40\
+ \2\uffff\1\40\1\65\3\uffff\1\36\1\72\1\36\1\uffff\2\36\2\uffff\1\
+ \40\2\uffff\2\40\6\uffff\3\40\1\uffff\2\40\2\uffff\1\40\10\uffff\
+ \1\72\2\uffff\27\40\1\136\2\40\1\141\1\142\1\143\1\145\2\40\1\uffff\
+ \2\40\3\uffff\1\152\1\uffff\4\40\1\uffff\3\40\1\162\1\40\1\164\1\
+ \40\1\uffff\1\166\1\uffff\1\40\1\uffff\1\170\1\uffff""";
static final String DFA13_eofS = "\171\uffff";
- static final String DFA13_minS = "\1\0\1\155\1\uffff\1\170\1\145\1\uffff\1\73\3\uffff\2\141\1\157"
- + "\1\uffff\1\145\1\164\2\uffff\1\141\1\52\3\uffff\1\60\1\56\1\101"
- + "\1\uffff\2\0\2\uffff\1\160\2\uffff\2\164\6\uffff\2\162\1\156\1\uffff"
- + "\1\151\1\145\2\uffff\1\164\10\uffff\1\56\2\uffff\1\157\1\145\1\162"
- + "\2\141\1\163\1\147\1\160\1\151\2\162\1\151\2\155\2\164\1\167\1\157"
- + "\1\164\1\156\1\143\2\145\1\60\1\150\1\151\4\60\2\164\1\uffff\1\145"
- + "\1\163\3\uffff\1\60\1\uffff\2\145\1\144\1\145\1\uffff\2\162\1\123"
- + "\1\60\1\163\1\60\1\165\1\uffff\1\60\1\uffff\1\155\1\uffff\1\60\1" + "\uffff";
- static final String DFA13_maxS = "\1\uffff\1\155\1\uffff\1\170\1\145\1\uffff\1\73\3\uffff\2\141\1"
- + "\157\1\uffff\1\145\1\164\2\uffff\1\141\1\57\3\uffff\2\71\1\172\1"
- + "\uffff\2\uffff\2\uffff\1\160\2\uffff\2\164\6\uffff\2\162\1\156\1"
- + "\uffff\1\151\1\145\2\uffff\1\164\10\uffff\1\71\2\uffff\1\157\1\145"
- + "\1\162\2\141\1\163\1\147\1\160\1\151\2\162\1\151\2\155\2\164\1\167"
- + "\1\157\1\164\1\156\1\143\2\145\1\172\1\150\1\151\4\172\2\164\1\uffff"
- + "\1\145\1\163\3\uffff\1\172\1\uffff\2\145\1\144\1\145\1\uffff\2\162"
- + "\1\123\1\172\1\163\1\172\1\165\1\uffff\1\172\1\uffff\1\155\1\uffff" + "\1\172\1\uffff";
- static final String DFA13_acceptS = "\2\uffff\1\2\2\uffff\1\5\1\uffff\1\10\1\11\1\12\3\uffff\1\17\2\uffff"
- + "\1\22\1\23\2\uffff\1\26\1\27\1\30\3\uffff\1\32\2\uffff\1\37\1\40"
- + "\1\uffff\1\32\1\2\2\uffff\1\5\1\14\1\6\1\10\1\11\1\12\3\uffff\1"
- + "\17\2\uffff\1\22\1\23\1\uffff\1\35\1\36\1\25\1\26\1\27\1\30\1\31"
- + "\1\33\1\uffff\1\34\1\37\40\uffff\1\16\2\uffff\1\24\1\1\1\3\1\uffff"
- + "\1\7\4\uffff\1\4\7\uffff\1\21\1\uffff\1\15\1\uffff\1\13\1\uffff" + "\1\20";
+ static final String DFA13_minS = """
+ \1\0\1\155\1\uffff\1\170\1\145\1\uffff\1\73\3\uffff\2\141\1\157\
+ \1\uffff\1\145\1\164\2\uffff\1\141\1\52\3\uffff\1\60\1\56\1\101\
+ \1\uffff\2\0\2\uffff\1\160\2\uffff\2\164\6\uffff\2\162\1\156\1\uffff\
+ \1\151\1\145\2\uffff\1\164\10\uffff\1\56\2\uffff\1\157\1\145\1\162\
+ \2\141\1\163\1\147\1\160\1\151\2\162\1\151\2\155\2\164\1\167\1\157\
+ \1\164\1\156\1\143\2\145\1\60\1\150\1\151\4\60\2\164\1\uffff\1\145\
+ \1\163\3\uffff\1\60\1\uffff\2\145\1\144\1\145\1\uffff\2\162\1\123\
+ \1\60\1\163\1\60\1\165\1\uffff\1\60\1\uffff\1\155\1\uffff\1\60\1\
+ \uffff""";
+ static final String DFA13_maxS = """
+ \1\uffff\1\155\1\uffff\1\170\1\145\1\uffff\1\73\3\uffff\2\141\1\
+ \157\1\uffff\1\145\1\164\2\uffff\1\141\1\57\3\uffff\2\71\1\172\1\
+ \uffff\2\uffff\2\uffff\1\160\2\uffff\2\164\6\uffff\2\162\1\156\1\
+ \uffff\1\151\1\145\2\uffff\1\164\10\uffff\1\71\2\uffff\1\157\1\145\
+ \1\162\2\141\1\163\1\147\1\160\1\151\2\162\1\151\2\155\2\164\1\167\
+ \1\157\1\164\1\156\1\143\2\145\1\172\1\150\1\151\4\172\2\164\1\uffff\
+ \1\145\1\163\3\uffff\1\172\1\uffff\2\145\1\144\1\145\1\uffff\2\162\
+ \1\123\1\172\1\163\1\172\1\165\1\uffff\1\172\1\uffff\1\155\1\uffff\
+ \1\172\1\uffff""";
+ static final String DFA13_acceptS = """
+ \2\uffff\1\2\2\uffff\1\5\1\uffff\1\10\1\11\1\12\3\uffff\1\17\2\uffff\
+ \1\22\1\23\2\uffff\1\26\1\27\1\30\3\uffff\1\32\2\uffff\1\37\1\40\
+ \1\uffff\1\32\1\2\2\uffff\1\5\1\14\1\6\1\10\1\11\1\12\3\uffff\1\
+ \17\2\uffff\1\22\1\23\1\uffff\1\35\1\36\1\25\1\26\1\27\1\30\1\31\
+ \1\33\1\uffff\1\34\1\37\40\uffff\1\16\2\uffff\1\24\1\1\1\3\1\uffff\
+ \1\7\4\uffff\1\4\7\uffff\1\21\1\uffff\1\15\1\uffff\1\13\1\uffff\
+ \1\20""";
static final String DFA13_specialS = "\1\2\32\uffff\1\0\1\1\134\uffff}>";
static final String[] DFA13_transitionS = {
"\11\36\2\35\2\36\1\35\22\36\1\35\1\36\1\33\4\36\1\34\1\7\1\11"
@@ -1504,14 +1497,14 @@ class DFA13 extends DFA {
public DFA13(final BaseRecognizer recognizer) {
this.recognizer = recognizer;
- 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;
+ decisionNumber = 13;
+ eot = DFA13_eot;
+ eof = DFA13_eof;
+ min = DFA13_min;
+ max = DFA13_max;
+ accept = DFA13_accept;
+ special = DFA13_special;
+ transition = DFA13_transition;
}
@Override
@@ -1528,7 +1521,7 @@ public int specialStateTransition(int s, final IntStream _input) throws NoViable
final int LA13_27 = input.LA(1);
s = -1;
- if (((LA13_27 >= '\u0000' && LA13_27 <= '\uFFFF'))) {
+ if ((((LA13_27 >= '\u0000') && (LA13_27 <= '\uFFFF')))) {
s = 60;
} else {
s = 30;
@@ -1542,7 +1535,7 @@ public int specialStateTransition(int s, final IntStream _input) throws NoViable
final int LA13_28 = input.LA(1);
s = -1;
- if (((LA13_28 >= '\u0000' && LA13_28 <= '\uFFFF'))) {
+ if ((((LA13_28 >= '\u0000') && (LA13_28 <= '\uFFFF')))) {
s = 60;
} else {
s = 30;
@@ -1556,132 +1549,114 @@ public int specialStateTransition(int s, final IntStream _input) throws NoViable
final int LA13_0 = input.LA(1);
s = -1;
- if ((LA13_0 == 'i')) {
+ switch (LA13_0) {
+ case 'i':
s = 1;
- }
-
- else if ((LA13_0 == ';')) {
+ break;
+ case ';':
s = 2;
- }
-
- else if ((LA13_0 == 'e')) {
+ break;
+ case 'e':
s = 3;
- }
-
- else if ((LA13_0 == 'M')) {
+ break;
+ case 'M':
s = 4;
- }
-
- else if ((LA13_0 == '{')) {
+ break;
+ case '{':
s = 5;
- }
-
- else if ((LA13_0 == '}')) {
+ break;
+ case '}':
s = 6;
- }
-
- else if ((LA13_0 == '(')) {
+ break;
+ case '(':
s = 7;
- }
-
- else if ((LA13_0 == ',')) {
+ break;
+ case ',':
s = 8;
- }
-
- else if ((LA13_0 == ')')) {
+ break;
+ case ')':
s = 9;
- }
-
- else if ((LA13_0 == 'p')) {
+ break;
+ case 'p':
s = 10;
- }
-
- else if ((LA13_0 == 'P')) {
+ break;
+ case 'P':
s = 11;
- }
-
- else if ((LA13_0 == 'C')) {
+ break;
+ case 'C':
s = 12;
- }
-
- else if ((LA13_0 == '=')) {
+ break;
+ case '=':
s = 13;
- }
-
- else if ((LA13_0 == 'W')) {
+ break;
+ case 'W':
s = 14;
- }
-
- else if ((LA13_0 == 'S')) {
+ break;
+ case 'S':
s = 15;
- }
-
- else if ((LA13_0 == '[')) {
+ break;
+ case '[':
s = 16;
- }
-
- else if ((LA13_0 == ']')) {
+ break;
+ case ']':
s = 17;
- }
-
- else if ((LA13_0 == 'R')) {
+ break;
+ case 'R':
s = 18;
- }
-
- else if ((LA13_0 == '/')) {
+ break;
+ case '/':
s = 19;
- }
-
- else if ((LA13_0 == '<')) {
+ break;
+ case '<':
s = 20;
- }
-
- else if ((LA13_0 == '>')) {
+ break;
+ case '>':
s = 21;
- }
-
- else if ((LA13_0 == '.')) {
+ break;
+ case '.':
s = 22;
- }
-
- else if ((LA13_0 == '-')) {
+ break;
+ case '-':
s = 23;
- }
-
- else if (((LA13_0 >= '0' && LA13_0 <= '9'))) {
- s = 24;
- }
+ break;
+ default:
+ if ((((LA13_0 >= '0') && (LA13_0 <= '9')))) {
+ s = 24;
+ }
- else if ((LA13_0 == '^')) {
- s = 25;
- }
+ else if ((LA13_0 == '^')) {
+ s = 25;
+ }
- else if (((LA13_0 >= 'A' && LA13_0 <= 'B') || (LA13_0 >= 'D' && LA13_0 <= 'L')
- || (LA13_0 >= 'N' && LA13_0 <= 'O') || LA13_0 == 'Q' || (LA13_0 >= 'T' && LA13_0 <= 'V')
- || (LA13_0 >= 'X' && LA13_0 <= 'Z') || LA13_0 == '_' || (LA13_0 >= 'a' && LA13_0 <= 'd')
- || (LA13_0 >= 'f' && LA13_0 <= 'h') || (LA13_0 >= 'j' && LA13_0 <= 'o')
- || (LA13_0 >= 'q' && LA13_0 <= 'z'))) {
- s = 26;
- }
+ else if ((((LA13_0 >= 'A') && (LA13_0 <= 'B')) || ((LA13_0 >= 'D') && (LA13_0 <= 'L'))
+ || ((LA13_0 >= 'N') && (LA13_0 <= 'O')) || (LA13_0 == 'Q')
+ || ((LA13_0 >= 'T') && (LA13_0 <= 'V')) || ((LA13_0 >= 'X') && (LA13_0 <= 'Z'))
+ || (LA13_0 == '_') || ((LA13_0 >= 'a') && (LA13_0 <= 'd'))
+ || ((LA13_0 >= 'f') && (LA13_0 <= 'h')) || ((LA13_0 >= 'j') && (LA13_0 <= 'o'))
+ || ((LA13_0 >= 'q') && (LA13_0 <= 'z')))) {
+ s = 26;
+ }
- else if ((LA13_0 == '\"')) {
- s = 27;
- }
+ else if ((LA13_0 == '\"')) {
+ s = 27;
+ }
- else if ((LA13_0 == '\'')) {
- s = 28;
- }
+ else if ((LA13_0 == '\'')) {
+ s = 28;
+ }
- else if (((LA13_0 >= '\t' && LA13_0 <= '\n') || LA13_0 == '\r' || LA13_0 == ' ')) {
- s = 29;
- }
+ else if ((((LA13_0 >= '\t') && (LA13_0 <= '\n')) || (LA13_0 == '\r') || (LA13_0 == ' '))) {
+ s = 29;
+ }
- else if (((LA13_0 >= '\u0000' && LA13_0 <= '\b') || (LA13_0 >= '\u000B' && LA13_0 <= '\f')
- || (LA13_0 >= '\u000E' && LA13_0 <= '\u001F') || LA13_0 == '!'
- || (LA13_0 >= '#' && LA13_0 <= '&') || (LA13_0 >= '*' && LA13_0 <= '+') || LA13_0 == ':'
- || (LA13_0 >= '?' && LA13_0 <= '@') || LA13_0 == '\\' || LA13_0 == '`' || LA13_0 == '|'
- || (LA13_0 >= '~' && LA13_0 <= '\uFFFF'))) {
- s = 30;
+ else if ((((LA13_0 >= '\u0000') && (LA13_0 <= '\b')) || ((LA13_0 >= '\u000B') && (LA13_0 <= '\f'))
+ || ((LA13_0 >= '\u000E') && (LA13_0 <= '\u001F')) || (LA13_0 == '!')
+ || ((LA13_0 >= '#') && (LA13_0 <= '&')) || ((LA13_0 >= '*') && (LA13_0 <= '+'))
+ || (LA13_0 == ':') || ((LA13_0 >= '?') && (LA13_0 <= '@')) || (LA13_0 == '\\')
+ || (LA13_0 == '`') || (LA13_0 == '|') || ((LA13_0 >= '~') && (LA13_0 <= '\uFFFF')))) {
+ s = 30;
+ }
+ break;
}
if (s >= 0) {
@@ -1689,8 +1664,8 @@ else if (((LA13_0 >= '\u0000' && LA13_0 <= '\b') || (LA13_0 >= '\u000B' && LA13_
}
break;
}
- final NoViableAltException nvae = new NoViableAltException(this.getDescription(), 13, _s, input);
- this.error(nvae);
+ final NoViableAltException nvae = new NoViableAltException(getDescription(), 13, _s, input);
+ error(nvae);
throw nvae;
}
}
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSLParser.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSLParser.java
index cefa96e..7584ae6 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSLParser.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSLParser.java
@@ -14,11 +14,11 @@
@SuppressWarnings("all")
public class InternalMetricDSLParser extends AbstractInternalAntlrParser {
- public static final String[] tokenNames = new String[] { "", "", "", "", "RULE_STRING",
- "RULE_DOUBLE", "RULE_ID", "RULE_INT", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER",
- "'import'", "';'", "'extern'", "'Metrics'", "'{'", "'}'", "'Metric'", "'('", "','", "')'", "'parameters'",
- "'};'", "'Parameter'", "'Const'", "'='", "'WeigthedSum'", "'Stepwise'", "'['", "']'", "'Ratio'", "'/'",
- "'<'", "'>'", "'.'" };
+ public static final String[] tokenNames = { "", "", "", "", "RULE_STRING", "RULE_DOUBLE",
+ "RULE_ID", "RULE_INT", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'import'", "';'",
+ "'extern'", "'Metrics'", "'{'", "'}'", "'Metric'", "'('", "','", "')'", "'parameters'", "'};'",
+ "'Parameter'", "'Const'", "'='", "'WeigthedSum'", "'Stepwise'", "'['", "']'", "'Ratio'", "'/'", "'<'",
+ "'>'", "'.'" };
public static final int RULE_ID = 6;
public static final int T__29 = 29;
public static final int T__28 = 28;
@@ -80,7 +80,7 @@ public String getGrammarFileName() {
public InternalMetricDSLParser(final TokenStream input, final MetricDSLGrammarAccess grammarAccess) {
this(input);
this.grammarAccess = grammarAccess;
- this.registerRules(grammarAccess.getGrammar());
+ registerRules(grammarAccess.getGrammar());
}
@Override
@@ -90,12 +90,13 @@ protected String getFirstRuleName() {
@Override
protected MetricDSLGrammarAccess getGrammarAccess() {
- return this.grammarAccess;
+ return grammarAccess;
}
// $ANTLR start "entryRuleMetricModel"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:67:1:
- // entryRuleMetricModel returns [EObject current=null] : iv_ruleMetricModel= ruleMetricModel EOF
+ // entryRuleMetricModel returns [EObject current=null] : iv_ruleMetricModel=
+ // ruleMetricModel EOF
// ;
public final EObject entryRuleMetricModel() throws RecognitionException {
EObject current = null;
@@ -108,22 +109,22 @@ public final EObject entryRuleMetricModel() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:69:2:
// iv_ruleMetricModel= ruleMetricModel EOF
{
- this.newCompositeNode(this.grammarAccess.getMetricModelRule());
- this.pushFollow(FOLLOW_ruleMetricModel_in_entryRuleMetricModel75);
- iv_ruleMetricModel = this.ruleMetricModel();
+ newCompositeNode(grammarAccess.getMetricModelRule());
+ pushFollow(FOLLOW_ruleMetricModel_in_entryRuleMetricModel75);
+ iv_ruleMetricModel = ruleMetricModel();
- this.state._fsp--;
+ state._fsp--;
current = iv_ruleMetricModel;
- this.match(this.input, EOF, FOLLOW_EOF_in_entryRuleMetricModel85);
+ match(input, EOF, FOLLOW_EOF_in_entryRuleMetricModel85);
}
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -132,8 +133,10 @@ public final EObject entryRuleMetricModel() throws RecognitionException {
// $ANTLR start "ruleMetricModel"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:76:1:
- // ruleMetricModel returns [EObject current=null] : ( (otherlv_0= 'import' ( (lv_importURI_1_0=
- // RULE_STRING ) ) otherlv_2= ';' )* (otherlv_3= 'extern' ( (lv_metrics_4_0= ruleExternalMetric
+ // ruleMetricModel returns [EObject current=null] : ( (otherlv_0= 'import' (
+ // (lv_importURI_1_0=
+ // RULE_STRING ) ) otherlv_2= ';' )* (otherlv_3= 'extern' ( (lv_metrics_4_0=
+ // ruleExternalMetric
// ) ) otherlv_5= ';' )* otherlv_6= 'Metrics' otherlv_7= '{' ( (lv_metrics_8_0=
// ruleInternalMetric ) )+ otherlv_9= '}' ) ;
public final EObject ruleMetricModel() throws RecognitionException {
@@ -151,36 +154,45 @@ public final EObject ruleMetricModel() throws RecognitionException {
EObject lv_metrics_8_0 = null;
- this.enterRule();
+ enterRule();
try {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:79:28:
- // ( ( (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) otherlv_2= ';' )*
- // (otherlv_3= 'extern' ( (lv_metrics_4_0= ruleExternalMetric ) ) otherlv_5= ';' )*
- // otherlv_6= 'Metrics' otherlv_7= '{' ( (lv_metrics_8_0= ruleInternalMetric ) )+
+ // ( ( (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) otherlv_2= ';'
+ // )*
+ // (otherlv_3= 'extern' ( (lv_metrics_4_0= ruleExternalMetric ) ) otherlv_5= ';'
+ // )*
+ // otherlv_6= 'Metrics' otherlv_7= '{' ( (lv_metrics_8_0= ruleInternalMetric )
+ // )+
// otherlv_9= '}' ) )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:80:1:
// ( (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) otherlv_2= ';' )*
- // (otherlv_3= 'extern' ( (lv_metrics_4_0= ruleExternalMetric ) ) otherlv_5= ';' )*
- // otherlv_6= 'Metrics' otherlv_7= '{' ( (lv_metrics_8_0= ruleInternalMetric ) )+
+ // (otherlv_3= 'extern' ( (lv_metrics_4_0= ruleExternalMetric ) ) otherlv_5= ';'
+ // )*
+ // otherlv_6= 'Metrics' otherlv_7= '{' ( (lv_metrics_8_0= ruleInternalMetric )
+ // )+
// otherlv_9= '}' )
{
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:80:1:
// ( (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) otherlv_2= ';' )*
- // (otherlv_3= 'extern' ( (lv_metrics_4_0= ruleExternalMetric ) ) otherlv_5= ';' )*
- // otherlv_6= 'Metrics' otherlv_7= '{' ( (lv_metrics_8_0= ruleInternalMetric ) )+
+ // (otherlv_3= 'extern' ( (lv_metrics_4_0= ruleExternalMetric ) ) otherlv_5= ';'
+ // )*
+ // otherlv_6= 'Metrics' otherlv_7= '{' ( (lv_metrics_8_0= ruleInternalMetric )
+ // )+
// otherlv_9= '}' )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:80:2:
// (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) otherlv_2= ';' )*
- // (otherlv_3= 'extern' ( (lv_metrics_4_0= ruleExternalMetric ) ) otherlv_5= ';' )*
- // otherlv_6= 'Metrics' otherlv_7= '{' ( (lv_metrics_8_0= ruleInternalMetric ) )+
+ // (otherlv_3= 'extern' ( (lv_metrics_4_0= ruleExternalMetric ) ) otherlv_5= ';'
+ // )*
+ // otherlv_6= 'Metrics' otherlv_7= '{' ( (lv_metrics_8_0= ruleInternalMetric )
+ // )+
// otherlv_9= '}'
{
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:80:2:
// (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) otherlv_2= ';' )*
loop1: do {
int alt1 = 2;
- final int LA1_0 = this.input.LA(1);
+ final int LA1_0 = input.LA(1);
if ((LA1_0 == 12)) {
alt1 = 1;
@@ -191,10 +203,9 @@ public final EObject ruleMetricModel() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:80:4:
// otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) otherlv_2= ';'
{
- otherlv_0 = (Token) this.match(this.input, 12, FOLLOW_12_in_ruleMetricModel123);
+ otherlv_0 = (Token) match(input, 12, FOLLOW_12_in_ruleMetricModel123);
- this.newLeafNode(otherlv_0,
- this.grammarAccess.getMetricModelAccess().getImportKeyword_0_0());
+ newLeafNode(otherlv_0, grammarAccess.getMetricModelAccess().getImportKeyword_0_0());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:84:1:
// ( (lv_importURI_1_0= RULE_STRING ) )
@@ -206,14 +217,14 @@ public final EObject ruleMetricModel() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:86:3:
// lv_importURI_1_0= RULE_STRING
{
- lv_importURI_1_0 = (Token) this.match(this.input, RULE_STRING,
+ lv_importURI_1_0 = (Token) match(input, RULE_STRING,
FOLLOW_RULE_STRING_in_ruleMetricModel140);
- this.newLeafNode(lv_importURI_1_0, this.grammarAccess.getMetricModelAccess()
+ newLeafNode(lv_importURI_1_0, grammarAccess.getMetricModelAccess()
.getImportURISTRINGTerminalRuleCall_0_1_0());
if (current == null) {
- current = this.createModelElement(this.grammarAccess.getMetricModelRule());
+ current = this.createModelElement(grammarAccess.getMetricModelRule());
}
this.addWithLastConsumed(current, "importURI", lv_importURI_1_0, "STRING");
@@ -221,10 +232,9 @@ public final EObject ruleMetricModel() throws RecognitionException {
}
- otherlv_2 = (Token) this.match(this.input, 13, FOLLOW_13_in_ruleMetricModel157);
+ otherlv_2 = (Token) match(input, 13, FOLLOW_13_in_ruleMetricModel157);
- this.newLeafNode(otherlv_2,
- this.grammarAccess.getMetricModelAccess().getSemicolonKeyword_0_2());
+ newLeafNode(otherlv_2, grammarAccess.getMetricModelAccess().getSemicolonKeyword_0_2());
}
break;
@@ -239,7 +249,7 @@ public final EObject ruleMetricModel() throws RecognitionException {
// )*
loop2: do {
int alt2 = 2;
- final int LA2_0 = this.input.LA(1);
+ final int LA2_0 = input.LA(1);
if ((LA2_0 == 14)) {
alt2 = 1;
@@ -251,10 +261,9 @@ public final EObject ruleMetricModel() throws RecognitionException {
// otherlv_3= 'extern' ( (lv_metrics_4_0= ruleExternalMetric ) ) otherlv_5=
// ';'
{
- otherlv_3 = (Token) this.match(this.input, 14, FOLLOW_14_in_ruleMetricModel172);
+ otherlv_3 = (Token) match(input, 14, FOLLOW_14_in_ruleMetricModel172);
- this.newLeafNode(otherlv_3,
- this.grammarAccess.getMetricModelAccess().getExternKeyword_1_0());
+ newLeafNode(otherlv_3, grammarAccess.getMetricModelAccess().getExternKeyword_1_0());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:110:1:
// ( (lv_metrics_4_0= ruleExternalMetric ) )
@@ -267,29 +276,27 @@ public final EObject ruleMetricModel() throws RecognitionException {
// lv_metrics_4_0= ruleExternalMetric
{
- this.newCompositeNode(this.grammarAccess.getMetricModelAccess()
+ newCompositeNode(grammarAccess.getMetricModelAccess()
.getMetricsExternalMetricParserRuleCall_1_1_0());
- this.pushFollow(FOLLOW_ruleExternalMetric_in_ruleMetricModel193);
- lv_metrics_4_0 = this.ruleExternalMetric();
+ pushFollow(FOLLOW_ruleExternalMetric_in_ruleMetricModel193);
+ lv_metrics_4_0 = ruleExternalMetric();
- this.state._fsp--;
+ state._fsp--;
if (current == null) {
- current = this
- .createModelElementForParent(this.grammarAccess.getMetricModelRule());
+ current = this.createModelElementForParent(grammarAccess.getMetricModelRule());
}
this.add(current, "metrics", lv_metrics_4_0, "ExternalMetric");
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
}
- otherlv_5 = (Token) this.match(this.input, 13, FOLLOW_13_in_ruleMetricModel205);
+ otherlv_5 = (Token) match(input, 13, FOLLOW_13_in_ruleMetricModel205);
- this.newLeafNode(otherlv_5,
- this.grammarAccess.getMetricModelAccess().getSemicolonKeyword_1_2());
+ newLeafNode(otherlv_5, grammarAccess.getMetricModelAccess().getSemicolonKeyword_1_2());
}
break;
@@ -299,21 +306,20 @@ public final EObject ruleMetricModel() throws RecognitionException {
}
} while (true);
- otherlv_6 = (Token) this.match(this.input, 15, FOLLOW_15_in_ruleMetricModel219);
+ otherlv_6 = (Token) match(input, 15, FOLLOW_15_in_ruleMetricModel219);
- this.newLeafNode(otherlv_6, this.grammarAccess.getMetricModelAccess().getMetricsKeyword_2());
+ newLeafNode(otherlv_6, grammarAccess.getMetricModelAccess().getMetricsKeyword_2());
- otherlv_7 = (Token) this.match(this.input, 16, FOLLOW_16_in_ruleMetricModel231);
+ otherlv_7 = (Token) match(input, 16, FOLLOW_16_in_ruleMetricModel231);
- this.newLeafNode(otherlv_7,
- this.grammarAccess.getMetricModelAccess().getLeftCurlyBracketKeyword_3());
+ newLeafNode(otherlv_7, grammarAccess.getMetricModelAccess().getLeftCurlyBracketKeyword_3());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:140:1:
// ( (lv_metrics_8_0= ruleInternalMetric ) )+
int cnt3 = 0;
loop3: do {
int alt3 = 2;
- final int LA3_0 = this.input.LA(1);
+ final int LA3_0 = input.LA(1);
if ((LA3_0 == 18)) {
alt3 = 1;
@@ -330,19 +336,19 @@ public final EObject ruleMetricModel() throws RecognitionException {
// lv_metrics_8_0= ruleInternalMetric
{
- this.newCompositeNode(this.grammarAccess.getMetricModelAccess()
+ newCompositeNode(grammarAccess.getMetricModelAccess()
.getMetricsInternalMetricParserRuleCall_4_0());
- this.pushFollow(FOLLOW_ruleInternalMetric_in_ruleMetricModel252);
- lv_metrics_8_0 = this.ruleInternalMetric();
+ pushFollow(FOLLOW_ruleInternalMetric_in_ruleMetricModel252);
+ lv_metrics_8_0 = ruleInternalMetric();
- this.state._fsp--;
+ state._fsp--;
if (current == null) {
- current = this.createModelElementForParent(this.grammarAccess.getMetricModelRule());
+ current = this.createModelElementForParent(grammarAccess.getMetricModelRule());
}
this.add(current, "metrics", lv_metrics_8_0, "InternalMetric");
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
@@ -353,27 +359,26 @@ public final EObject ruleMetricModel() throws RecognitionException {
if (cnt3 >= 1) {
break loop3;
}
- final EarlyExitException eee = new EarlyExitException(3, this.input);
+ final EarlyExitException eee = new EarlyExitException(3, input);
throw eee;
}
cnt3++;
} while (true);
- otherlv_9 = (Token) this.match(this.input, 17, FOLLOW_17_in_ruleMetricModel265);
+ otherlv_9 = (Token) match(input, 17, FOLLOW_17_in_ruleMetricModel265);
- this.newLeafNode(otherlv_9,
- this.grammarAccess.getMetricModelAccess().getRightCurlyBracketKeyword_5());
+ newLeafNode(otherlv_9, grammarAccess.getMetricModelAccess().getRightCurlyBracketKeyword_5());
}
}
- this.leaveRule();
+ leaveRule();
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -382,7 +387,8 @@ public final EObject ruleMetricModel() throws RecognitionException {
// $ANTLR start "entryRuleExternalMetric"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:172:1:
- // entryRuleExternalMetric returns [EObject current=null] : iv_ruleExternalMetric=
+ // entryRuleExternalMetric returns [EObject current=null] :
+ // iv_ruleExternalMetric=
// ruleExternalMetric EOF ;
public final EObject entryRuleExternalMetric() throws RecognitionException {
EObject current = null;
@@ -395,22 +401,22 @@ public final EObject entryRuleExternalMetric() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:174:2:
// iv_ruleExternalMetric= ruleExternalMetric EOF
{
- this.newCompositeNode(this.grammarAccess.getExternalMetricRule());
- this.pushFollow(FOLLOW_ruleExternalMetric_in_entryRuleExternalMetric303);
- iv_ruleExternalMetric = this.ruleExternalMetric();
+ newCompositeNode(grammarAccess.getExternalMetricRule());
+ pushFollow(FOLLOW_ruleExternalMetric_in_entryRuleExternalMetric303);
+ iv_ruleExternalMetric = ruleExternalMetric();
- this.state._fsp--;
+ state._fsp--;
current = iv_ruleExternalMetric;
- this.match(this.input, EOF, FOLLOW_EOF_in_entryRuleExternalMetric313);
+ match(input, EOF, FOLLOW_EOF_in_entryRuleExternalMetric313);
}
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -419,13 +425,14 @@ public final EObject entryRuleExternalMetric() throws RecognitionException {
// $ANTLR start "ruleExternalMetric"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:181:1:
- // ruleExternalMetric returns [EObject current=null] : ( (lv_name_0_0= ruleMYID ) ) ;
+ // ruleExternalMetric returns [EObject current=null] : ( (lv_name_0_0= ruleMYID
+ // ) ) ;
public final EObject ruleExternalMetric() throws RecognitionException {
EObject current = null;
AntlrDatatypeRuleToken lv_name_0_0 = null;
- this.enterRule();
+ enterRule();
try {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:184:28:
@@ -444,19 +451,18 @@ public final EObject ruleExternalMetric() throws RecognitionException {
// lv_name_0_0= ruleMYID
{
- this.newCompositeNode(
- this.grammarAccess.getExternalMetricAccess().getNameMYIDParserRuleCall_0());
+ newCompositeNode(grammarAccess.getExternalMetricAccess().getNameMYIDParserRuleCall_0());
- this.pushFollow(FOLLOW_ruleMYID_in_ruleExternalMetric358);
- lv_name_0_0 = this.ruleMYID();
+ pushFollow(FOLLOW_ruleMYID_in_ruleExternalMetric358);
+ lv_name_0_0 = ruleMYID();
- this.state._fsp--;
+ state._fsp--;
if (current == null) {
- current = this.createModelElementForParent(this.grammarAccess.getExternalMetricRule());
+ current = this.createModelElementForParent(grammarAccess.getExternalMetricRule());
}
this.set(current, "name", lv_name_0_0, "MYID");
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
@@ -464,12 +470,12 @@ public final EObject ruleExternalMetric() throws RecognitionException {
}
- this.leaveRule();
+ leaveRule();
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -478,7 +484,8 @@ public final EObject ruleExternalMetric() throws RecognitionException {
// $ANTLR start "entryRuleInternalMetric"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:211:1:
- // entryRuleInternalMetric returns [EObject current=null] : iv_ruleInternalMetric=
+ // entryRuleInternalMetric returns [EObject current=null] :
+ // iv_ruleInternalMetric=
// ruleInternalMetric EOF ;
public final EObject entryRuleInternalMetric() throws RecognitionException {
EObject current = null;
@@ -491,22 +498,22 @@ public final EObject entryRuleInternalMetric() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:213:2:
// iv_ruleInternalMetric= ruleInternalMetric EOF
{
- this.newCompositeNode(this.grammarAccess.getInternalMetricRule());
- this.pushFollow(FOLLOW_ruleInternalMetric_in_entryRuleInternalMetric393);
- iv_ruleInternalMetric = this.ruleInternalMetric();
+ newCompositeNode(grammarAccess.getInternalMetricRule());
+ pushFollow(FOLLOW_ruleInternalMetric_in_entryRuleInternalMetric393);
+ iv_ruleInternalMetric = ruleInternalMetric();
- this.state._fsp--;
+ state._fsp--;
current = iv_ruleInternalMetric;
- this.match(this.input, EOF, FOLLOW_EOF_in_entryRuleInternalMetric403);
+ match(input, EOF, FOLLOW_EOF_in_entryRuleInternalMetric403);
}
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -515,9 +522,12 @@ public final EObject entryRuleInternalMetric() throws RecognitionException {
// $ANTLR start "ruleInternalMetric"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:220:1:
- // ruleInternalMetric returns [EObject current=null] : (otherlv_0= 'Metric' ( (lv_name_1_0=
- // ruleMYID ) ) otherlv_2= '(' ( (lv_shortName_3_0= RULE_STRING ) ) otherlv_4= ',' (
- // (lv_description_5_0= RULE_STRING ) ) otherlv_6= ')' otherlv_7= '{' (otherlv_8= 'parameters'
+ // ruleInternalMetric returns [EObject current=null] : (otherlv_0= 'Metric' (
+ // (lv_name_1_0=
+ // ruleMYID ) ) otherlv_2= '(' ( (lv_shortName_3_0= RULE_STRING ) ) otherlv_4=
+ // ',' (
+ // (lv_description_5_0= RULE_STRING ) ) otherlv_6= ')' otherlv_7= '{'
+ // (otherlv_8= 'parameters'
// otherlv_9= '{' ( (lv_parameter_10_0= ruleNumber ) )* otherlv_11= '}' )? (
// (lv_definition_12_0= ruleMetricDefinition ) ) otherlv_13= '};' ) ;
public final EObject ruleInternalMetric() throws RecognitionException {
@@ -540,38 +550,44 @@ public final EObject ruleInternalMetric() throws RecognitionException {
EObject lv_definition_12_0 = null;
- this.enterRule();
+ enterRule();
try {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:223:28:
// ( (otherlv_0= 'Metric' ( (lv_name_1_0= ruleMYID ) ) otherlv_2= '(' (
- // (lv_shortName_3_0= RULE_STRING ) ) otherlv_4= ',' ( (lv_description_5_0= RULE_STRING
+ // (lv_shortName_3_0= RULE_STRING ) ) otherlv_4= ',' ( (lv_description_5_0=
+ // RULE_STRING
// ) ) otherlv_6= ')' otherlv_7= '{' (otherlv_8= 'parameters' otherlv_9= '{' (
// (lv_parameter_10_0= ruleNumber ) )* otherlv_11= '}' )? ( (lv_definition_12_0=
// ruleMetricDefinition ) ) otherlv_13= '};' ) )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:224:1:
- // (otherlv_0= 'Metric' ( (lv_name_1_0= ruleMYID ) ) otherlv_2= '(' ( (lv_shortName_3_0=
- // RULE_STRING ) ) otherlv_4= ',' ( (lv_description_5_0= RULE_STRING ) ) otherlv_6= ')'
+ // (otherlv_0= 'Metric' ( (lv_name_1_0= ruleMYID ) ) otherlv_2= '(' (
+ // (lv_shortName_3_0=
+ // RULE_STRING ) ) otherlv_4= ',' ( (lv_description_5_0= RULE_STRING ) )
+ // otherlv_6= ')'
// otherlv_7= '{' (otherlv_8= 'parameters' otherlv_9= '{' ( (lv_parameter_10_0=
- // ruleNumber ) )* otherlv_11= '}' )? ( (lv_definition_12_0= ruleMetricDefinition ) )
+ // ruleNumber ) )* otherlv_11= '}' )? ( (lv_definition_12_0=
+ // ruleMetricDefinition ) )
// otherlv_13= '};' )
{
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:224:1:
// (otherlv_0= 'Metric' ( (lv_name_1_0= ruleMYID ) ) otherlv_2= '(' (
// (lv_shortName_3_0= RULE_STRING ) ) otherlv_4= ',' ( (lv_description_5_0=
- // RULE_STRING ) ) otherlv_6= ')' otherlv_7= '{' (otherlv_8= 'parameters' otherlv_9=
+ // RULE_STRING ) ) otherlv_6= ')' otherlv_7= '{' (otherlv_8= 'parameters'
+ // otherlv_9=
// '{' ( (lv_parameter_10_0= ruleNumber ) )* otherlv_11= '}' )? (
// (lv_definition_12_0= ruleMetricDefinition ) ) otherlv_13= '};' )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:224:3:
// otherlv_0= 'Metric' ( (lv_name_1_0= ruleMYID ) ) otherlv_2= '(' (
// (lv_shortName_3_0= RULE_STRING ) ) otherlv_4= ',' ( (lv_description_5_0=
- // RULE_STRING ) ) otherlv_6= ')' otherlv_7= '{' (otherlv_8= 'parameters' otherlv_9=
+ // RULE_STRING ) ) otherlv_6= ')' otherlv_7= '{' (otherlv_8= 'parameters'
+ // otherlv_9=
// '{' ( (lv_parameter_10_0= ruleNumber ) )* otherlv_11= '}' )? (
// (lv_definition_12_0= ruleMetricDefinition ) ) otherlv_13= '};'
{
- otherlv_0 = (Token) this.match(this.input, 18, FOLLOW_18_in_ruleInternalMetric440);
+ otherlv_0 = (Token) match(input, 18, FOLLOW_18_in_ruleInternalMetric440);
- this.newLeafNode(otherlv_0, this.grammarAccess.getInternalMetricAccess().getMetricKeyword_0());
+ newLeafNode(otherlv_0, grammarAccess.getInternalMetricAccess().getMetricKeyword_0());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:228:1:
// ( (lv_name_1_0= ruleMYID ) )
@@ -584,28 +600,26 @@ public final EObject ruleInternalMetric() throws RecognitionException {
// lv_name_1_0= ruleMYID
{
- this.newCompositeNode(
- this.grammarAccess.getInternalMetricAccess().getNameMYIDParserRuleCall_1_0());
+ newCompositeNode(grammarAccess.getInternalMetricAccess().getNameMYIDParserRuleCall_1_0());
- this.pushFollow(FOLLOW_ruleMYID_in_ruleInternalMetric461);
- lv_name_1_0 = this.ruleMYID();
+ pushFollow(FOLLOW_ruleMYID_in_ruleInternalMetric461);
+ lv_name_1_0 = ruleMYID();
- this.state._fsp--;
+ state._fsp--;
if (current == null) {
- current = this.createModelElementForParent(this.grammarAccess.getInternalMetricRule());
+ current = this.createModelElementForParent(grammarAccess.getInternalMetricRule());
}
this.set(current, "name", lv_name_1_0, "MYID");
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
}
- otherlv_2 = (Token) this.match(this.input, 19, FOLLOW_19_in_ruleInternalMetric473);
+ otherlv_2 = (Token) match(input, 19, FOLLOW_19_in_ruleInternalMetric473);
- this.newLeafNode(otherlv_2,
- this.grammarAccess.getInternalMetricAccess().getLeftParenthesisKeyword_2());
+ newLeafNode(otherlv_2, grammarAccess.getInternalMetricAccess().getLeftParenthesisKeyword_2());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:250:1:
// ( (lv_shortName_3_0= RULE_STRING ) )
@@ -617,14 +631,14 @@ public final EObject ruleInternalMetric() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:252:3:
// lv_shortName_3_0= RULE_STRING
{
- lv_shortName_3_0 = (Token) this.match(this.input, RULE_STRING,
+ lv_shortName_3_0 = (Token) match(input, RULE_STRING,
FOLLOW_RULE_STRING_in_ruleInternalMetric490);
- this.newLeafNode(lv_shortName_3_0, this.grammarAccess.getInternalMetricAccess()
- .getShortNameSTRINGTerminalRuleCall_3_0());
+ newLeafNode(lv_shortName_3_0,
+ grammarAccess.getInternalMetricAccess().getShortNameSTRINGTerminalRuleCall_3_0());
if (current == null) {
- current = this.createModelElement(this.grammarAccess.getInternalMetricRule());
+ current = this.createModelElement(grammarAccess.getInternalMetricRule());
}
this.setWithLastConsumed(current, "shortName", lv_shortName_3_0, "STRING");
@@ -632,9 +646,9 @@ public final EObject ruleInternalMetric() throws RecognitionException {
}
- otherlv_4 = (Token) this.match(this.input, 20, FOLLOW_20_in_ruleInternalMetric507);
+ otherlv_4 = (Token) match(input, 20, FOLLOW_20_in_ruleInternalMetric507);
- this.newLeafNode(otherlv_4, this.grammarAccess.getInternalMetricAccess().getCommaKeyword_4());
+ newLeafNode(otherlv_4, grammarAccess.getInternalMetricAccess().getCommaKeyword_4());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:272:1:
// ( (lv_description_5_0= RULE_STRING ) )
@@ -646,14 +660,14 @@ public final EObject ruleInternalMetric() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:274:3:
// lv_description_5_0= RULE_STRING
{
- lv_description_5_0 = (Token) this.match(this.input, RULE_STRING,
+ lv_description_5_0 = (Token) match(input, RULE_STRING,
FOLLOW_RULE_STRING_in_ruleInternalMetric524);
- this.newLeafNode(lv_description_5_0, this.grammarAccess.getInternalMetricAccess()
- .getDescriptionSTRINGTerminalRuleCall_5_0());
+ newLeafNode(lv_description_5_0,
+ grammarAccess.getInternalMetricAccess().getDescriptionSTRINGTerminalRuleCall_5_0());
if (current == null) {
- current = this.createModelElement(this.grammarAccess.getInternalMetricRule());
+ current = this.createModelElement(grammarAccess.getInternalMetricRule());
}
this.setWithLastConsumed(current, "description", lv_description_5_0, "STRING");
@@ -661,21 +675,19 @@ public final EObject ruleInternalMetric() throws RecognitionException {
}
- otherlv_6 = (Token) this.match(this.input, 21, FOLLOW_21_in_ruleInternalMetric541);
+ otherlv_6 = (Token) match(input, 21, FOLLOW_21_in_ruleInternalMetric541);
- this.newLeafNode(otherlv_6,
- this.grammarAccess.getInternalMetricAccess().getRightParenthesisKeyword_6());
+ newLeafNode(otherlv_6, grammarAccess.getInternalMetricAccess().getRightParenthesisKeyword_6());
- otherlv_7 = (Token) this.match(this.input, 16, FOLLOW_16_in_ruleInternalMetric553);
+ otherlv_7 = (Token) match(input, 16, FOLLOW_16_in_ruleInternalMetric553);
- this.newLeafNode(otherlv_7,
- this.grammarAccess.getInternalMetricAccess().getLeftCurlyBracketKeyword_7());
+ newLeafNode(otherlv_7, grammarAccess.getInternalMetricAccess().getLeftCurlyBracketKeyword_7());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:298:1:
// (otherlv_8= 'parameters' otherlv_9= '{' ( (lv_parameter_10_0= ruleNumber ) )*
// otherlv_11= '}' )?
int alt5 = 2;
- final int LA5_0 = this.input.LA(1);
+ final int LA5_0 = input.LA(1);
if ((LA5_0 == 22)) {
alt5 = 1;
@@ -686,23 +698,22 @@ public final EObject ruleInternalMetric() throws RecognitionException {
// otherlv_8= 'parameters' otherlv_9= '{' ( (lv_parameter_10_0= ruleNumber ) )*
// otherlv_11= '}'
{
- otherlv_8 = (Token) this.match(this.input, 22, FOLLOW_22_in_ruleInternalMetric566);
+ otherlv_8 = (Token) match(input, 22, FOLLOW_22_in_ruleInternalMetric566);
- this.newLeafNode(otherlv_8,
- this.grammarAccess.getInternalMetricAccess().getParametersKeyword_8_0());
+ newLeafNode(otherlv_8, grammarAccess.getInternalMetricAccess().getParametersKeyword_8_0());
- otherlv_9 = (Token) this.match(this.input, 16, FOLLOW_16_in_ruleInternalMetric578);
+ otherlv_9 = (Token) match(input, 16, FOLLOW_16_in_ruleInternalMetric578);
- this.newLeafNode(otherlv_9,
- this.grammarAccess.getInternalMetricAccess().getLeftCurlyBracketKeyword_8_1());
+ newLeafNode(otherlv_9,
+ grammarAccess.getInternalMetricAccess().getLeftCurlyBracketKeyword_8_1());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:306:1:
// ( (lv_parameter_10_0= ruleNumber ) )*
loop4: do {
int alt4 = 2;
- final int LA4_0 = this.input.LA(1);
+ final int LA4_0 = input.LA(1);
- if (((LA4_0 >= 24 && LA4_0 <= 25))) {
+ if ((((LA4_0 >= 24) && (LA4_0 <= 25)))) {
alt4 = 1;
}
@@ -717,20 +728,20 @@ public final EObject ruleInternalMetric() throws RecognitionException {
// lv_parameter_10_0= ruleNumber
{
- this.newCompositeNode(this.grammarAccess.getInternalMetricAccess()
+ newCompositeNode(grammarAccess.getInternalMetricAccess()
.getParameterNumberParserRuleCall_8_2_0());
- this.pushFollow(FOLLOW_ruleNumber_in_ruleInternalMetric599);
- lv_parameter_10_0 = this.ruleNumber();
+ pushFollow(FOLLOW_ruleNumber_in_ruleInternalMetric599);
+ lv_parameter_10_0 = ruleNumber();
- this.state._fsp--;
+ state._fsp--;
if (current == null) {
- current = this.createModelElementForParent(
- this.grammarAccess.getInternalMetricRule());
+ current = this
+ .createModelElementForParent(grammarAccess.getInternalMetricRule());
}
this.add(current, "parameter", lv_parameter_10_0, "Number");
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
@@ -742,10 +753,10 @@ public final EObject ruleInternalMetric() throws RecognitionException {
}
} while (true);
- otherlv_11 = (Token) this.match(this.input, 17, FOLLOW_17_in_ruleInternalMetric612);
+ otherlv_11 = (Token) match(input, 17, FOLLOW_17_in_ruleInternalMetric612);
- this.newLeafNode(otherlv_11,
- this.grammarAccess.getInternalMetricAccess().getRightCurlyBracketKeyword_8_3());
+ newLeafNode(otherlv_11,
+ grammarAccess.getInternalMetricAccess().getRightCurlyBracketKeyword_8_3());
}
break;
@@ -763,39 +774,39 @@ public final EObject ruleInternalMetric() throws RecognitionException {
// lv_definition_12_0= ruleMetricDefinition
{
- this.newCompositeNode(this.grammarAccess.getInternalMetricAccess()
+ newCompositeNode(grammarAccess.getInternalMetricAccess()
.getDefinitionMetricDefinitionParserRuleCall_9_0());
- this.pushFollow(FOLLOW_ruleMetricDefinition_in_ruleInternalMetric635);
- lv_definition_12_0 = this.ruleMetricDefinition();
+ pushFollow(FOLLOW_ruleMetricDefinition_in_ruleInternalMetric635);
+ lv_definition_12_0 = ruleMetricDefinition();
- this.state._fsp--;
+ state._fsp--;
if (current == null) {
- current = this.createModelElementForParent(this.grammarAccess.getInternalMetricRule());
+ current = this.createModelElementForParent(grammarAccess.getInternalMetricRule());
}
this.set(current, "definition", lv_definition_12_0, "MetricDefinition");
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
}
- otherlv_13 = (Token) this.match(this.input, 23, FOLLOW_23_in_ruleInternalMetric647);
+ otherlv_13 = (Token) match(input, 23, FOLLOW_23_in_ruleInternalMetric647);
- this.newLeafNode(otherlv_13,
- this.grammarAccess.getInternalMetricAccess().getRightCurlyBracketSemicolonKeyword_10());
+ newLeafNode(otherlv_13,
+ grammarAccess.getInternalMetricAccess().getRightCurlyBracketSemicolonKeyword_10());
}
}
- this.leaveRule();
+ leaveRule();
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -804,7 +815,8 @@ public final EObject ruleInternalMetric() throws RecognitionException {
// $ANTLR start "entryRuleNumber"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:358:1:
- // entryRuleNumber returns [EObject current=null] : iv_ruleNumber= ruleNumber EOF ;
+ // entryRuleNumber returns [EObject current=null] : iv_ruleNumber= ruleNumber
+ // EOF ;
public final EObject entryRuleNumber() throws RecognitionException {
EObject current = null;
@@ -816,22 +828,22 @@ public final EObject entryRuleNumber() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:360:2:
// iv_ruleNumber= ruleNumber EOF
{
- this.newCompositeNode(this.grammarAccess.getNumberRule());
- this.pushFollow(FOLLOW_ruleNumber_in_entryRuleNumber683);
- iv_ruleNumber = this.ruleNumber();
+ newCompositeNode(grammarAccess.getNumberRule());
+ pushFollow(FOLLOW_ruleNumber_in_entryRuleNumber683);
+ iv_ruleNumber = ruleNumber();
- this.state._fsp--;
+ state._fsp--;
current = iv_ruleNumber;
- this.match(this.input, EOF, FOLLOW_EOF_in_entryRuleNumber693);
+ match(input, EOF, FOLLOW_EOF_in_entryRuleNumber693);
}
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -840,7 +852,8 @@ public final EObject entryRuleNumber() throws RecognitionException {
// $ANTLR start "ruleNumber"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:367:1:
- // ruleNumber returns [EObject current=null] : (this_Parameter_0= ruleParameter |
+ // ruleNumber returns [EObject current=null] : (this_Parameter_0= ruleParameter
+ // |
// this_Constant_1= ruleConstant ) ;
public final EObject ruleNumber() throws RecognitionException {
EObject current = null;
@@ -849,7 +862,7 @@ public final EObject ruleNumber() throws RecognitionException {
EObject this_Constant_1 = null;
- this.enterRule();
+ enterRule();
try {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:370:28:
@@ -860,14 +873,14 @@ public final EObject ruleNumber() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:371:1:
// (this_Parameter_0= ruleParameter | this_Constant_1= ruleConstant )
int alt6 = 2;
- final int LA6_0 = this.input.LA(1);
+ final int LA6_0 = input.LA(1);
if ((LA6_0 == 24)) {
alt6 = 1;
} else if ((LA6_0 == 25)) {
alt6 = 2;
} else {
- final NoViableAltException nvae = new NoViableAltException("", 6, 0, this.input);
+ final NoViableAltException nvae = new NoViableAltException("", 6, 0, input);
throw nvae;
}
@@ -877,15 +890,15 @@ public final EObject ruleNumber() throws RecognitionException {
// this_Parameter_0= ruleParameter
{
- this.newCompositeNode(this.grammarAccess.getNumberAccess().getParameterParserRuleCall_0());
+ newCompositeNode(grammarAccess.getNumberAccess().getParameterParserRuleCall_0());
- this.pushFollow(FOLLOW_ruleParameter_in_ruleNumber740);
- this_Parameter_0 = this.ruleParameter();
+ pushFollow(FOLLOW_ruleParameter_in_ruleNumber740);
+ this_Parameter_0 = ruleParameter();
- this.state._fsp--;
+ state._fsp--;
current = this_Parameter_0;
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
break;
@@ -894,15 +907,15 @@ public final EObject ruleNumber() throws RecognitionException {
// this_Constant_1= ruleConstant
{
- this.newCompositeNode(this.grammarAccess.getNumberAccess().getConstantParserRuleCall_1());
+ newCompositeNode(grammarAccess.getNumberAccess().getConstantParserRuleCall_1());
- this.pushFollow(FOLLOW_ruleConstant_in_ruleNumber767);
- this_Constant_1 = this.ruleConstant();
+ pushFollow(FOLLOW_ruleConstant_in_ruleNumber767);
+ this_Constant_1 = ruleConstant();
- this.state._fsp--;
+ state._fsp--;
current = this_Constant_1;
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
break;
@@ -911,12 +924,12 @@ public final EObject ruleNumber() throws RecognitionException {
}
- this.leaveRule();
+ leaveRule();
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -925,7 +938,8 @@ public final EObject ruleNumber() throws RecognitionException {
// $ANTLR start "entryRuleParameter"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:398:1:
- // entryRuleParameter returns [EObject current=null] : iv_ruleParameter= ruleParameter EOF ;
+ // entryRuleParameter returns [EObject current=null] : iv_ruleParameter=
+ // ruleParameter EOF ;
public final EObject entryRuleParameter() throws RecognitionException {
EObject current = null;
@@ -937,22 +951,22 @@ public final EObject entryRuleParameter() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:400:2:
// iv_ruleParameter= ruleParameter EOF
{
- this.newCompositeNode(this.grammarAccess.getParameterRule());
- this.pushFollow(FOLLOW_ruleParameter_in_entryRuleParameter802);
- iv_ruleParameter = this.ruleParameter();
+ newCompositeNode(grammarAccess.getParameterRule());
+ pushFollow(FOLLOW_ruleParameter_in_entryRuleParameter802);
+ iv_ruleParameter = ruleParameter();
- this.state._fsp--;
+ state._fsp--;
current = iv_ruleParameter;
- this.match(this.input, EOF, FOLLOW_EOF_in_entryRuleParameter812);
+ match(input, EOF, FOLLOW_EOF_in_entryRuleParameter812);
}
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -961,9 +975,12 @@ public final EObject entryRuleParameter() throws RecognitionException {
// $ANTLR start "ruleParameter"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:407:1:
- // ruleParameter returns [EObject current=null] : (otherlv_0= 'Parameter' ( (lv_name_1_0=
- // ruleMYID ) ) otherlv_2= '(' ( (lv_shortname_3_0= RULE_STRING ) ) otherlv_4= ',' (
- // (lv_description_5_0= RULE_STRING ) ) otherlv_6= ',' ( (lv_defaultValue_7_0= RULE_DOUBLE ) )
+ // ruleParameter returns [EObject current=null] : (otherlv_0= 'Parameter' (
+ // (lv_name_1_0=
+ // ruleMYID ) ) otherlv_2= '(' ( (lv_shortname_3_0= RULE_STRING ) ) otherlv_4=
+ // ',' (
+ // (lv_description_5_0= RULE_STRING ) ) otherlv_6= ',' ( (lv_defaultValue_7_0=
+ // RULE_DOUBLE ) )
// otherlv_8= ')' otherlv_9= ';' ) ;
public final EObject ruleParameter() throws RecognitionException {
EObject current = null;
@@ -979,34 +996,40 @@ public final EObject ruleParameter() throws RecognitionException {
Token otherlv_9 = null;
AntlrDatatypeRuleToken lv_name_1_0 = null;
- this.enterRule();
+ enterRule();
try {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:410:28:
// ( (otherlv_0= 'Parameter' ( (lv_name_1_0= ruleMYID ) ) otherlv_2= '(' (
- // (lv_shortname_3_0= RULE_STRING ) ) otherlv_4= ',' ( (lv_description_5_0= RULE_STRING
- // ) ) otherlv_6= ',' ( (lv_defaultValue_7_0= RULE_DOUBLE ) ) otherlv_8= ')' otherlv_9=
+ // (lv_shortname_3_0= RULE_STRING ) ) otherlv_4= ',' ( (lv_description_5_0=
+ // RULE_STRING
+ // ) ) otherlv_6= ',' ( (lv_defaultValue_7_0= RULE_DOUBLE ) ) otherlv_8= ')'
+ // otherlv_9=
// ';' ) )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:411:1:
// (otherlv_0= 'Parameter' ( (lv_name_1_0= ruleMYID ) ) otherlv_2= '(' (
- // (lv_shortname_3_0= RULE_STRING ) ) otherlv_4= ',' ( (lv_description_5_0= RULE_STRING
- // ) ) otherlv_6= ',' ( (lv_defaultValue_7_0= RULE_DOUBLE ) ) otherlv_8= ')' otherlv_9=
+ // (lv_shortname_3_0= RULE_STRING ) ) otherlv_4= ',' ( (lv_description_5_0=
+ // RULE_STRING
+ // ) ) otherlv_6= ',' ( (lv_defaultValue_7_0= RULE_DOUBLE ) ) otherlv_8= ')'
+ // otherlv_9=
// ';' )
{
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:411:1:
// (otherlv_0= 'Parameter' ( (lv_name_1_0= ruleMYID ) ) otherlv_2= '(' (
// (lv_shortname_3_0= RULE_STRING ) ) otherlv_4= ',' ( (lv_description_5_0=
- // RULE_STRING ) ) otherlv_6= ',' ( (lv_defaultValue_7_0= RULE_DOUBLE ) ) otherlv_8=
+ // RULE_STRING ) ) otherlv_6= ',' ( (lv_defaultValue_7_0= RULE_DOUBLE ) )
+ // otherlv_8=
// ')' otherlv_9= ';' )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:411:3:
// otherlv_0= 'Parameter' ( (lv_name_1_0= ruleMYID ) ) otherlv_2= '(' (
// (lv_shortname_3_0= RULE_STRING ) ) otherlv_4= ',' ( (lv_description_5_0=
- // RULE_STRING ) ) otherlv_6= ',' ( (lv_defaultValue_7_0= RULE_DOUBLE ) ) otherlv_8=
+ // RULE_STRING ) ) otherlv_6= ',' ( (lv_defaultValue_7_0= RULE_DOUBLE ) )
+ // otherlv_8=
// ')' otherlv_9= ';'
{
- otherlv_0 = (Token) this.match(this.input, 24, FOLLOW_24_in_ruleParameter849);
+ otherlv_0 = (Token) match(input, 24, FOLLOW_24_in_ruleParameter849);
- this.newLeafNode(otherlv_0, this.grammarAccess.getParameterAccess().getParameterKeyword_0());
+ newLeafNode(otherlv_0, grammarAccess.getParameterAccess().getParameterKeyword_0());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:415:1:
// ( (lv_name_1_0= ruleMYID ) )
@@ -1019,27 +1042,26 @@ public final EObject ruleParameter() throws RecognitionException {
// lv_name_1_0= ruleMYID
{
- this.newCompositeNode(
- this.grammarAccess.getParameterAccess().getNameMYIDParserRuleCall_1_0());
+ newCompositeNode(grammarAccess.getParameterAccess().getNameMYIDParserRuleCall_1_0());
- this.pushFollow(FOLLOW_ruleMYID_in_ruleParameter870);
- lv_name_1_0 = this.ruleMYID();
+ pushFollow(FOLLOW_ruleMYID_in_ruleParameter870);
+ lv_name_1_0 = ruleMYID();
- this.state._fsp--;
+ state._fsp--;
if (current == null) {
- current = this.createModelElementForParent(this.grammarAccess.getParameterRule());
+ current = this.createModelElementForParent(grammarAccess.getParameterRule());
}
this.set(current, "name", lv_name_1_0, "MYID");
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
}
- otherlv_2 = (Token) this.match(this.input, 19, FOLLOW_19_in_ruleParameter882);
+ otherlv_2 = (Token) match(input, 19, FOLLOW_19_in_ruleParameter882);
- this.newLeafNode(otherlv_2, this.grammarAccess.getParameterAccess().getLeftParenthesisKeyword_2());
+ newLeafNode(otherlv_2, grammarAccess.getParameterAccess().getLeftParenthesisKeyword_2());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:437:1:
// ( (lv_shortname_3_0= RULE_STRING ) )
@@ -1051,14 +1073,14 @@ public final EObject ruleParameter() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:439:3:
// lv_shortname_3_0= RULE_STRING
{
- lv_shortname_3_0 = (Token) this.match(this.input, RULE_STRING,
+ lv_shortname_3_0 = (Token) match(input, RULE_STRING,
FOLLOW_RULE_STRING_in_ruleParameter899);
- this.newLeafNode(lv_shortname_3_0,
- this.grammarAccess.getParameterAccess().getShortnameSTRINGTerminalRuleCall_3_0());
+ newLeafNode(lv_shortname_3_0,
+ grammarAccess.getParameterAccess().getShortnameSTRINGTerminalRuleCall_3_0());
if (current == null) {
- current = this.createModelElement(this.grammarAccess.getParameterRule());
+ current = this.createModelElement(grammarAccess.getParameterRule());
}
this.setWithLastConsumed(current, "shortname", lv_shortname_3_0, "STRING");
@@ -1066,9 +1088,9 @@ public final EObject ruleParameter() throws RecognitionException {
}
- otherlv_4 = (Token) this.match(this.input, 20, FOLLOW_20_in_ruleParameter916);
+ otherlv_4 = (Token) match(input, 20, FOLLOW_20_in_ruleParameter916);
- this.newLeafNode(otherlv_4, this.grammarAccess.getParameterAccess().getCommaKeyword_4());
+ newLeafNode(otherlv_4, grammarAccess.getParameterAccess().getCommaKeyword_4());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:459:1:
// ( (lv_description_5_0= RULE_STRING ) )
@@ -1080,14 +1102,14 @@ public final EObject ruleParameter() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:461:3:
// lv_description_5_0= RULE_STRING
{
- lv_description_5_0 = (Token) this.match(this.input, RULE_STRING,
+ lv_description_5_0 = (Token) match(input, RULE_STRING,
FOLLOW_RULE_STRING_in_ruleParameter933);
- this.newLeafNode(lv_description_5_0,
- this.grammarAccess.getParameterAccess().getDescriptionSTRINGTerminalRuleCall_5_0());
+ newLeafNode(lv_description_5_0,
+ grammarAccess.getParameterAccess().getDescriptionSTRINGTerminalRuleCall_5_0());
if (current == null) {
- current = this.createModelElement(this.grammarAccess.getParameterRule());
+ current = this.createModelElement(grammarAccess.getParameterRule());
}
this.setWithLastConsumed(current, "description", lv_description_5_0, "STRING");
@@ -1095,9 +1117,9 @@ public final EObject ruleParameter() throws RecognitionException {
}
- otherlv_6 = (Token) this.match(this.input, 20, FOLLOW_20_in_ruleParameter950);
+ otherlv_6 = (Token) match(input, 20, FOLLOW_20_in_ruleParameter950);
- this.newLeafNode(otherlv_6, this.grammarAccess.getParameterAccess().getCommaKeyword_6());
+ newLeafNode(otherlv_6, grammarAccess.getParameterAccess().getCommaKeyword_6());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:481:1:
// ( (lv_defaultValue_7_0= RULE_DOUBLE ) )
@@ -1109,14 +1131,14 @@ public final EObject ruleParameter() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:483:3:
// lv_defaultValue_7_0= RULE_DOUBLE
{
- lv_defaultValue_7_0 = (Token) this.match(this.input, RULE_DOUBLE,
+ lv_defaultValue_7_0 = (Token) match(input, RULE_DOUBLE,
FOLLOW_RULE_DOUBLE_in_ruleParameter967);
- this.newLeafNode(lv_defaultValue_7_0, this.grammarAccess.getParameterAccess()
- .getDefaultValueDOUBLETerminalRuleCall_7_0());
+ newLeafNode(lv_defaultValue_7_0,
+ grammarAccess.getParameterAccess().getDefaultValueDOUBLETerminalRuleCall_7_0());
if (current == null) {
- current = this.createModelElement(this.grammarAccess.getParameterRule());
+ current = this.createModelElement(grammarAccess.getParameterRule());
}
this.setWithLastConsumed(current, "defaultValue", lv_defaultValue_7_0, "DOUBLE");
@@ -1124,24 +1146,24 @@ public final EObject ruleParameter() throws RecognitionException {
}
- otherlv_8 = (Token) this.match(this.input, 21, FOLLOW_21_in_ruleParameter984);
+ otherlv_8 = (Token) match(input, 21, FOLLOW_21_in_ruleParameter984);
- this.newLeafNode(otherlv_8, this.grammarAccess.getParameterAccess().getRightParenthesisKeyword_8());
+ newLeafNode(otherlv_8, grammarAccess.getParameterAccess().getRightParenthesisKeyword_8());
- otherlv_9 = (Token) this.match(this.input, 13, FOLLOW_13_in_ruleParameter996);
+ otherlv_9 = (Token) match(input, 13, FOLLOW_13_in_ruleParameter996);
- this.newLeafNode(otherlv_9, this.grammarAccess.getParameterAccess().getSemicolonKeyword_9());
+ newLeafNode(otherlv_9, grammarAccess.getParameterAccess().getSemicolonKeyword_9());
}
}
- this.leaveRule();
+ leaveRule();
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -1150,7 +1172,8 @@ public final EObject ruleParameter() throws RecognitionException {
// $ANTLR start "entryRuleConstant"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:515:1:
- // entryRuleConstant returns [EObject current=null] : iv_ruleConstant= ruleConstant EOF ;
+ // entryRuleConstant returns [EObject current=null] : iv_ruleConstant=
+ // ruleConstant EOF ;
public final EObject entryRuleConstant() throws RecognitionException {
EObject current = null;
@@ -1162,22 +1185,22 @@ public final EObject entryRuleConstant() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:517:2:
// iv_ruleConstant= ruleConstant EOF
{
- this.newCompositeNode(this.grammarAccess.getConstantRule());
- this.pushFollow(FOLLOW_ruleConstant_in_entryRuleConstant1032);
- iv_ruleConstant = this.ruleConstant();
+ newCompositeNode(grammarAccess.getConstantRule());
+ pushFollow(FOLLOW_ruleConstant_in_entryRuleConstant1032);
+ iv_ruleConstant = ruleConstant();
- this.state._fsp--;
+ state._fsp--;
current = iv_ruleConstant;
- this.match(this.input, EOF, FOLLOW_EOF_in_entryRuleConstant1042);
+ match(input, EOF, FOLLOW_EOF_in_entryRuleConstant1042);
}
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -1186,7 +1209,8 @@ public final EObject entryRuleConstant() throws RecognitionException {
// $ANTLR start "ruleConstant"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:524:1:
- // ruleConstant returns [EObject current=null] : (otherlv_0= 'Const' ( (lv_name_1_0= ruleMYID )
+ // ruleConstant returns [EObject current=null] : (otherlv_0= 'Const' (
+ // (lv_name_1_0= ruleMYID )
// ) otherlv_2= '=' ( (lv_value_3_0= RULE_DOUBLE ) ) otherlv_4= ';' ) ;
public final EObject ruleConstant() throws RecognitionException {
EObject current = null;
@@ -1197,26 +1221,30 @@ public final EObject ruleConstant() throws RecognitionException {
Token otherlv_4 = null;
AntlrDatatypeRuleToken lv_name_1_0 = null;
- this.enterRule();
+ enterRule();
try {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:527:28:
- // ( (otherlv_0= 'Const' ( (lv_name_1_0= ruleMYID ) ) otherlv_2= '=' ( (lv_value_3_0=
+ // ( (otherlv_0= 'Const' ( (lv_name_1_0= ruleMYID ) ) otherlv_2= '=' (
+ // (lv_value_3_0=
// RULE_DOUBLE ) ) otherlv_4= ';' ) )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:528:1:
- // (otherlv_0= 'Const' ( (lv_name_1_0= ruleMYID ) ) otherlv_2= '=' ( (lv_value_3_0=
+ // (otherlv_0= 'Const' ( (lv_name_1_0= ruleMYID ) ) otherlv_2= '=' (
+ // (lv_value_3_0=
// RULE_DOUBLE ) ) otherlv_4= ';' )
{
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:528:1:
- // (otherlv_0= 'Const' ( (lv_name_1_0= ruleMYID ) ) otherlv_2= '=' ( (lv_value_3_0=
+ // (otherlv_0= 'Const' ( (lv_name_1_0= ruleMYID ) ) otherlv_2= '=' (
+ // (lv_value_3_0=
// RULE_DOUBLE ) ) otherlv_4= ';' )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:528:3:
- // otherlv_0= 'Const' ( (lv_name_1_0= ruleMYID ) ) otherlv_2= '=' ( (lv_value_3_0=
+ // otherlv_0= 'Const' ( (lv_name_1_0= ruleMYID ) ) otherlv_2= '=' (
+ // (lv_value_3_0=
// RULE_DOUBLE ) ) otherlv_4= ';'
{
- otherlv_0 = (Token) this.match(this.input, 25, FOLLOW_25_in_ruleConstant1079);
+ otherlv_0 = (Token) match(input, 25, FOLLOW_25_in_ruleConstant1079);
- this.newLeafNode(otherlv_0, this.grammarAccess.getConstantAccess().getConstKeyword_0());
+ newLeafNode(otherlv_0, grammarAccess.getConstantAccess().getConstKeyword_0());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:532:1:
// ( (lv_name_1_0= ruleMYID ) )
@@ -1229,27 +1257,26 @@ public final EObject ruleConstant() throws RecognitionException {
// lv_name_1_0= ruleMYID
{
- this.newCompositeNode(
- this.grammarAccess.getConstantAccess().getNameMYIDParserRuleCall_1_0());
+ newCompositeNode(grammarAccess.getConstantAccess().getNameMYIDParserRuleCall_1_0());
- this.pushFollow(FOLLOW_ruleMYID_in_ruleConstant1100);
- lv_name_1_0 = this.ruleMYID();
+ pushFollow(FOLLOW_ruleMYID_in_ruleConstant1100);
+ lv_name_1_0 = ruleMYID();
- this.state._fsp--;
+ state._fsp--;
if (current == null) {
- current = this.createModelElementForParent(this.grammarAccess.getConstantRule());
+ current = this.createModelElementForParent(grammarAccess.getConstantRule());
}
this.set(current, "name", lv_name_1_0, "MYID");
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
}
- otherlv_2 = (Token) this.match(this.input, 26, FOLLOW_26_in_ruleConstant1112);
+ otherlv_2 = (Token) match(input, 26, FOLLOW_26_in_ruleConstant1112);
- this.newLeafNode(otherlv_2, this.grammarAccess.getConstantAccess().getEqualsSignKeyword_2());
+ newLeafNode(otherlv_2, grammarAccess.getConstantAccess().getEqualsSignKeyword_2());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:554:1:
// ( (lv_value_3_0= RULE_DOUBLE ) )
@@ -1261,14 +1288,13 @@ public final EObject ruleConstant() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:556:3:
// lv_value_3_0= RULE_DOUBLE
{
- lv_value_3_0 = (Token) this.match(this.input, RULE_DOUBLE,
- FOLLOW_RULE_DOUBLE_in_ruleConstant1129);
+ lv_value_3_0 = (Token) match(input, RULE_DOUBLE, FOLLOW_RULE_DOUBLE_in_ruleConstant1129);
- this.newLeafNode(lv_value_3_0,
- this.grammarAccess.getConstantAccess().getValueDOUBLETerminalRuleCall_3_0());
+ newLeafNode(lv_value_3_0,
+ grammarAccess.getConstantAccess().getValueDOUBLETerminalRuleCall_3_0());
if (current == null) {
- current = this.createModelElement(this.grammarAccess.getConstantRule());
+ current = this.createModelElement(grammarAccess.getConstantRule());
}
this.setWithLastConsumed(current, "value", lv_value_3_0, "DOUBLE");
@@ -1276,20 +1302,20 @@ public final EObject ruleConstant() throws RecognitionException {
}
- otherlv_4 = (Token) this.match(this.input, 13, FOLLOW_13_in_ruleConstant1146);
+ otherlv_4 = (Token) match(input, 13, FOLLOW_13_in_ruleConstant1146);
- this.newLeafNode(otherlv_4, this.grammarAccess.getConstantAccess().getSemicolonKeyword_4());
+ newLeafNode(otherlv_4, grammarAccess.getConstantAccess().getSemicolonKeyword_4());
}
}
- this.leaveRule();
+ leaveRule();
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -1298,7 +1324,8 @@ public final EObject ruleConstant() throws RecognitionException {
// $ANTLR start "entryRuleMetricDefinition"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:584:1:
- // entryRuleMetricDefinition returns [EObject current=null] : iv_ruleMetricDefinition=
+ // entryRuleMetricDefinition returns [EObject current=null] :
+ // iv_ruleMetricDefinition=
// ruleMetricDefinition EOF ;
public final EObject entryRuleMetricDefinition() throws RecognitionException {
EObject current = null;
@@ -1311,22 +1338,22 @@ public final EObject entryRuleMetricDefinition() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:586:2:
// iv_ruleMetricDefinition= ruleMetricDefinition EOF
{
- this.newCompositeNode(this.grammarAccess.getMetricDefinitionRule());
- this.pushFollow(FOLLOW_ruleMetricDefinition_in_entryRuleMetricDefinition1182);
- iv_ruleMetricDefinition = this.ruleMetricDefinition();
+ newCompositeNode(grammarAccess.getMetricDefinitionRule());
+ pushFollow(FOLLOW_ruleMetricDefinition_in_entryRuleMetricDefinition1182);
+ iv_ruleMetricDefinition = ruleMetricDefinition();
- this.state._fsp--;
+ state._fsp--;
current = iv_ruleMetricDefinition;
- this.match(this.input, EOF, FOLLOW_EOF_in_entryRuleMetricDefinition1192);
+ match(input, EOF, FOLLOW_EOF_in_entryRuleMetricDefinition1192);
}
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -1336,7 +1363,8 @@ public final EObject entryRuleMetricDefinition() throws RecognitionException {
// $ANTLR start "ruleMetricDefinition"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:593:1:
// ruleMetricDefinition returns [EObject current=null] : (this_WeightedMetric_0=
- // ruleWeightedMetric | this_StepwiseMetric_1= ruleStepwiseMetric | this_RatioMetric_2=
+ // ruleWeightedMetric | this_StepwiseMetric_1= ruleStepwiseMetric |
+ // this_RatioMetric_2=
// ruleRatioMetric ) ;
public final EObject ruleMetricDefinition() throws RecognitionException {
EObject current = null;
@@ -1347,7 +1375,7 @@ public final EObject ruleMetricDefinition() throws RecognitionException {
EObject this_RatioMetric_2 = null;
- this.enterRule();
+ enterRule();
try {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:596:28:
@@ -1361,24 +1389,15 @@ public final EObject ruleMetricDefinition() throws RecognitionException {
// (this_WeightedMetric_0= ruleWeightedMetric | this_StepwiseMetric_1=
// ruleStepwiseMetric | this_RatioMetric_2= ruleRatioMetric )
int alt7 = 3;
- switch (this.input.LA(1)) {
- case 27: {
- alt7 = 1;
- }
- break;
- case 28: {
- alt7 = 2;
- }
- break;
- case 31: {
- alt7 = 3;
- }
- break;
- default:
- final NoViableAltException nvae = new NoViableAltException("", 7, 0, this.input);
-
+ alt7 = switch (input.LA(1)) {
+ case 27 -> 1;
+ case 28 -> 2;
+ case 31 -> 3;
+ default -> {
+ final NoViableAltException nvae = new NoViableAltException("", 7, 0, input);
throw nvae;
}
+ };
switch (alt7) {
case 1:
@@ -1386,16 +1405,15 @@ public final EObject ruleMetricDefinition() throws RecognitionException {
// this_WeightedMetric_0= ruleWeightedMetric
{
- this.newCompositeNode(
- this.grammarAccess.getMetricDefinitionAccess().getWeightedMetricParserRuleCall_0());
+ newCompositeNode(grammarAccess.getMetricDefinitionAccess().getWeightedMetricParserRuleCall_0());
- this.pushFollow(FOLLOW_ruleWeightedMetric_in_ruleMetricDefinition1239);
- this_WeightedMetric_0 = this.ruleWeightedMetric();
+ pushFollow(FOLLOW_ruleWeightedMetric_in_ruleMetricDefinition1239);
+ this_WeightedMetric_0 = ruleWeightedMetric();
- this.state._fsp--;
+ state._fsp--;
current = this_WeightedMetric_0;
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
break;
@@ -1404,16 +1422,15 @@ public final EObject ruleMetricDefinition() throws RecognitionException {
// this_StepwiseMetric_1= ruleStepwiseMetric
{
- this.newCompositeNode(
- this.grammarAccess.getMetricDefinitionAccess().getStepwiseMetricParserRuleCall_1());
+ newCompositeNode(grammarAccess.getMetricDefinitionAccess().getStepwiseMetricParserRuleCall_1());
- this.pushFollow(FOLLOW_ruleStepwiseMetric_in_ruleMetricDefinition1266);
- this_StepwiseMetric_1 = this.ruleStepwiseMetric();
+ pushFollow(FOLLOW_ruleStepwiseMetric_in_ruleMetricDefinition1266);
+ this_StepwiseMetric_1 = ruleStepwiseMetric();
- this.state._fsp--;
+ state._fsp--;
current = this_StepwiseMetric_1;
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
break;
@@ -1422,16 +1439,15 @@ public final EObject ruleMetricDefinition() throws RecognitionException {
// this_RatioMetric_2= ruleRatioMetric
{
- this.newCompositeNode(
- this.grammarAccess.getMetricDefinitionAccess().getRatioMetricParserRuleCall_2());
+ newCompositeNode(grammarAccess.getMetricDefinitionAccess().getRatioMetricParserRuleCall_2());
- this.pushFollow(FOLLOW_ruleRatioMetric_in_ruleMetricDefinition1293);
- this_RatioMetric_2 = this.ruleRatioMetric();
+ pushFollow(FOLLOW_ruleRatioMetric_in_ruleMetricDefinition1293);
+ this_RatioMetric_2 = ruleRatioMetric();
- this.state._fsp--;
+ state._fsp--;
current = this_RatioMetric_2;
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
break;
@@ -1440,12 +1456,12 @@ public final EObject ruleMetricDefinition() throws RecognitionException {
}
- this.leaveRule();
+ leaveRule();
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -1454,7 +1470,8 @@ public final EObject ruleMetricDefinition() throws RecognitionException {
// $ANTLR start "entryRuleWeightedMetric"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:634:1:
- // entryRuleWeightedMetric returns [EObject current=null] : iv_ruleWeightedMetric=
+ // entryRuleWeightedMetric returns [EObject current=null] :
+ // iv_ruleWeightedMetric=
// ruleWeightedMetric EOF ;
public final EObject entryRuleWeightedMetric() throws RecognitionException {
EObject current = null;
@@ -1467,22 +1484,22 @@ public final EObject entryRuleWeightedMetric() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:636:2:
// iv_ruleWeightedMetric= ruleWeightedMetric EOF
{
- this.newCompositeNode(this.grammarAccess.getWeightedMetricRule());
- this.pushFollow(FOLLOW_ruleWeightedMetric_in_entryRuleWeightedMetric1328);
- iv_ruleWeightedMetric = this.ruleWeightedMetric();
+ newCompositeNode(grammarAccess.getWeightedMetricRule());
+ pushFollow(FOLLOW_ruleWeightedMetric_in_entryRuleWeightedMetric1328);
+ iv_ruleWeightedMetric = ruleWeightedMetric();
- this.state._fsp--;
+ state._fsp--;
current = iv_ruleWeightedMetric;
- this.match(this.input, EOF, FOLLOW_EOF_in_entryRuleWeightedMetric1338);
+ match(input, EOF, FOLLOW_EOF_in_entryRuleWeightedMetric1338);
}
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -1491,7 +1508,8 @@ public final EObject entryRuleWeightedMetric() throws RecognitionException {
// $ANTLR start "ruleWeightedMetric"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:643:1:
- // ruleWeightedMetric returns [EObject current=null] : (otherlv_0= 'WeigthedSum' otherlv_1= '{'
+ // ruleWeightedMetric returns [EObject current=null] : (otherlv_0= 'WeigthedSum'
+ // otherlv_1= '{'
// ( (lv_weights_2_0= ruleMetricAndWeight ) )+ otherlv_3= '}' ) ;
public final EObject ruleWeightedMetric() throws RecognitionException {
EObject current = null;
@@ -1501,38 +1519,41 @@ public final EObject ruleWeightedMetric() throws RecognitionException {
Token otherlv_3 = null;
EObject lv_weights_2_0 = null;
- this.enterRule();
+ enterRule();
try {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:646:28:
- // ( (otherlv_0= 'WeigthedSum' otherlv_1= '{' ( (lv_weights_2_0= ruleMetricAndWeight )
+ // ( (otherlv_0= 'WeigthedSum' otherlv_1= '{' ( (lv_weights_2_0=
+ // ruleMetricAndWeight )
// )+ otherlv_3= '}' ) )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:647:1:
- // (otherlv_0= 'WeigthedSum' otherlv_1= '{' ( (lv_weights_2_0= ruleMetricAndWeight ) )+
+ // (otherlv_0= 'WeigthedSum' otherlv_1= '{' ( (lv_weights_2_0=
+ // ruleMetricAndWeight ) )+
// otherlv_3= '}' )
{
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:647:1:
- // (otherlv_0= 'WeigthedSum' otherlv_1= '{' ( (lv_weights_2_0= ruleMetricAndWeight )
+ // (otherlv_0= 'WeigthedSum' otherlv_1= '{' ( (lv_weights_2_0=
+ // ruleMetricAndWeight )
// )+ otherlv_3= '}' )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:647:3:
- // otherlv_0= 'WeigthedSum' otherlv_1= '{' ( (lv_weights_2_0= ruleMetricAndWeight )
+ // otherlv_0= 'WeigthedSum' otherlv_1= '{' ( (lv_weights_2_0=
+ // ruleMetricAndWeight )
// )+ otherlv_3= '}'
{
- otherlv_0 = (Token) this.match(this.input, 27, FOLLOW_27_in_ruleWeightedMetric1375);
+ otherlv_0 = (Token) match(input, 27, FOLLOW_27_in_ruleWeightedMetric1375);
- this.newLeafNode(otherlv_0, this.grammarAccess.getWeightedMetricAccess().getWeigthedSumKeyword_0());
+ newLeafNode(otherlv_0, grammarAccess.getWeightedMetricAccess().getWeigthedSumKeyword_0());
- otherlv_1 = (Token) this.match(this.input, 16, FOLLOW_16_in_ruleWeightedMetric1387);
+ otherlv_1 = (Token) match(input, 16, FOLLOW_16_in_ruleWeightedMetric1387);
- this.newLeafNode(otherlv_1,
- this.grammarAccess.getWeightedMetricAccess().getLeftCurlyBracketKeyword_1());
+ newLeafNode(otherlv_1, grammarAccess.getWeightedMetricAccess().getLeftCurlyBracketKeyword_1());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:655:1:
// ( (lv_weights_2_0= ruleMetricAndWeight ) )+
int cnt8 = 0;
loop8: do {
int alt8 = 2;
- final int LA8_0 = this.input.LA(1);
+ final int LA8_0 = input.LA(1);
if ((LA8_0 == 33)) {
alt8 = 1;
@@ -1549,20 +1570,19 @@ public final EObject ruleWeightedMetric() throws RecognitionException {
// lv_weights_2_0= ruleMetricAndWeight
{
- this.newCompositeNode(this.grammarAccess.getWeightedMetricAccess()
+ newCompositeNode(grammarAccess.getWeightedMetricAccess()
.getWeightsMetricAndWeightParserRuleCall_2_0());
- this.pushFollow(FOLLOW_ruleMetricAndWeight_in_ruleWeightedMetric1408);
- lv_weights_2_0 = this.ruleMetricAndWeight();
+ pushFollow(FOLLOW_ruleMetricAndWeight_in_ruleWeightedMetric1408);
+ lv_weights_2_0 = ruleMetricAndWeight();
- this.state._fsp--;
+ state._fsp--;
if (current == null) {
- current = this
- .createModelElementForParent(this.grammarAccess.getWeightedMetricRule());
+ current = this.createModelElementForParent(grammarAccess.getWeightedMetricRule());
}
this.add(current, "weights", lv_weights_2_0, "MetricAndWeight");
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
@@ -1573,27 +1593,26 @@ public final EObject ruleWeightedMetric() throws RecognitionException {
if (cnt8 >= 1) {
break loop8;
}
- final EarlyExitException eee = new EarlyExitException(8, this.input);
+ final EarlyExitException eee = new EarlyExitException(8, input);
throw eee;
}
cnt8++;
} while (true);
- otherlv_3 = (Token) this.match(this.input, 17, FOLLOW_17_in_ruleWeightedMetric1421);
+ otherlv_3 = (Token) match(input, 17, FOLLOW_17_in_ruleWeightedMetric1421);
- this.newLeafNode(otherlv_3,
- this.grammarAccess.getWeightedMetricAccess().getRightCurlyBracketKeyword_3());
+ newLeafNode(otherlv_3, grammarAccess.getWeightedMetricAccess().getRightCurlyBracketKeyword_3());
}
}
- this.leaveRule();
+ leaveRule();
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -1602,7 +1621,8 @@ public final EObject ruleWeightedMetric() throws RecognitionException {
// $ANTLR start "entryRuleStepwiseMetric"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:685:1:
- // entryRuleStepwiseMetric returns [EObject current=null] : iv_ruleStepwiseMetric=
+ // entryRuleStepwiseMetric returns [EObject current=null] :
+ // iv_ruleStepwiseMetric=
// ruleStepwiseMetric EOF ;
public final EObject entryRuleStepwiseMetric() throws RecognitionException {
EObject current = null;
@@ -1615,22 +1635,22 @@ public final EObject entryRuleStepwiseMetric() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:687:2:
// iv_ruleStepwiseMetric= ruleStepwiseMetric EOF
{
- this.newCompositeNode(this.grammarAccess.getStepwiseMetricRule());
- this.pushFollow(FOLLOW_ruleStepwiseMetric_in_entryRuleStepwiseMetric1457);
- iv_ruleStepwiseMetric = this.ruleStepwiseMetric();
+ newCompositeNode(grammarAccess.getStepwiseMetricRule());
+ pushFollow(FOLLOW_ruleStepwiseMetric_in_entryRuleStepwiseMetric1457);
+ iv_ruleStepwiseMetric = ruleStepwiseMetric();
- this.state._fsp--;
+ state._fsp--;
current = iv_ruleStepwiseMetric;
- this.match(this.input, EOF, FOLLOW_EOF_in_entryRuleStepwiseMetric1467);
+ match(input, EOF, FOLLOW_EOF_in_entryRuleStepwiseMetric1467);
}
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -1639,8 +1659,10 @@ public final EObject entryRuleStepwiseMetric() throws RecognitionException {
// $ANTLR start "ruleStepwiseMetric"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:694:1:
- // ruleStepwiseMetric returns [EObject current=null] : (otherlv_0= 'Stepwise' otherlv_1= '[' ( (
- // ruleMYID ) ) otherlv_3= ']' otherlv_4= '{' ( (lv_steps_5_0= ruleBoundAndWeight ) )*
+ // ruleStepwiseMetric returns [EObject current=null] : (otherlv_0= 'Stepwise'
+ // otherlv_1= '[' ( (
+ // ruleMYID ) ) otherlv_3= ']' otherlv_4= '{' ( (lv_steps_5_0=
+ // ruleBoundAndWeight ) )*
// otherlv_6= '}' ) ;
public final EObject ruleStepwiseMetric() throws RecognitionException {
EObject current = null;
@@ -1652,31 +1674,34 @@ public final EObject ruleStepwiseMetric() throws RecognitionException {
Token otherlv_6 = null;
EObject lv_steps_5_0 = null;
- this.enterRule();
+ enterRule();
try {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:697:28:
- // ( (otherlv_0= 'Stepwise' otherlv_1= '[' ( ( ruleMYID ) ) otherlv_3= ']' otherlv_4=
+ // ( (otherlv_0= 'Stepwise' otherlv_1= '[' ( ( ruleMYID ) ) otherlv_3= ']'
+ // otherlv_4=
// '{' ( (lv_steps_5_0= ruleBoundAndWeight ) )* otherlv_6= '}' ) )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:698:1:
- // (otherlv_0= 'Stepwise' otherlv_1= '[' ( ( ruleMYID ) ) otherlv_3= ']' otherlv_4= '{'
+ // (otherlv_0= 'Stepwise' otherlv_1= '[' ( ( ruleMYID ) ) otherlv_3= ']'
+ // otherlv_4= '{'
// ( (lv_steps_5_0= ruleBoundAndWeight ) )* otherlv_6= '}' )
{
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:698:1:
- // (otherlv_0= 'Stepwise' otherlv_1= '[' ( ( ruleMYID ) ) otherlv_3= ']' otherlv_4=
+ // (otherlv_0= 'Stepwise' otherlv_1= '[' ( ( ruleMYID ) ) otherlv_3= ']'
+ // otherlv_4=
// '{' ( (lv_steps_5_0= ruleBoundAndWeight ) )* otherlv_6= '}' )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:698:3:
- // otherlv_0= 'Stepwise' otherlv_1= '[' ( ( ruleMYID ) ) otherlv_3= ']' otherlv_4=
+ // otherlv_0= 'Stepwise' otherlv_1= '[' ( ( ruleMYID ) ) otherlv_3= ']'
+ // otherlv_4=
// '{' ( (lv_steps_5_0= ruleBoundAndWeight ) )* otherlv_6= '}'
{
- otherlv_0 = (Token) this.match(this.input, 28, FOLLOW_28_in_ruleStepwiseMetric1504);
+ otherlv_0 = (Token) match(input, 28, FOLLOW_28_in_ruleStepwiseMetric1504);
- this.newLeafNode(otherlv_0, this.grammarAccess.getStepwiseMetricAccess().getStepwiseKeyword_0());
+ newLeafNode(otherlv_0, grammarAccess.getStepwiseMetricAccess().getStepwiseKeyword_0());
- otherlv_1 = (Token) this.match(this.input, 29, FOLLOW_29_in_ruleStepwiseMetric1516);
+ otherlv_1 = (Token) match(input, 29, FOLLOW_29_in_ruleStepwiseMetric1516);
- this.newLeafNode(otherlv_1,
- this.grammarAccess.getStepwiseMetricAccess().getLeftSquareBracketKeyword_1());
+ newLeafNode(otherlv_1, grammarAccess.getStepwiseMetricAccess().getLeftSquareBracketKeyword_1());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:706:1:
// ( ( ruleMYID ) )
@@ -1690,38 +1715,36 @@ public final EObject ruleStepwiseMetric() throws RecognitionException {
{
if (current == null) {
- current = this.createModelElement(this.grammarAccess.getStepwiseMetricRule());
+ current = this.createModelElement(grammarAccess.getStepwiseMetricRule());
}
- this.newCompositeNode(this.grammarAccess.getStepwiseMetricAccess()
- .getInnerMetricMetricCrossReference_2_0());
+ newCompositeNode(
+ grammarAccess.getStepwiseMetricAccess().getInnerMetricMetricCrossReference_2_0());
- this.pushFollow(FOLLOW_ruleMYID_in_ruleStepwiseMetric1539);
- this.ruleMYID();
+ pushFollow(FOLLOW_ruleMYID_in_ruleStepwiseMetric1539);
+ ruleMYID();
- this.state._fsp--;
+ state._fsp--;
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
}
- otherlv_3 = (Token) this.match(this.input, 30, FOLLOW_30_in_ruleStepwiseMetric1551);
+ otherlv_3 = (Token) match(input, 30, FOLLOW_30_in_ruleStepwiseMetric1551);
- this.newLeafNode(otherlv_3,
- this.grammarAccess.getStepwiseMetricAccess().getRightSquareBracketKeyword_3());
+ newLeafNode(otherlv_3, grammarAccess.getStepwiseMetricAccess().getRightSquareBracketKeyword_3());
- otherlv_4 = (Token) this.match(this.input, 16, FOLLOW_16_in_ruleStepwiseMetric1563);
+ otherlv_4 = (Token) match(input, 16, FOLLOW_16_in_ruleStepwiseMetric1563);
- this.newLeafNode(otherlv_4,
- this.grammarAccess.getStepwiseMetricAccess().getLeftCurlyBracketKeyword_4());
+ newLeafNode(otherlv_4, grammarAccess.getStepwiseMetricAccess().getLeftCurlyBracketKeyword_4());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:729:1:
// ( (lv_steps_5_0= ruleBoundAndWeight ) )*
loop9: do {
int alt9 = 2;
- final int LA9_0 = this.input.LA(1);
+ final int LA9_0 = input.LA(1);
if ((LA9_0 == 33)) {
alt9 = 1;
@@ -1738,20 +1761,19 @@ public final EObject ruleStepwiseMetric() throws RecognitionException {
// lv_steps_5_0= ruleBoundAndWeight
{
- this.newCompositeNode(this.grammarAccess.getStepwiseMetricAccess()
+ newCompositeNode(grammarAccess.getStepwiseMetricAccess()
.getStepsBoundAndWeightParserRuleCall_5_0());
- this.pushFollow(FOLLOW_ruleBoundAndWeight_in_ruleStepwiseMetric1584);
- lv_steps_5_0 = this.ruleBoundAndWeight();
+ pushFollow(FOLLOW_ruleBoundAndWeight_in_ruleStepwiseMetric1584);
+ lv_steps_5_0 = ruleBoundAndWeight();
- this.state._fsp--;
+ state._fsp--;
if (current == null) {
- current = this
- .createModelElementForParent(this.grammarAccess.getStepwiseMetricRule());
+ current = this.createModelElementForParent(grammarAccess.getStepwiseMetricRule());
}
this.add(current, "steps", lv_steps_5_0, "BoundAndWeight");
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
@@ -1763,21 +1785,20 @@ public final EObject ruleStepwiseMetric() throws RecognitionException {
}
} while (true);
- otherlv_6 = (Token) this.match(this.input, 17, FOLLOW_17_in_ruleStepwiseMetric1597);
+ otherlv_6 = (Token) match(input, 17, FOLLOW_17_in_ruleStepwiseMetric1597);
- this.newLeafNode(otherlv_6,
- this.grammarAccess.getStepwiseMetricAccess().getRightCurlyBracketKeyword_6());
+ newLeafNode(otherlv_6, grammarAccess.getStepwiseMetricAccess().getRightCurlyBracketKeyword_6());
}
}
- this.leaveRule();
+ leaveRule();
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -1786,7 +1807,8 @@ public final EObject ruleStepwiseMetric() throws RecognitionException {
// $ANTLR start "entryRuleRatioMetric"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:759:1:
- // entryRuleRatioMetric returns [EObject current=null] : iv_ruleRatioMetric= ruleRatioMetric EOF
+ // entryRuleRatioMetric returns [EObject current=null] : iv_ruleRatioMetric=
+ // ruleRatioMetric EOF
// ;
public final EObject entryRuleRatioMetric() throws RecognitionException {
EObject current = null;
@@ -1799,22 +1821,22 @@ public final EObject entryRuleRatioMetric() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:761:2:
// iv_ruleRatioMetric= ruleRatioMetric EOF
{
- this.newCompositeNode(this.grammarAccess.getRatioMetricRule());
- this.pushFollow(FOLLOW_ruleRatioMetric_in_entryRuleRatioMetric1633);
- iv_ruleRatioMetric = this.ruleRatioMetric();
+ newCompositeNode(grammarAccess.getRatioMetricRule());
+ pushFollow(FOLLOW_ruleRatioMetric_in_entryRuleRatioMetric1633);
+ iv_ruleRatioMetric = ruleRatioMetric();
- this.state._fsp--;
+ state._fsp--;
current = iv_ruleRatioMetric;
- this.match(this.input, EOF, FOLLOW_EOF_in_entryRuleRatioMetric1643);
+ match(input, EOF, FOLLOW_EOF_in_entryRuleRatioMetric1643);
}
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -1823,7 +1845,8 @@ public final EObject entryRuleRatioMetric() throws RecognitionException {
// $ANTLR start "ruleRatioMetric"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:768:1:
- // ruleRatioMetric returns [EObject current=null] : (otherlv_0= 'Ratio' otherlv_1= '{' ( (
+ // ruleRatioMetric returns [EObject current=null] : (otherlv_0= 'Ratio'
+ // otherlv_1= '{' ( (
// ruleMYID ) ) otherlv_3= '/' ( ( ruleMYID ) ) otherlv_5= '}' ) ;
public final EObject ruleRatioMetric() throws RecognitionException {
EObject current = null;
@@ -1833,31 +1856,34 @@ public final EObject ruleRatioMetric() throws RecognitionException {
Token otherlv_3 = null;
Token otherlv_5 = null;
- this.enterRule();
+ enterRule();
try {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:771:28:
- // ( (otherlv_0= 'Ratio' otherlv_1= '{' ( ( ruleMYID ) ) otherlv_3= '/' ( ( ruleMYID ) )
+ // ( (otherlv_0= 'Ratio' otherlv_1= '{' ( ( ruleMYID ) ) otherlv_3= '/' ( (
+ // ruleMYID ) )
// otherlv_5= '}' ) )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:772:1:
- // (otherlv_0= 'Ratio' otherlv_1= '{' ( ( ruleMYID ) ) otherlv_3= '/' ( ( ruleMYID ) )
+ // (otherlv_0= 'Ratio' otherlv_1= '{' ( ( ruleMYID ) ) otherlv_3= '/' ( (
+ // ruleMYID ) )
// otherlv_5= '}' )
{
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:772:1:
- // (otherlv_0= 'Ratio' otherlv_1= '{' ( ( ruleMYID ) ) otherlv_3= '/' ( ( ruleMYID )
+ // (otherlv_0= 'Ratio' otherlv_1= '{' ( ( ruleMYID ) ) otherlv_3= '/' ( (
+ // ruleMYID )
// ) otherlv_5= '}' )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:772:3:
- // otherlv_0= 'Ratio' otherlv_1= '{' ( ( ruleMYID ) ) otherlv_3= '/' ( ( ruleMYID )
+ // otherlv_0= 'Ratio' otherlv_1= '{' ( ( ruleMYID ) ) otherlv_3= '/' ( (
+ // ruleMYID )
// ) otherlv_5= '}'
{
- otherlv_0 = (Token) this.match(this.input, 31, FOLLOW_31_in_ruleRatioMetric1680);
+ otherlv_0 = (Token) match(input, 31, FOLLOW_31_in_ruleRatioMetric1680);
- this.newLeafNode(otherlv_0, this.grammarAccess.getRatioMetricAccess().getRatioKeyword_0());
+ newLeafNode(otherlv_0, grammarAccess.getRatioMetricAccess().getRatioKeyword_0());
- otherlv_1 = (Token) this.match(this.input, 16, FOLLOW_16_in_ruleRatioMetric1692);
+ otherlv_1 = (Token) match(input, 16, FOLLOW_16_in_ruleRatioMetric1692);
- this.newLeafNode(otherlv_1,
- this.grammarAccess.getRatioMetricAccess().getLeftCurlyBracketKeyword_1());
+ newLeafNode(otherlv_1, grammarAccess.getRatioMetricAccess().getLeftCurlyBracketKeyword_1());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:780:1:
// ( ( ruleMYID ) )
@@ -1871,26 +1897,26 @@ public final EObject ruleRatioMetric() throws RecognitionException {
{
if (current == null) {
- current = this.createModelElement(this.grammarAccess.getRatioMetricRule());
+ current = this.createModelElement(grammarAccess.getRatioMetricRule());
}
- this.newCompositeNode(this.grammarAccess.getRatioMetricAccess()
- .getNominatorMetricMetricCrossReference_2_0());
+ newCompositeNode(
+ grammarAccess.getRatioMetricAccess().getNominatorMetricMetricCrossReference_2_0());
- this.pushFollow(FOLLOW_ruleMYID_in_ruleRatioMetric1715);
- this.ruleMYID();
+ pushFollow(FOLLOW_ruleMYID_in_ruleRatioMetric1715);
+ ruleMYID();
- this.state._fsp--;
+ state._fsp--;
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
}
- otherlv_3 = (Token) this.match(this.input, 32, FOLLOW_32_in_ruleRatioMetric1727);
+ otherlv_3 = (Token) match(input, 32, FOLLOW_32_in_ruleRatioMetric1727);
- this.newLeafNode(otherlv_3, this.grammarAccess.getRatioMetricAccess().getSolidusKeyword_3());
+ newLeafNode(otherlv_3, grammarAccess.getRatioMetricAccess().getSolidusKeyword_3());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:799:1:
// ( ( ruleMYID ) )
@@ -1904,38 +1930,37 @@ public final EObject ruleRatioMetric() throws RecognitionException {
{
if (current == null) {
- current = this.createModelElement(this.grammarAccess.getRatioMetricRule());
+ current = this.createModelElement(grammarAccess.getRatioMetricRule());
}
- this.newCompositeNode(this.grammarAccess.getRatioMetricAccess()
+ newCompositeNode(grammarAccess.getRatioMetricAccess()
.getDenominatorMetricMetricCrossReference_4_0());
- this.pushFollow(FOLLOW_ruleMYID_in_ruleRatioMetric1750);
- this.ruleMYID();
+ pushFollow(FOLLOW_ruleMYID_in_ruleRatioMetric1750);
+ ruleMYID();
- this.state._fsp--;
+ state._fsp--;
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
}
- otherlv_5 = (Token) this.match(this.input, 17, FOLLOW_17_in_ruleRatioMetric1762);
+ otherlv_5 = (Token) match(input, 17, FOLLOW_17_in_ruleRatioMetric1762);
- this.newLeafNode(otherlv_5,
- this.grammarAccess.getRatioMetricAccess().getRightCurlyBracketKeyword_5());
+ newLeafNode(otherlv_5, grammarAccess.getRatioMetricAccess().getRightCurlyBracketKeyword_5());
}
}
- this.leaveRule();
+ leaveRule();
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -1944,7 +1969,8 @@ public final EObject ruleRatioMetric() throws RecognitionException {
// $ANTLR start "entryRuleBoundAndWeight"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:826:1:
- // entryRuleBoundAndWeight returns [EObject current=null] : iv_ruleBoundAndWeight=
+ // entryRuleBoundAndWeight returns [EObject current=null] :
+ // iv_ruleBoundAndWeight=
// ruleBoundAndWeight EOF ;
public final EObject entryRuleBoundAndWeight() throws RecognitionException {
EObject current = null;
@@ -1957,22 +1983,22 @@ public final EObject entryRuleBoundAndWeight() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:828:2:
// iv_ruleBoundAndWeight= ruleBoundAndWeight EOF
{
- this.newCompositeNode(this.grammarAccess.getBoundAndWeightRule());
- this.pushFollow(FOLLOW_ruleBoundAndWeight_in_entryRuleBoundAndWeight1798);
- iv_ruleBoundAndWeight = this.ruleBoundAndWeight();
+ newCompositeNode(grammarAccess.getBoundAndWeightRule());
+ pushFollow(FOLLOW_ruleBoundAndWeight_in_entryRuleBoundAndWeight1798);
+ iv_ruleBoundAndWeight = ruleBoundAndWeight();
- this.state._fsp--;
+ state._fsp--;
current = iv_ruleBoundAndWeight;
- this.match(this.input, EOF, FOLLOW_EOF_in_entryRuleBoundAndWeight1808);
+ match(input, EOF, FOLLOW_EOF_in_entryRuleBoundAndWeight1808);
}
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -1981,7 +2007,8 @@ public final EObject entryRuleBoundAndWeight() throws RecognitionException {
// $ANTLR start "ruleBoundAndWeight"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:835:1:
- // ruleBoundAndWeight returns [EObject current=null] : (otherlv_0= '<' ( ( ruleMYID ) )
+ // ruleBoundAndWeight returns [EObject current=null] : (otherlv_0= '<' ( (
+ // ruleMYID ) )
// otherlv_2= ',' ( ( ruleMYID ) ) otherlv_4= '>' ) ;
public final EObject ruleBoundAndWeight() throws RecognitionException {
EObject current = null;
@@ -1990,23 +2017,26 @@ public final EObject ruleBoundAndWeight() throws RecognitionException {
Token otherlv_2 = null;
Token otherlv_4 = null;
- this.enterRule();
+ enterRule();
try {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:838:28:
- // ( (otherlv_0= '<' ( ( ruleMYID ) ) otherlv_2= ',' ( ( ruleMYID ) ) otherlv_4= '>' ) )
+ // ( (otherlv_0= '<' ( ( ruleMYID ) ) otherlv_2= ',' ( ( ruleMYID ) ) otherlv_4=
+ // '>' ) )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:839:1:
- // (otherlv_0= '<' ( ( ruleMYID ) ) otherlv_2= ',' ( ( ruleMYID ) ) otherlv_4= '>' )
+ // (otherlv_0= '<' ( ( ruleMYID ) ) otherlv_2= ',' ( ( ruleMYID ) ) otherlv_4=
+ // '>' )
{
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:839:1:
- // (otherlv_0= '<' ( ( ruleMYID ) ) otherlv_2= ',' ( ( ruleMYID ) ) otherlv_4= '>' )
+ // (otherlv_0= '<' ( ( ruleMYID ) ) otherlv_2= ',' ( ( ruleMYID ) ) otherlv_4=
+ // '>' )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:839:3:
- // otherlv_0= '<' ( ( ruleMYID ) ) otherlv_2= ',' ( ( ruleMYID ) ) otherlv_4= '>'
+ // otherlv_0= '<' ( ( ruleMYID ) ) otherlv_2= ',' ( ( ruleMYID ) ) otherlv_4=
+ // '>'
{
- otherlv_0 = (Token) this.match(this.input, 33, FOLLOW_33_in_ruleBoundAndWeight1845);
+ otherlv_0 = (Token) match(input, 33, FOLLOW_33_in_ruleBoundAndWeight1845);
- this.newLeafNode(otherlv_0,
- this.grammarAccess.getBoundAndWeightAccess().getLessThanSignKeyword_0());
+ newLeafNode(otherlv_0, grammarAccess.getBoundAndWeightAccess().getLessThanSignKeyword_0());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:843:1:
// ( ( ruleMYID ) )
@@ -2020,26 +2050,26 @@ public final EObject ruleBoundAndWeight() throws RecognitionException {
{
if (current == null) {
- current = this.createModelElement(this.grammarAccess.getBoundAndWeightRule());
+ current = this.createModelElement(grammarAccess.getBoundAndWeightRule());
}
- this.newCompositeNode(this.grammarAccess.getBoundAndWeightAccess()
- .getUpperBoundNumberCrossReference_1_0());
+ newCompositeNode(
+ grammarAccess.getBoundAndWeightAccess().getUpperBoundNumberCrossReference_1_0());
- this.pushFollow(FOLLOW_ruleMYID_in_ruleBoundAndWeight1868);
- this.ruleMYID();
+ pushFollow(FOLLOW_ruleMYID_in_ruleBoundAndWeight1868);
+ ruleMYID();
- this.state._fsp--;
+ state._fsp--;
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
}
- otherlv_2 = (Token) this.match(this.input, 20, FOLLOW_20_in_ruleBoundAndWeight1880);
+ otherlv_2 = (Token) match(input, 20, FOLLOW_20_in_ruleBoundAndWeight1880);
- this.newLeafNode(otherlv_2, this.grammarAccess.getBoundAndWeightAccess().getCommaKeyword_2());
+ newLeafNode(otherlv_2, grammarAccess.getBoundAndWeightAccess().getCommaKeyword_2());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:862:1:
// ( ( ruleMYID ) )
@@ -2053,38 +2083,37 @@ public final EObject ruleBoundAndWeight() throws RecognitionException {
{
if (current == null) {
- current = this.createModelElement(this.grammarAccess.getBoundAndWeightRule());
+ current = this.createModelElement(grammarAccess.getBoundAndWeightRule());
}
- this.newCompositeNode(
- this.grammarAccess.getBoundAndWeightAccess().getWeightNumberCrossReference_3_0());
+ newCompositeNode(
+ grammarAccess.getBoundAndWeightAccess().getWeightNumberCrossReference_3_0());
- this.pushFollow(FOLLOW_ruleMYID_in_ruleBoundAndWeight1903);
- this.ruleMYID();
+ pushFollow(FOLLOW_ruleMYID_in_ruleBoundAndWeight1903);
+ ruleMYID();
- this.state._fsp--;
+ state._fsp--;
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
}
- otherlv_4 = (Token) this.match(this.input, 34, FOLLOW_34_in_ruleBoundAndWeight1915);
+ otherlv_4 = (Token) match(input, 34, FOLLOW_34_in_ruleBoundAndWeight1915);
- this.newLeafNode(otherlv_4,
- this.grammarAccess.getBoundAndWeightAccess().getGreaterThanSignKeyword_4());
+ newLeafNode(otherlv_4, grammarAccess.getBoundAndWeightAccess().getGreaterThanSignKeyword_4());
}
}
- this.leaveRule();
+ leaveRule();
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -2093,7 +2122,8 @@ public final EObject ruleBoundAndWeight() throws RecognitionException {
// $ANTLR start "entryRuleMetricAndWeight"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:889:1:
- // entryRuleMetricAndWeight returns [EObject current=null] : iv_ruleMetricAndWeight=
+ // entryRuleMetricAndWeight returns [EObject current=null] :
+ // iv_ruleMetricAndWeight=
// ruleMetricAndWeight EOF ;
public final EObject entryRuleMetricAndWeight() throws RecognitionException {
EObject current = null;
@@ -2106,22 +2136,22 @@ public final EObject entryRuleMetricAndWeight() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:891:2:
// iv_ruleMetricAndWeight= ruleMetricAndWeight EOF
{
- this.newCompositeNode(this.grammarAccess.getMetricAndWeightRule());
- this.pushFollow(FOLLOW_ruleMetricAndWeight_in_entryRuleMetricAndWeight1951);
- iv_ruleMetricAndWeight = this.ruleMetricAndWeight();
+ newCompositeNode(grammarAccess.getMetricAndWeightRule());
+ pushFollow(FOLLOW_ruleMetricAndWeight_in_entryRuleMetricAndWeight1951);
+ iv_ruleMetricAndWeight = ruleMetricAndWeight();
- this.state._fsp--;
+ state._fsp--;
current = iv_ruleMetricAndWeight;
- this.match(this.input, EOF, FOLLOW_EOF_in_entryRuleMetricAndWeight1961);
+ match(input, EOF, FOLLOW_EOF_in_entryRuleMetricAndWeight1961);
}
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -2130,7 +2160,8 @@ public final EObject entryRuleMetricAndWeight() throws RecognitionException {
// $ANTLR start "ruleMetricAndWeight"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:898:1:
- // ruleMetricAndWeight returns [EObject current=null] : (otherlv_0= '<' ( ( ruleMYID ) )
+ // ruleMetricAndWeight returns [EObject current=null] : (otherlv_0= '<' ( (
+ // ruleMYID ) )
// otherlv_2= ',' ( ( ruleMYID ) ) otherlv_4= '>' ) ;
public final EObject ruleMetricAndWeight() throws RecognitionException {
EObject current = null;
@@ -2139,23 +2170,26 @@ public final EObject ruleMetricAndWeight() throws RecognitionException {
Token otherlv_2 = null;
Token otherlv_4 = null;
- this.enterRule();
+ enterRule();
try {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:901:28:
- // ( (otherlv_0= '<' ( ( ruleMYID ) ) otherlv_2= ',' ( ( ruleMYID ) ) otherlv_4= '>' ) )
+ // ( (otherlv_0= '<' ( ( ruleMYID ) ) otherlv_2= ',' ( ( ruleMYID ) ) otherlv_4=
+ // '>' ) )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:902:1:
- // (otherlv_0= '<' ( ( ruleMYID ) ) otherlv_2= ',' ( ( ruleMYID ) ) otherlv_4= '>' )
+ // (otherlv_0= '<' ( ( ruleMYID ) ) otherlv_2= ',' ( ( ruleMYID ) ) otherlv_4=
+ // '>' )
{
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:902:1:
- // (otherlv_0= '<' ( ( ruleMYID ) ) otherlv_2= ',' ( ( ruleMYID ) ) otherlv_4= '>' )
+ // (otherlv_0= '<' ( ( ruleMYID ) ) otherlv_2= ',' ( ( ruleMYID ) ) otherlv_4=
+ // '>' )
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:902:3:
- // otherlv_0= '<' ( ( ruleMYID ) ) otherlv_2= ',' ( ( ruleMYID ) ) otherlv_4= '>'
+ // otherlv_0= '<' ( ( ruleMYID ) ) otherlv_2= ',' ( ( ruleMYID ) ) otherlv_4=
+ // '>'
{
- otherlv_0 = (Token) this.match(this.input, 33, FOLLOW_33_in_ruleMetricAndWeight1998);
+ otherlv_0 = (Token) match(input, 33, FOLLOW_33_in_ruleMetricAndWeight1998);
- this.newLeafNode(otherlv_0,
- this.grammarAccess.getMetricAndWeightAccess().getLessThanSignKeyword_0());
+ newLeafNode(otherlv_0, grammarAccess.getMetricAndWeightAccess().getLessThanSignKeyword_0());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:906:1:
// ( ( ruleMYID ) )
@@ -2169,26 +2203,26 @@ public final EObject ruleMetricAndWeight() throws RecognitionException {
{
if (current == null) {
- current = this.createModelElement(this.grammarAccess.getMetricAndWeightRule());
+ current = this.createModelElement(grammarAccess.getMetricAndWeightRule());
}
- this.newCompositeNode(
- this.grammarAccess.getMetricAndWeightAccess().getMetricMetricCrossReference_1_0());
+ newCompositeNode(
+ grammarAccess.getMetricAndWeightAccess().getMetricMetricCrossReference_1_0());
- this.pushFollow(FOLLOW_ruleMYID_in_ruleMetricAndWeight2021);
- this.ruleMYID();
+ pushFollow(FOLLOW_ruleMYID_in_ruleMetricAndWeight2021);
+ ruleMYID();
- this.state._fsp--;
+ state._fsp--;
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
}
- otherlv_2 = (Token) this.match(this.input, 20, FOLLOW_20_in_ruleMetricAndWeight2033);
+ otherlv_2 = (Token) match(input, 20, FOLLOW_20_in_ruleMetricAndWeight2033);
- this.newLeafNode(otherlv_2, this.grammarAccess.getMetricAndWeightAccess().getCommaKeyword_2());
+ newLeafNode(otherlv_2, grammarAccess.getMetricAndWeightAccess().getCommaKeyword_2());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:925:1:
// ( ( ruleMYID ) )
@@ -2202,38 +2236,37 @@ public final EObject ruleMetricAndWeight() throws RecognitionException {
{
if (current == null) {
- current = this.createModelElement(this.grammarAccess.getMetricAndWeightRule());
+ current = this.createModelElement(grammarAccess.getMetricAndWeightRule());
}
- this.newCompositeNode(
- this.grammarAccess.getMetricAndWeightAccess().getWeightNumberCrossReference_3_0());
+ newCompositeNode(
+ grammarAccess.getMetricAndWeightAccess().getWeightNumberCrossReference_3_0());
- this.pushFollow(FOLLOW_ruleMYID_in_ruleMetricAndWeight2056);
- this.ruleMYID();
+ pushFollow(FOLLOW_ruleMYID_in_ruleMetricAndWeight2056);
+ ruleMYID();
- this.state._fsp--;
+ state._fsp--;
- this.afterParserOrEnumRuleCall();
+ afterParserOrEnumRuleCall();
}
}
- otherlv_4 = (Token) this.match(this.input, 34, FOLLOW_34_in_ruleMetricAndWeight2068);
+ otherlv_4 = (Token) match(input, 34, FOLLOW_34_in_ruleMetricAndWeight2068);
- this.newLeafNode(otherlv_4,
- this.grammarAccess.getMetricAndWeightAccess().getGreaterThanSignKeyword_4());
+ newLeafNode(otherlv_4, grammarAccess.getMetricAndWeightAccess().getGreaterThanSignKeyword_4());
}
}
- this.leaveRule();
+ leaveRule();
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -2254,22 +2287,22 @@ public final String entryRuleMYID() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:954:2:
// iv_ruleMYID= ruleMYID EOF
{
- this.newCompositeNode(this.grammarAccess.getMYIDRule());
- this.pushFollow(FOLLOW_ruleMYID_in_entryRuleMYID2105);
- iv_ruleMYID = this.ruleMYID();
+ newCompositeNode(grammarAccess.getMYIDRule());
+ pushFollow(FOLLOW_ruleMYID_in_entryRuleMYID2105);
+ iv_ruleMYID = ruleMYID();
- this.state._fsp--;
+ state._fsp--;
current = iv_ruleMYID.getText();
- this.match(this.input, EOF, FOLLOW_EOF_in_entryRuleMYID2116);
+ match(input, EOF, FOLLOW_EOF_in_entryRuleMYID2116);
}
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
@@ -2278,7 +2311,8 @@ public final String entryRuleMYID() throws RecognitionException {
// $ANTLR start "ruleMYID"
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:961:1:
- // ruleMYID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0=
+ // ruleMYID returns [AntlrDatatypeRuleToken current=new
+ // AntlrDatatypeRuleToken()] : (this_ID_0=
// RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ;
public final AntlrDatatypeRuleToken ruleMYID() throws RecognitionException {
final AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
@@ -2287,7 +2321,7 @@ public final AntlrDatatypeRuleToken ruleMYID() throws RecognitionException {
Token kw = null;
Token this_ID_2 = null;
- this.enterRule();
+ enterRule();
try {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:964:28:
@@ -2300,17 +2334,17 @@ public final AntlrDatatypeRuleToken ruleMYID() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:965:6:
// this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )*
{
- this_ID_0 = (Token) this.match(this.input, RULE_ID, FOLLOW_RULE_ID_in_ruleMYID2156);
+ this_ID_0 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleMYID2156);
current.merge(this_ID_0);
- this.newLeafNode(this_ID_0, this.grammarAccess.getMYIDAccess().getIDTerminalRuleCall_0());
+ newLeafNode(this_ID_0, grammarAccess.getMYIDAccess().getIDTerminalRuleCall_0());
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:972:1:
// (kw= '.' this_ID_2= RULE_ID )*
loop10: do {
int alt10 = 2;
- final int LA10_0 = this.input.LA(1);
+ final int LA10_0 = input.LA(1);
if ((LA10_0 == 35)) {
alt10 = 1;
@@ -2321,16 +2355,16 @@ public final AntlrDatatypeRuleToken ruleMYID() throws RecognitionException {
// ../org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/parser/antlr/internal/InternalMetricDSL.g:973:2:
// kw= '.' this_ID_2= RULE_ID
{
- kw = (Token) this.match(this.input, 35, FOLLOW_35_in_ruleMYID2175);
+ kw = (Token) match(input, 35, FOLLOW_35_in_ruleMYID2175);
current.merge(kw);
- this.newLeafNode(kw, this.grammarAccess.getMYIDAccess().getFullStopKeyword_1_0());
+ newLeafNode(kw, grammarAccess.getMYIDAccess().getFullStopKeyword_1_0());
- this_ID_2 = (Token) this.match(this.input, RULE_ID, FOLLOW_RULE_ID_in_ruleMYID2190);
+ this_ID_2 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleMYID2190);
current.merge(this_ID_2);
- this.newLeafNode(this_ID_2, this.grammarAccess.getMYIDAccess().getIDTerminalRuleCall_1_1());
+ newLeafNode(this_ID_2, grammarAccess.getMYIDAccess().getIDTerminalRuleCall_1_1());
}
break;
@@ -2344,12 +2378,12 @@ public final AntlrDatatypeRuleToken ruleMYID() throws RecognitionException {
}
- this.leaveRule();
+ leaveRule();
}
catch (final RecognitionException re) {
- this.recover(this.input, re);
- this.appendSkippedTokens();
+ recover(input, re);
+ appendSkippedTokens();
} finally {
}
return current;
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/serializer/MetricDSLSemanticSequencer.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/serializer/MetricDSLSemanticSequencer.java
index 02397ae..7ffddb1 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/serializer/MetricDSLSemanticSequencer.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/serializer/MetricDSLSemanticSequencer.java
@@ -31,85 +31,81 @@ public void createSequence(final EObject context, final EObject semanticObject)
if (semanticObject.eClass().getEPackage() == MetricDSLPackage.eINSTANCE) {
switch (semanticObject.eClass().getClassifierID()) {
case MetricDSLPackage.BOUND_AND_WEIGHT:
- if (context == this.grammarAccess.getBoundAndWeightRule()) {
- this.sequence_BoundAndWeight(context, (BoundAndWeight) semanticObject);
+ if (context == grammarAccess.getBoundAndWeightRule()) {
+ sequence_BoundAndWeight(context, (BoundAndWeight) semanticObject);
return;
} else {
break;
}
case MetricDSLPackage.CONSTANT:
- if (context == this.grammarAccess.getConstantRule() || context == this.grammarAccess.getNumberRule()) {
- this.sequence_Constant(context, (Constant) semanticObject);
+ if ((context == grammarAccess.getConstantRule()) || (context == grammarAccess.getNumberRule())) {
+ sequence_Constant(context, (Constant) semanticObject);
return;
} else {
break;
}
case MetricDSLPackage.EXTERNAL_METRIC:
- if (context == this.grammarAccess.getExternalMetricRule()
- || context == this.grammarAccess.getMetricRule()) {
- this.sequence_ExternalMetric(context, (ExternalMetric) semanticObject);
+ if ((context == grammarAccess.getExternalMetricRule()) || (context == grammarAccess.getMetricRule())) {
+ sequence_ExternalMetric(context, (ExternalMetric) semanticObject);
return;
} else {
break;
}
case MetricDSLPackage.INTERNAL_METRIC:
- if (context == this.grammarAccess.getInternalMetricRule()
- || context == this.grammarAccess.getMetricRule()) {
- this.sequence_InternalMetric(context, (InternalMetric) semanticObject);
+ if ((context == grammarAccess.getInternalMetricRule()) || (context == grammarAccess.getMetricRule())) {
+ sequence_InternalMetric(context, (InternalMetric) semanticObject);
return;
} else {
break;
}
case MetricDSLPackage.METRIC_AND_WEIGHT:
- if (context == this.grammarAccess.getMetricAndWeightRule()) {
- this.sequence_MetricAndWeight(context, (MetricAndWeight) semanticObject);
+ if (context == grammarAccess.getMetricAndWeightRule()) {
+ sequence_MetricAndWeight(context, (MetricAndWeight) semanticObject);
return;
} else {
break;
}
case MetricDSLPackage.METRIC_MODEL:
- if (context == this.grammarAccess.getMetricModelRule()) {
- this.sequence_MetricModel(context, (MetricModel) semanticObject);
+ if (context == grammarAccess.getMetricModelRule()) {
+ sequence_MetricModel(context, (MetricModel) semanticObject);
return;
} else {
break;
}
case MetricDSLPackage.PARAMETER:
- if (context == this.grammarAccess.getNumberRule() || context == this.grammarAccess.getParameterRule()) {
- this.sequence_Parameter(context, (Parameter) semanticObject);
+ if ((context == grammarAccess.getNumberRule()) || (context == grammarAccess.getParameterRule())) {
+ sequence_Parameter(context, (Parameter) semanticObject);
return;
} else {
break;
}
case MetricDSLPackage.RATIO_METRIC:
- if (context == this.grammarAccess.getMetricDefinitionRule()
- || context == this.grammarAccess.getRatioMetricRule()) {
- this.sequence_RatioMetric(context, (RatioMetric) semanticObject);
+ if ((context == grammarAccess.getMetricDefinitionRule())
+ || (context == grammarAccess.getRatioMetricRule())) {
+ sequence_RatioMetric(context, (RatioMetric) semanticObject);
return;
} else {
break;
}
case MetricDSLPackage.STEPWISE_METRIC:
- if (context == this.grammarAccess.getMetricDefinitionRule()
- || context == this.grammarAccess.getStepwiseMetricRule()) {
- this.sequence_StepwiseMetric(context, (StepwiseMetric) semanticObject);
+ if ((context == grammarAccess.getMetricDefinitionRule())
+ || (context == grammarAccess.getStepwiseMetricRule())) {
+ sequence_StepwiseMetric(context, (StepwiseMetric) semanticObject);
return;
} else {
break;
}
case MetricDSLPackage.WEIGHTED_METRIC:
- if (context == this.grammarAccess.getMetricDefinitionRule()
- || context == this.grammarAccess.getWeightedMetricRule()) {
- this.sequence_WeightedMetric(context, (WeightedMetric) semanticObject);
+ if ((context == grammarAccess.getMetricDefinitionRule())
+ || (context == grammarAccess.getWeightedMetricRule())) {
+ sequence_WeightedMetric(context, (WeightedMetric) semanticObject);
return;
- } else {
- break;
}
+ break;
}
}
- if (this.errorAcceptor != null) {
- this.errorAcceptor
- .accept(this.diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
+ if (errorAcceptor != null) {
+ errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
}
@@ -117,23 +113,23 @@ public void createSequence(final EObject context, final EObject semanticObject)
* Constraint: (upperBound=[Number|MYID] weight=[Number|MYID])
*/
protected void sequence_BoundAndWeight(final EObject context, final BoundAndWeight semanticObject) {
- if (this.errorAcceptor != null) {
- if (this.transientValues.isValueTransient(semanticObject,
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject,
MetricDSLPackage.Literals.BOUND_AND_WEIGHT__UPPER_BOUND) == ValueTransient.YES) {
- this.errorAcceptor.accept(this.diagnosticProvider.createFeatureValueMissing(semanticObject,
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject,
MetricDSLPackage.Literals.BOUND_AND_WEIGHT__UPPER_BOUND));
}
- if (this.transientValues.isValueTransient(semanticObject,
+ if (transientValues.isValueTransient(semanticObject,
MetricDSLPackage.Literals.BOUND_AND_WEIGHT__WEIGHT) == ValueTransient.YES) {
- this.errorAcceptor.accept(this.diagnosticProvider.createFeatureValueMissing(semanticObject,
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject,
MetricDSLPackage.Literals.BOUND_AND_WEIGHT__WEIGHT));
}
}
- final INodesForEObjectProvider nodes = this.createNodeProvider(semanticObject);
+ final INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
final SequenceFeeder feeder = this.createSequencerFeeder(semanticObject, nodes);
- feeder.accept(this.grammarAccess.getBoundAndWeightAccess().getUpperBoundNumberMYIDParserRuleCall_1_0_1(),
+ feeder.accept(grammarAccess.getBoundAndWeightAccess().getUpperBoundNumberMYIDParserRuleCall_1_0_1(),
semanticObject.getUpperBound());
- feeder.accept(this.grammarAccess.getBoundAndWeightAccess().getWeightNumberMYIDParserRuleCall_3_0_1(),
+ feeder.accept(grammarAccess.getBoundAndWeightAccess().getWeightNumberMYIDParserRuleCall_3_0_1(),
semanticObject.getWeight());
feeder.finish();
}
@@ -142,22 +138,22 @@ protected void sequence_BoundAndWeight(final EObject context, final BoundAndWeig
* Constraint: (name=MYID value=DOUBLE)
*/
protected void sequence_Constant(final EObject context, final Constant semanticObject) {
- if (this.errorAcceptor != null) {
- if (this.transientValues.isValueTransient(semanticObject,
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject,
MetricDSLPackage.Literals.NUMBER__NAME) == ValueTransient.YES) {
- this.errorAcceptor.accept(this.diagnosticProvider.createFeatureValueMissing(semanticObject,
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject,
MetricDSLPackage.Literals.NUMBER__NAME));
}
- if (this.transientValues.isValueTransient(semanticObject,
+ if (transientValues.isValueTransient(semanticObject,
MetricDSLPackage.Literals.CONSTANT__VALUE) == ValueTransient.YES) {
- this.errorAcceptor.accept(this.diagnosticProvider.createFeatureValueMissing(semanticObject,
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject,
MetricDSLPackage.Literals.CONSTANT__VALUE));
}
}
- final INodesForEObjectProvider nodes = this.createNodeProvider(semanticObject);
+ final INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
final SequenceFeeder feeder = this.createSequencerFeeder(semanticObject, nodes);
- feeder.accept(this.grammarAccess.getConstantAccess().getNameMYIDParserRuleCall_1_0(), semanticObject.getName());
- feeder.accept(this.grammarAccess.getConstantAccess().getValueDOUBLETerminalRuleCall_3_0(),
+ feeder.accept(grammarAccess.getConstantAccess().getNameMYIDParserRuleCall_1_0(), semanticObject.getName());
+ feeder.accept(grammarAccess.getConstantAccess().getValueDOUBLETerminalRuleCall_3_0(),
semanticObject.getValue());
feeder.finish();
}
@@ -166,17 +162,14 @@ protected void sequence_Constant(final EObject context, final Constant semanticO
* Constraint: name=MYID
*/
protected void sequence_ExternalMetric(final EObject context, final ExternalMetric semanticObject) {
- if (this.errorAcceptor != null) {
- if (this.transientValues.isValueTransient(semanticObject,
- MetricDSLPackage.Literals.METRIC__NAME) == ValueTransient.YES) {
- this.errorAcceptor.accept(this.diagnosticProvider.createFeatureValueMissing(semanticObject,
- MetricDSLPackage.Literals.METRIC__NAME));
- }
+ if ((errorAcceptor != null) && (transientValues.isValueTransient(semanticObject,
+ MetricDSLPackage.Literals.METRIC__NAME) == ValueTransient.YES)) {
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject,
+ MetricDSLPackage.Literals.METRIC__NAME));
}
- final INodesForEObjectProvider nodes = this.createNodeProvider(semanticObject);
+ final INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
final SequenceFeeder feeder = this.createSequencerFeeder(semanticObject, nodes);
- feeder.accept(this.grammarAccess.getExternalMetricAccess().getNameMYIDParserRuleCall_0(),
- semanticObject.getName());
+ feeder.accept(grammarAccess.getExternalMetricAccess().getNameMYIDParserRuleCall_0(), semanticObject.getName());
feeder.finish();
}
@@ -185,76 +178,77 @@ protected void sequence_ExternalMetric(final EObject context, final ExternalMetr
* definition=MetricDefinition)
*/
protected void sequence_InternalMetric(final EObject context, final InternalMetric semanticObject) {
- this.genericSequencer.createSequence(context, semanticObject);
+ genericSequencer.createSequence(context, semanticObject);
}
/**
* Constraint: (metric=[Metric|MYID] weight=[Number|MYID])
*/
protected void sequence_MetricAndWeight(final EObject context, final MetricAndWeight semanticObject) {
- if (this.errorAcceptor != null) {
- if (this.transientValues.isValueTransient(semanticObject,
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject,
MetricDSLPackage.Literals.METRIC_AND_WEIGHT__METRIC) == ValueTransient.YES) {
- this.errorAcceptor.accept(this.diagnosticProvider.createFeatureValueMissing(semanticObject,
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject,
MetricDSLPackage.Literals.METRIC_AND_WEIGHT__METRIC));
}
- if (this.transientValues.isValueTransient(semanticObject,
+ if (transientValues.isValueTransient(semanticObject,
MetricDSLPackage.Literals.METRIC_AND_WEIGHT__WEIGHT) == ValueTransient.YES) {
- this.errorAcceptor.accept(this.diagnosticProvider.createFeatureValueMissing(semanticObject,
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject,
MetricDSLPackage.Literals.METRIC_AND_WEIGHT__WEIGHT));
}
}
- final INodesForEObjectProvider nodes = this.createNodeProvider(semanticObject);
+ final INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
final SequenceFeeder feeder = this.createSequencerFeeder(semanticObject, nodes);
- feeder.accept(this.grammarAccess.getMetricAndWeightAccess().getMetricMetricMYIDParserRuleCall_1_0_1(),
+ feeder.accept(grammarAccess.getMetricAndWeightAccess().getMetricMetricMYIDParserRuleCall_1_0_1(),
semanticObject.getMetric());
- feeder.accept(this.grammarAccess.getMetricAndWeightAccess().getWeightNumberMYIDParserRuleCall_3_0_1(),
+ feeder.accept(grammarAccess.getMetricAndWeightAccess().getWeightNumberMYIDParserRuleCall_3_0_1(),
semanticObject.getWeight());
feeder.finish();
}
/**
- * Constraint: (importURI+=STRING* metrics+=ExternalMetric* metrics+=InternalMetric+)
+ * Constraint: (importURI+=STRING* metrics+=ExternalMetric*
+ * metrics+=InternalMetric+)
*/
protected void sequence_MetricModel(final EObject context, final MetricModel semanticObject) {
- this.genericSequencer.createSequence(context, semanticObject);
+ genericSequencer.createSequence(context, semanticObject);
}
/**
- * Constraint: (name=MYID shortname=STRING description=STRING defaultValue=DOUBLE)
+ * Constraint: (name=MYID shortname=STRING description=STRING
+ * defaultValue=DOUBLE)
*/
protected void sequence_Parameter(final EObject context, final Parameter semanticObject) {
- if (this.errorAcceptor != null) {
- if (this.transientValues.isValueTransient(semanticObject,
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject,
MetricDSLPackage.Literals.NUMBER__NAME) == ValueTransient.YES) {
- this.errorAcceptor.accept(this.diagnosticProvider.createFeatureValueMissing(semanticObject,
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject,
MetricDSLPackage.Literals.NUMBER__NAME));
}
- if (this.transientValues.isValueTransient(semanticObject,
+ if (transientValues.isValueTransient(semanticObject,
MetricDSLPackage.Literals.PARAMETER__SHORTNAME) == ValueTransient.YES) {
- this.errorAcceptor.accept(this.diagnosticProvider.createFeatureValueMissing(semanticObject,
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject,
MetricDSLPackage.Literals.PARAMETER__SHORTNAME));
}
- if (this.transientValues.isValueTransient(semanticObject,
+ if (transientValues.isValueTransient(semanticObject,
MetricDSLPackage.Literals.PARAMETER__DESCRIPTION) == ValueTransient.YES) {
- this.errorAcceptor.accept(this.diagnosticProvider.createFeatureValueMissing(semanticObject,
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject,
MetricDSLPackage.Literals.PARAMETER__DESCRIPTION));
}
- if (this.transientValues.isValueTransient(semanticObject,
+ if (transientValues.isValueTransient(semanticObject,
MetricDSLPackage.Literals.PARAMETER__DEFAULT_VALUE) == ValueTransient.YES) {
- this.errorAcceptor.accept(this.diagnosticProvider.createFeatureValueMissing(semanticObject,
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject,
MetricDSLPackage.Literals.PARAMETER__DEFAULT_VALUE));
}
}
- final INodesForEObjectProvider nodes = this.createNodeProvider(semanticObject);
+ final INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
final SequenceFeeder feeder = this.createSequencerFeeder(semanticObject, nodes);
- feeder.accept(this.grammarAccess.getParameterAccess().getNameMYIDParserRuleCall_1_0(),
- semanticObject.getName());
- feeder.accept(this.grammarAccess.getParameterAccess().getShortnameSTRINGTerminalRuleCall_3_0(),
+ feeder.accept(grammarAccess.getParameterAccess().getNameMYIDParserRuleCall_1_0(), semanticObject.getName());
+ feeder.accept(grammarAccess.getParameterAccess().getShortnameSTRINGTerminalRuleCall_3_0(),
semanticObject.getShortname());
- feeder.accept(this.grammarAccess.getParameterAccess().getDescriptionSTRINGTerminalRuleCall_5_0(),
+ feeder.accept(grammarAccess.getParameterAccess().getDescriptionSTRINGTerminalRuleCall_5_0(),
semanticObject.getDescription());
- feeder.accept(this.grammarAccess.getParameterAccess().getDefaultValueDOUBLETerminalRuleCall_7_0(),
+ feeder.accept(grammarAccess.getParameterAccess().getDefaultValueDOUBLETerminalRuleCall_7_0(),
semanticObject.getDefaultValue());
feeder.finish();
}
@@ -263,23 +257,23 @@ protected void sequence_Parameter(final EObject context, final Parameter semanti
* Constraint: (nominatorMetric=[Metric|MYID] denominatorMetric=[Metric|MYID])
*/
protected void sequence_RatioMetric(final EObject context, final RatioMetric semanticObject) {
- if (this.errorAcceptor != null) {
- if (this.transientValues.isValueTransient(semanticObject,
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject,
MetricDSLPackage.Literals.RATIO_METRIC__NOMINATOR_METRIC) == ValueTransient.YES) {
- this.errorAcceptor.accept(this.diagnosticProvider.createFeatureValueMissing(semanticObject,
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject,
MetricDSLPackage.Literals.RATIO_METRIC__NOMINATOR_METRIC));
}
- if (this.transientValues.isValueTransient(semanticObject,
+ if (transientValues.isValueTransient(semanticObject,
MetricDSLPackage.Literals.RATIO_METRIC__DENOMINATOR_METRIC) == ValueTransient.YES) {
- this.errorAcceptor.accept(this.diagnosticProvider.createFeatureValueMissing(semanticObject,
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject,
MetricDSLPackage.Literals.RATIO_METRIC__DENOMINATOR_METRIC));
}
}
- final INodesForEObjectProvider nodes = this.createNodeProvider(semanticObject);
+ final INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
final SequenceFeeder feeder = this.createSequencerFeeder(semanticObject, nodes);
- feeder.accept(this.grammarAccess.getRatioMetricAccess().getNominatorMetricMetricMYIDParserRuleCall_2_0_1(),
+ feeder.accept(grammarAccess.getRatioMetricAccess().getNominatorMetricMetricMYIDParserRuleCall_2_0_1(),
semanticObject.getNominatorMetric());
- feeder.accept(this.grammarAccess.getRatioMetricAccess().getDenominatorMetricMetricMYIDParserRuleCall_4_0_1(),
+ feeder.accept(grammarAccess.getRatioMetricAccess().getDenominatorMetricMetricMYIDParserRuleCall_4_0_1(),
semanticObject.getDenominatorMetric());
feeder.finish();
}
@@ -288,13 +282,13 @@ protected void sequence_RatioMetric(final EObject context, final RatioMetric sem
* Constraint: (innerMetric=[Metric|MYID] steps+=BoundAndWeight*)
*/
protected void sequence_StepwiseMetric(final EObject context, final StepwiseMetric semanticObject) {
- this.genericSequencer.createSequence(context, semanticObject);
+ genericSequencer.createSequence(context, semanticObject);
}
/**
* Constraint: weights+=MetricAndWeight+
*/
protected void sequence_WeightedMetric(final EObject context, final WeightedMetric semanticObject) {
- this.genericSequencer.createSequence(context, semanticObject);
+ genericSequencer.createSequence(context, semanticObject);
}
}
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/serializer/MetricDSLSyntacticSequencer.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/serializer/MetricDSLSyntacticSequencer.java
index a8b66f8..a80fdf4 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/serializer/MetricDSLSyntacticSequencer.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/serializer/MetricDSLSyntacticSequencer.java
@@ -24,14 +24,13 @@ public class MetricDSLSyntacticSequencer extends AbstractSyntacticSequencer {
@Inject
protected void init(final IGrammarAccess access) {
- this.grammarAccess = (MetricDSLGrammarAccess) access;
- this.match_InternalMetric___ParametersKeyword_8_0_LeftCurlyBracketKeyword_8_1_RightCurlyBracketKeyword_8_3__q = new GroupAlias(
+ grammarAccess = (MetricDSLGrammarAccess) access;
+ match_InternalMetric___ParametersKeyword_8_0_LeftCurlyBracketKeyword_8_1_RightCurlyBracketKeyword_8_3__q = new GroupAlias(
false, true,
- new TokenAlias(false, false, this.grammarAccess.getInternalMetricAccess().getParametersKeyword_8_0()),
+ new TokenAlias(false, false, grammarAccess.getInternalMetricAccess().getParametersKeyword_8_0()),
+ new TokenAlias(false, false, grammarAccess.getInternalMetricAccess().getLeftCurlyBracketKeyword_8_1()),
new TokenAlias(false, false,
- this.grammarAccess.getInternalMetricAccess().getLeftCurlyBracketKeyword_8_1()),
- new TokenAlias(false, false,
- this.grammarAccess.getInternalMetricAccess().getRightCurlyBracketKeyword_8_3()));
+ grammarAccess.getInternalMetricAccess().getRightCurlyBracketKeyword_8_3()));
}
@Override
@@ -46,15 +45,15 @@ protected void emitUnassignedTokens(final EObject semanticObject, final ISynTran
if (transition.getAmbiguousSyntaxes().isEmpty()) {
return;
}
- final List transitionNodes = this.collectNodes(fromNode, toNode);
+ final List transitionNodes = collectNodes(fromNode, toNode);
for (final AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
- final List syntaxNodes = this.getNodesFor(transitionNodes, syntax);
- if (this.match_InternalMetric___ParametersKeyword_8_0_LeftCurlyBracketKeyword_8_1_RightCurlyBracketKeyword_8_3__q
+ final List syntaxNodes = getNodesFor(transitionNodes, syntax);
+ if (match_InternalMetric___ParametersKeyword_8_0_LeftCurlyBracketKeyword_8_1_RightCurlyBracketKeyword_8_3__q
.equals(syntax)) {
- this.emit_InternalMetric___ParametersKeyword_8_0_LeftCurlyBracketKeyword_8_1_RightCurlyBracketKeyword_8_3__q(
- semanticObject, this.getLastNavigableState(), syntaxNodes);
+ emit_InternalMetric___ParametersKeyword_8_0_LeftCurlyBracketKeyword_8_1_RightCurlyBracketKeyword_8_3__q(
+ semanticObject, getLastNavigableState(), syntaxNodes);
} else {
- this.acceptNodes(this.getLastNavigableState(), syntaxNodes);
+ this.acceptNodes(getLastNavigableState(), syntaxNodes);
}
}
}
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/services/MetricDSLGrammarAccess.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/services/MetricDSLGrammarAccess.java
index 1fa45c0..23fef66 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/services/MetricDSLGrammarAccess.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/services/MetricDSLGrammarAccess.java
@@ -26,954 +26,948 @@
public class MetricDSLGrammarAccess extends AbstractGrammarElementFinder {
public class MetricModelElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil
- .findRuleForName(MetricDSLGrammarAccess.this.getGrammar(), "MetricModel");
- private final Group cGroup = (Group) this.rule.eContents().get(1);
- private final Group cGroup_0 = (Group) this.cGroup.eContents().get(0);
- private final Keyword cImportKeyword_0_0 = (Keyword) this.cGroup_0.eContents().get(0);
- private final Assignment cImportURIAssignment_0_1 = (Assignment) this.cGroup_0.eContents().get(1);
- private final RuleCall cImportURISTRINGTerminalRuleCall_0_1_0 = (RuleCall) this.cImportURIAssignment_0_1
- .eContents().get(0);
- private final Keyword cSemicolonKeyword_0_2 = (Keyword) this.cGroup_0.eContents().get(2);
- private final Group cGroup_1 = (Group) this.cGroup.eContents().get(1);
- private final Keyword cExternKeyword_1_0 = (Keyword) this.cGroup_1.eContents().get(0);
- private final Assignment cMetricsAssignment_1_1 = (Assignment) this.cGroup_1.eContents().get(1);
- private final RuleCall cMetricsExternalMetricParserRuleCall_1_1_0 = (RuleCall) this.cMetricsAssignment_1_1
- .eContents().get(0);
- private final Keyword cSemicolonKeyword_1_2 = (Keyword) this.cGroup_1.eContents().get(2);
- private final Keyword cMetricsKeyword_2 = (Keyword) this.cGroup.eContents().get(2);
- private final Keyword cLeftCurlyBracketKeyword_3 = (Keyword) this.cGroup.eContents().get(3);
- private final Assignment cMetricsAssignment_4 = (Assignment) this.cGroup.eContents().get(4);
- private final RuleCall cMetricsInternalMetricParserRuleCall_4_0 = (RuleCall) this.cMetricsAssignment_4
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "MetricModel");
+ private final Group cGroup = (Group) rule.eContents().get(1);
+ private final Group cGroup_0 = (Group) cGroup.eContents().get(0);
+ private final Keyword cImportKeyword_0_0 = (Keyword) cGroup_0.eContents().get(0);
+ private final Assignment cImportURIAssignment_0_1 = (Assignment) cGroup_0.eContents().get(1);
+ private final RuleCall cImportURISTRINGTerminalRuleCall_0_1_0 = (RuleCall) cImportURIAssignment_0_1.eContents()
+ .get(0);
+ private final Keyword cSemicolonKeyword_0_2 = (Keyword) cGroup_0.eContents().get(2);
+ private final Group cGroup_1 = (Group) cGroup.eContents().get(1);
+ private final Keyword cExternKeyword_1_0 = (Keyword) cGroup_1.eContents().get(0);
+ private final Assignment cMetricsAssignment_1_1 = (Assignment) cGroup_1.eContents().get(1);
+ private final RuleCall cMetricsExternalMetricParserRuleCall_1_1_0 = (RuleCall) cMetricsAssignment_1_1
.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_5 = (Keyword) this.cGroup.eContents().get(5);
+ private final Keyword cSemicolonKeyword_1_2 = (Keyword) cGroup_1.eContents().get(2);
+ private final Keyword cMetricsKeyword_2 = (Keyword) cGroup.eContents().get(2);
+ private final Keyword cLeftCurlyBracketKeyword_3 = (Keyword) cGroup.eContents().get(3);
+ private final Assignment cMetricsAssignment_4 = (Assignment) cGroup.eContents().get(4);
+ private final RuleCall cMetricsInternalMetricParserRuleCall_4_0 = (RuleCall) cMetricsAssignment_4.eContents()
+ .get(0);
+ private final Keyword cRightCurlyBracketKeyword_5 = (Keyword) cGroup.eContents().get(5);
// MetricModel:
- // ("import" importURI+=STRING ";")* ("extern" metrics+=ExternalMetric ";")* "Metrics" "{"
+ // ("import" importURI+=STRING ";")* ("extern" metrics+=ExternalMetric ";")*
+ // "Metrics" "{"
// metrics+=InternalMetric+ "}";
@Override
public ParserRule getRule() {
- return this.rule;
+ return rule;
}
- // ("import" importURI+=STRING ";")* ("extern" metrics+=ExternalMetric ";")* "Metrics" "{"
+ // ("import" importURI+=STRING ";")* ("extern" metrics+=ExternalMetric ";")*
+ // "Metrics" "{"
// metrics+=InternalMetric+ "}"
public Group getGroup() {
- return this.cGroup;
+ return cGroup;
}
// ("import" importURI+=STRING ";")*
public Group getGroup_0() {
- return this.cGroup_0;
+ return cGroup_0;
}
// "import"
public Keyword getImportKeyword_0_0() {
- return this.cImportKeyword_0_0;
+ return cImportKeyword_0_0;
}
// importURI+=STRING
public Assignment getImportURIAssignment_0_1() {
- return this.cImportURIAssignment_0_1;
+ return cImportURIAssignment_0_1;
}
// STRING
public RuleCall getImportURISTRINGTerminalRuleCall_0_1_0() {
- return this.cImportURISTRINGTerminalRuleCall_0_1_0;
+ return cImportURISTRINGTerminalRuleCall_0_1_0;
}
// ";"
public Keyword getSemicolonKeyword_0_2() {
- return this.cSemicolonKeyword_0_2;
+ return cSemicolonKeyword_0_2;
}
// ("extern" metrics+=ExternalMetric ";")*
public Group getGroup_1() {
- return this.cGroup_1;
+ return cGroup_1;
}
// "extern"
public Keyword getExternKeyword_1_0() {
- return this.cExternKeyword_1_0;
+ return cExternKeyword_1_0;
}
// metrics+=ExternalMetric
public Assignment getMetricsAssignment_1_1() {
- return this.cMetricsAssignment_1_1;
+ return cMetricsAssignment_1_1;
}
// ExternalMetric
public RuleCall getMetricsExternalMetricParserRuleCall_1_1_0() {
- return this.cMetricsExternalMetricParserRuleCall_1_1_0;
+ return cMetricsExternalMetricParserRuleCall_1_1_0;
}
// ";"
public Keyword getSemicolonKeyword_1_2() {
- return this.cSemicolonKeyword_1_2;
+ return cSemicolonKeyword_1_2;
}
// "Metrics"
public Keyword getMetricsKeyword_2() {
- return this.cMetricsKeyword_2;
+ return cMetricsKeyword_2;
}
// "{"
public Keyword getLeftCurlyBracketKeyword_3() {
- return this.cLeftCurlyBracketKeyword_3;
+ return cLeftCurlyBracketKeyword_3;
}
// metrics+=InternalMetric+
public Assignment getMetricsAssignment_4() {
- return this.cMetricsAssignment_4;
+ return cMetricsAssignment_4;
}
// InternalMetric
public RuleCall getMetricsInternalMetricParserRuleCall_4_0() {
- return this.cMetricsInternalMetricParserRuleCall_4_0;
+ return cMetricsInternalMetricParserRuleCall_4_0;
}
// "}"
public Keyword getRightCurlyBracketKeyword_5() {
- return this.cRightCurlyBracketKeyword_5;
+ return cRightCurlyBracketKeyword_5;
}
}
public class MetricElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil
- .findRuleForName(MetricDSLGrammarAccess.this.getGrammar(), "Metric");
- private final Alternatives cAlternatives = (Alternatives) this.rule.eContents().get(1);
- private final RuleCall cExternalMetricParserRuleCall_0 = (RuleCall) this.cAlternatives.eContents().get(0);
- private final RuleCall cInternalMetricParserRuleCall_1 = (RuleCall) this.cAlternatives.eContents().get(1);
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Metric");
+ private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
+ private final RuleCall cExternalMetricParserRuleCall_0 = (RuleCall) cAlternatives.eContents().get(0);
+ private final RuleCall cInternalMetricParserRuleCall_1 = (RuleCall) cAlternatives.eContents().get(1);
// Metric:
// ExternalMetric | InternalMetric;
@Override
public ParserRule getRule() {
- return this.rule;
+ return rule;
}
// ExternalMetric | InternalMetric
public Alternatives getAlternatives() {
- return this.cAlternatives;
+ return cAlternatives;
}
// ExternalMetric
public RuleCall getExternalMetricParserRuleCall_0() {
- return this.cExternalMetricParserRuleCall_0;
+ return cExternalMetricParserRuleCall_0;
}
// InternalMetric
public RuleCall getInternalMetricParserRuleCall_1() {
- return this.cInternalMetricParserRuleCall_1;
+ return cInternalMetricParserRuleCall_1;
}
}
public class ExternalMetricElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil
- .findRuleForName(MetricDSLGrammarAccess.this.getGrammar(), "ExternalMetric");
- private final Assignment cNameAssignment = (Assignment) this.rule.eContents().get(1);
- private final RuleCall cNameMYIDParserRuleCall_0 = (RuleCall) this.cNameAssignment.eContents().get(0);
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ExternalMetric");
+ private final Assignment cNameAssignment = (Assignment) rule.eContents().get(1);
+ private final RuleCall cNameMYIDParserRuleCall_0 = (RuleCall) cNameAssignment.eContents().get(0);
// ExternalMetric:
// name=MYID;
@Override
public ParserRule getRule() {
- return this.rule;
+ return rule;
}
// name=MYID
public Assignment getNameAssignment() {
- return this.cNameAssignment;
+ return cNameAssignment;
}
// MYID
public RuleCall getNameMYIDParserRuleCall_0() {
- return this.cNameMYIDParserRuleCall_0;
+ return cNameMYIDParserRuleCall_0;
}
}
public class InternalMetricElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil
- .findRuleForName(MetricDSLGrammarAccess.this.getGrammar(), "InternalMetric");
- private final Group cGroup = (Group) this.rule.eContents().get(1);
- private final Keyword cMetricKeyword_0 = (Keyword) this.cGroup.eContents().get(0);
- private final Assignment cNameAssignment_1 = (Assignment) this.cGroup.eContents().get(1);
- private final RuleCall cNameMYIDParserRuleCall_1_0 = (RuleCall) this.cNameAssignment_1.eContents().get(0);
- private final Keyword cLeftParenthesisKeyword_2 = (Keyword) this.cGroup.eContents().get(2);
- private final Assignment cShortNameAssignment_3 = (Assignment) this.cGroup.eContents().get(3);
- private final RuleCall cShortNameSTRINGTerminalRuleCall_3_0 = (RuleCall) this.cShortNameAssignment_3.eContents()
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "InternalMetric");
+ private final Group cGroup = (Group) rule.eContents().get(1);
+ private final Keyword cMetricKeyword_0 = (Keyword) cGroup.eContents().get(0);
+ private final Assignment cNameAssignment_1 = (Assignment) cGroup.eContents().get(1);
+ private final RuleCall cNameMYIDParserRuleCall_1_0 = (RuleCall) cNameAssignment_1.eContents().get(0);
+ private final Keyword cLeftParenthesisKeyword_2 = (Keyword) cGroup.eContents().get(2);
+ private final Assignment cShortNameAssignment_3 = (Assignment) cGroup.eContents().get(3);
+ private final RuleCall cShortNameSTRINGTerminalRuleCall_3_0 = (RuleCall) cShortNameAssignment_3.eContents()
.get(0);
- private final Keyword cCommaKeyword_4 = (Keyword) this.cGroup.eContents().get(4);
- private final Assignment cDescriptionAssignment_5 = (Assignment) this.cGroup.eContents().get(5);
- private final RuleCall cDescriptionSTRINGTerminalRuleCall_5_0 = (RuleCall) this.cDescriptionAssignment_5
- .eContents().get(0);
- private final Keyword cRightParenthesisKeyword_6 = (Keyword) this.cGroup.eContents().get(6);
- private final Keyword cLeftCurlyBracketKeyword_7 = (Keyword) this.cGroup.eContents().get(7);
- private final Group cGroup_8 = (Group) this.cGroup.eContents().get(8);
- private final Keyword cParametersKeyword_8_0 = (Keyword) this.cGroup_8.eContents().get(0);
- private final Keyword cLeftCurlyBracketKeyword_8_1 = (Keyword) this.cGroup_8.eContents().get(1);
- private final Assignment cParameterAssignment_8_2 = (Assignment) this.cGroup_8.eContents().get(2);
- private final RuleCall cParameterNumberParserRuleCall_8_2_0 = (RuleCall) this.cParameterAssignment_8_2
- .eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_8_3 = (Keyword) this.cGroup_8.eContents().get(3);
- private final Assignment cDefinitionAssignment_9 = (Assignment) this.cGroup.eContents().get(9);
- private final RuleCall cDefinitionMetricDefinitionParserRuleCall_9_0 = (RuleCall) this.cDefinitionAssignment_9
+ private final Keyword cCommaKeyword_4 = (Keyword) cGroup.eContents().get(4);
+ private final Assignment cDescriptionAssignment_5 = (Assignment) cGroup.eContents().get(5);
+ private final RuleCall cDescriptionSTRINGTerminalRuleCall_5_0 = (RuleCall) cDescriptionAssignment_5.eContents()
+ .get(0);
+ private final Keyword cRightParenthesisKeyword_6 = (Keyword) cGroup.eContents().get(6);
+ private final Keyword cLeftCurlyBracketKeyword_7 = (Keyword) cGroup.eContents().get(7);
+ private final Group cGroup_8 = (Group) cGroup.eContents().get(8);
+ private final Keyword cParametersKeyword_8_0 = (Keyword) cGroup_8.eContents().get(0);
+ private final Keyword cLeftCurlyBracketKeyword_8_1 = (Keyword) cGroup_8.eContents().get(1);
+ private final Assignment cParameterAssignment_8_2 = (Assignment) cGroup_8.eContents().get(2);
+ private final RuleCall cParameterNumberParserRuleCall_8_2_0 = (RuleCall) cParameterAssignment_8_2.eContents()
+ .get(0);
+ private final Keyword cRightCurlyBracketKeyword_8_3 = (Keyword) cGroup_8.eContents().get(3);
+ private final Assignment cDefinitionAssignment_9 = (Assignment) cGroup.eContents().get(9);
+ private final RuleCall cDefinitionMetricDefinitionParserRuleCall_9_0 = (RuleCall) cDefinitionAssignment_9
.eContents().get(0);
- private final Keyword cRightCurlyBracketSemicolonKeyword_10 = (Keyword) this.cGroup.eContents().get(10);
+ private final Keyword cRightCurlyBracketSemicolonKeyword_10 = (Keyword) cGroup.eContents().get(10);
// InternalMetric:
- // "Metric" name=MYID "(" shortName=STRING "," description=STRING ")" "{" ("parameters" "{"
+ // "Metric" name=MYID "(" shortName=STRING "," description=STRING ")" "{"
+ // ("parameters" "{"
// parameter+=Number* "}")?
// definition=MetricDefinition "};";
@Override
public ParserRule getRule() {
- return this.rule;
+ return rule;
}
- // "Metric" name=MYID "(" shortName=STRING "," description=STRING ")" "{" ("parameters" "{"
+ // "Metric" name=MYID "(" shortName=STRING "," description=STRING ")" "{"
+ // ("parameters" "{"
// parameter+=Number* "}")?
// definition=MetricDefinition "};"
public Group getGroup() {
- return this.cGroup;
+ return cGroup;
}
// "Metric"
public Keyword getMetricKeyword_0() {
- return this.cMetricKeyword_0;
+ return cMetricKeyword_0;
}
// name=MYID
public Assignment getNameAssignment_1() {
- return this.cNameAssignment_1;
+ return cNameAssignment_1;
}
// MYID
public RuleCall getNameMYIDParserRuleCall_1_0() {
- return this.cNameMYIDParserRuleCall_1_0;
+ return cNameMYIDParserRuleCall_1_0;
}
// "("
public Keyword getLeftParenthesisKeyword_2() {
- return this.cLeftParenthesisKeyword_2;
+ return cLeftParenthesisKeyword_2;
}
// shortName=STRING
public Assignment getShortNameAssignment_3() {
- return this.cShortNameAssignment_3;
+ return cShortNameAssignment_3;
}
// STRING
public RuleCall getShortNameSTRINGTerminalRuleCall_3_0() {
- return this.cShortNameSTRINGTerminalRuleCall_3_0;
+ return cShortNameSTRINGTerminalRuleCall_3_0;
}
// ","
public Keyword getCommaKeyword_4() {
- return this.cCommaKeyword_4;
+ return cCommaKeyword_4;
}
// description=STRING
public Assignment getDescriptionAssignment_5() {
- return this.cDescriptionAssignment_5;
+ return cDescriptionAssignment_5;
}
// STRING
public RuleCall getDescriptionSTRINGTerminalRuleCall_5_0() {
- return this.cDescriptionSTRINGTerminalRuleCall_5_0;
+ return cDescriptionSTRINGTerminalRuleCall_5_0;
}
// ")"
public Keyword getRightParenthesisKeyword_6() {
- return this.cRightParenthesisKeyword_6;
+ return cRightParenthesisKeyword_6;
}
// "{"
public Keyword getLeftCurlyBracketKeyword_7() {
- return this.cLeftCurlyBracketKeyword_7;
+ return cLeftCurlyBracketKeyword_7;
}
// ("parameters" "{" parameter+=Number* "}")?
public Group getGroup_8() {
- return this.cGroup_8;
+ return cGroup_8;
}
// "parameters"
public Keyword getParametersKeyword_8_0() {
- return this.cParametersKeyword_8_0;
+ return cParametersKeyword_8_0;
}
// "{"
public Keyword getLeftCurlyBracketKeyword_8_1() {
- return this.cLeftCurlyBracketKeyword_8_1;
+ return cLeftCurlyBracketKeyword_8_1;
}
// parameter+=Number*
public Assignment getParameterAssignment_8_2() {
- return this.cParameterAssignment_8_2;
+ return cParameterAssignment_8_2;
}
// Number
public RuleCall getParameterNumberParserRuleCall_8_2_0() {
- return this.cParameterNumberParserRuleCall_8_2_0;
+ return cParameterNumberParserRuleCall_8_2_0;
}
// "}"
public Keyword getRightCurlyBracketKeyword_8_3() {
- return this.cRightCurlyBracketKeyword_8_3;
+ return cRightCurlyBracketKeyword_8_3;
}
// definition=MetricDefinition
public Assignment getDefinitionAssignment_9() {
- return this.cDefinitionAssignment_9;
+ return cDefinitionAssignment_9;
}
// MetricDefinition
public RuleCall getDefinitionMetricDefinitionParserRuleCall_9_0() {
- return this.cDefinitionMetricDefinitionParserRuleCall_9_0;
+ return cDefinitionMetricDefinitionParserRuleCall_9_0;
}
// "};"
public Keyword getRightCurlyBracketSemicolonKeyword_10() {
- return this.cRightCurlyBracketSemicolonKeyword_10;
+ return cRightCurlyBracketSemicolonKeyword_10;
}
}
public class NumberElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil
- .findRuleForName(MetricDSLGrammarAccess.this.getGrammar(), "Number");
- private final Alternatives cAlternatives = (Alternatives) this.rule.eContents().get(1);
- private final RuleCall cParameterParserRuleCall_0 = (RuleCall) this.cAlternatives.eContents().get(0);
- private final RuleCall cConstantParserRuleCall_1 = (RuleCall) this.cAlternatives.eContents().get(1);
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Number");
+ private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
+ private final RuleCall cParameterParserRuleCall_0 = (RuleCall) cAlternatives.eContents().get(0);
+ private final RuleCall cConstantParserRuleCall_1 = (RuleCall) cAlternatives.eContents().get(1);
// Number:
// Parameter | Constant;
@Override
public ParserRule getRule() {
- return this.rule;
+ return rule;
}
// Parameter | Constant
public Alternatives getAlternatives() {
- return this.cAlternatives;
+ return cAlternatives;
}
// Parameter
public RuleCall getParameterParserRuleCall_0() {
- return this.cParameterParserRuleCall_0;
+ return cParameterParserRuleCall_0;
}
// Constant
public RuleCall getConstantParserRuleCall_1() {
- return this.cConstantParserRuleCall_1;
+ return cConstantParserRuleCall_1;
}
}
public class ParameterElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil
- .findRuleForName(MetricDSLGrammarAccess.this.getGrammar(), "Parameter");
- private final Group cGroup = (Group) this.rule.eContents().get(1);
- private final Keyword cParameterKeyword_0 = (Keyword) this.cGroup.eContents().get(0);
- private final Assignment cNameAssignment_1 = (Assignment) this.cGroup.eContents().get(1);
- private final RuleCall cNameMYIDParserRuleCall_1_0 = (RuleCall) this.cNameAssignment_1.eContents().get(0);
- private final Keyword cLeftParenthesisKeyword_2 = (Keyword) this.cGroup.eContents().get(2);
- private final Assignment cShortnameAssignment_3 = (Assignment) this.cGroup.eContents().get(3);
- private final RuleCall cShortnameSTRINGTerminalRuleCall_3_0 = (RuleCall) this.cShortnameAssignment_3.eContents()
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Parameter");
+ private final Group cGroup = (Group) rule.eContents().get(1);
+ private final Keyword cParameterKeyword_0 = (Keyword) cGroup.eContents().get(0);
+ private final Assignment cNameAssignment_1 = (Assignment) cGroup.eContents().get(1);
+ private final RuleCall cNameMYIDParserRuleCall_1_0 = (RuleCall) cNameAssignment_1.eContents().get(0);
+ private final Keyword cLeftParenthesisKeyword_2 = (Keyword) cGroup.eContents().get(2);
+ private final Assignment cShortnameAssignment_3 = (Assignment) cGroup.eContents().get(3);
+ private final RuleCall cShortnameSTRINGTerminalRuleCall_3_0 = (RuleCall) cShortnameAssignment_3.eContents()
.get(0);
- private final Keyword cCommaKeyword_4 = (Keyword) this.cGroup.eContents().get(4);
- private final Assignment cDescriptionAssignment_5 = (Assignment) this.cGroup.eContents().get(5);
- private final RuleCall cDescriptionSTRINGTerminalRuleCall_5_0 = (RuleCall) this.cDescriptionAssignment_5
- .eContents().get(0);
- private final Keyword cCommaKeyword_6 = (Keyword) this.cGroup.eContents().get(6);
- private final Assignment cDefaultValueAssignment_7 = (Assignment) this.cGroup.eContents().get(7);
- private final RuleCall cDefaultValueDOUBLETerminalRuleCall_7_0 = (RuleCall) this.cDefaultValueAssignment_7
+ private final Keyword cCommaKeyword_4 = (Keyword) cGroup.eContents().get(4);
+ private final Assignment cDescriptionAssignment_5 = (Assignment) cGroup.eContents().get(5);
+ private final RuleCall cDescriptionSTRINGTerminalRuleCall_5_0 = (RuleCall) cDescriptionAssignment_5.eContents()
+ .get(0);
+ private final Keyword cCommaKeyword_6 = (Keyword) cGroup.eContents().get(6);
+ private final Assignment cDefaultValueAssignment_7 = (Assignment) cGroup.eContents().get(7);
+ private final RuleCall cDefaultValueDOUBLETerminalRuleCall_7_0 = (RuleCall) cDefaultValueAssignment_7
.eContents().get(0);
- private final Keyword cRightParenthesisKeyword_8 = (Keyword) this.cGroup.eContents().get(8);
- private final Keyword cSemicolonKeyword_9 = (Keyword) this.cGroup.eContents().get(9);
+ private final Keyword cRightParenthesisKeyword_8 = (Keyword) cGroup.eContents().get(8);
+ private final Keyword cSemicolonKeyword_9 = (Keyword) cGroup.eContents().get(9);
// Parameter:
- // "Parameter" name=MYID "(" shortname=STRING "," description=STRING "," defaultValue=DOUBLE
+ // "Parameter" name=MYID "(" shortname=STRING "," description=STRING ","
+ // defaultValue=DOUBLE
// ")" ";";
@Override
public ParserRule getRule() {
- return this.rule;
+ return rule;
}
- // "Parameter" name=MYID "(" shortname=STRING "," description=STRING "," defaultValue=DOUBLE
+ // "Parameter" name=MYID "(" shortname=STRING "," description=STRING ","
+ // defaultValue=DOUBLE
// ")" ";"
public Group getGroup() {
- return this.cGroup;
+ return cGroup;
}
// "Parameter"
public Keyword getParameterKeyword_0() {
- return this.cParameterKeyword_0;
+ return cParameterKeyword_0;
}
// name=MYID
public Assignment getNameAssignment_1() {
- return this.cNameAssignment_1;
+ return cNameAssignment_1;
}
// MYID
public RuleCall getNameMYIDParserRuleCall_1_0() {
- return this.cNameMYIDParserRuleCall_1_0;
+ return cNameMYIDParserRuleCall_1_0;
}
// "("
public Keyword getLeftParenthesisKeyword_2() {
- return this.cLeftParenthesisKeyword_2;
+ return cLeftParenthesisKeyword_2;
}
// shortname=STRING
public Assignment getShortnameAssignment_3() {
- return this.cShortnameAssignment_3;
+ return cShortnameAssignment_3;
}
// STRING
public RuleCall getShortnameSTRINGTerminalRuleCall_3_0() {
- return this.cShortnameSTRINGTerminalRuleCall_3_0;
+ return cShortnameSTRINGTerminalRuleCall_3_0;
}
// ","
public Keyword getCommaKeyword_4() {
- return this.cCommaKeyword_4;
+ return cCommaKeyword_4;
}
// description=STRING
public Assignment getDescriptionAssignment_5() {
- return this.cDescriptionAssignment_5;
+ return cDescriptionAssignment_5;
}
// STRING
public RuleCall getDescriptionSTRINGTerminalRuleCall_5_0() {
- return this.cDescriptionSTRINGTerminalRuleCall_5_0;
+ return cDescriptionSTRINGTerminalRuleCall_5_0;
}
// ","
public Keyword getCommaKeyword_6() {
- return this.cCommaKeyword_6;
+ return cCommaKeyword_6;
}
// defaultValue=DOUBLE
public Assignment getDefaultValueAssignment_7() {
- return this.cDefaultValueAssignment_7;
+ return cDefaultValueAssignment_7;
}
// DOUBLE
public RuleCall getDefaultValueDOUBLETerminalRuleCall_7_0() {
- return this.cDefaultValueDOUBLETerminalRuleCall_7_0;
+ return cDefaultValueDOUBLETerminalRuleCall_7_0;
}
// ")"
public Keyword getRightParenthesisKeyword_8() {
- return this.cRightParenthesisKeyword_8;
+ return cRightParenthesisKeyword_8;
}
// ";"
public Keyword getSemicolonKeyword_9() {
- return this.cSemicolonKeyword_9;
+ return cSemicolonKeyword_9;
}
}
public class ConstantElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil
- .findRuleForName(MetricDSLGrammarAccess.this.getGrammar(), "Constant");
- private final Group cGroup = (Group) this.rule.eContents().get(1);
- private final Keyword cConstKeyword_0 = (Keyword) this.cGroup.eContents().get(0);
- private final Assignment cNameAssignment_1 = (Assignment) this.cGroup.eContents().get(1);
- private final RuleCall cNameMYIDParserRuleCall_1_0 = (RuleCall) this.cNameAssignment_1.eContents().get(0);
- private final Keyword cEqualsSignKeyword_2 = (Keyword) this.cGroup.eContents().get(2);
- private final Assignment cValueAssignment_3 = (Assignment) this.cGroup.eContents().get(3);
- private final RuleCall cValueDOUBLETerminalRuleCall_3_0 = (RuleCall) this.cValueAssignment_3.eContents().get(0);
- private final Keyword cSemicolonKeyword_4 = (Keyword) this.cGroup.eContents().get(4);
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Constant");
+ private final Group cGroup = (Group) rule.eContents().get(1);
+ private final Keyword cConstKeyword_0 = (Keyword) cGroup.eContents().get(0);
+ private final Assignment cNameAssignment_1 = (Assignment) cGroup.eContents().get(1);
+ private final RuleCall cNameMYIDParserRuleCall_1_0 = (RuleCall) cNameAssignment_1.eContents().get(0);
+ private final Keyword cEqualsSignKeyword_2 = (Keyword) cGroup.eContents().get(2);
+ private final Assignment cValueAssignment_3 = (Assignment) cGroup.eContents().get(3);
+ private final RuleCall cValueDOUBLETerminalRuleCall_3_0 = (RuleCall) cValueAssignment_3.eContents().get(0);
+ private final Keyword cSemicolonKeyword_4 = (Keyword) cGroup.eContents().get(4);
// Constant:
// "Const" name=MYID "=" value=DOUBLE ";";
@Override
public ParserRule getRule() {
- return this.rule;
+ return rule;
}
// "Const" name=MYID "=" value=DOUBLE ";"
public Group getGroup() {
- return this.cGroup;
+ return cGroup;
}
// "Const"
public Keyword getConstKeyword_0() {
- return this.cConstKeyword_0;
+ return cConstKeyword_0;
}
// name=MYID
public Assignment getNameAssignment_1() {
- return this.cNameAssignment_1;
+ return cNameAssignment_1;
}
// MYID
public RuleCall getNameMYIDParserRuleCall_1_0() {
- return this.cNameMYIDParserRuleCall_1_0;
+ return cNameMYIDParserRuleCall_1_0;
}
// "="
public Keyword getEqualsSignKeyword_2() {
- return this.cEqualsSignKeyword_2;
+ return cEqualsSignKeyword_2;
}
// value=DOUBLE
public Assignment getValueAssignment_3() {
- return this.cValueAssignment_3;
+ return cValueAssignment_3;
}
// DOUBLE
public RuleCall getValueDOUBLETerminalRuleCall_3_0() {
- return this.cValueDOUBLETerminalRuleCall_3_0;
+ return cValueDOUBLETerminalRuleCall_3_0;
}
// ";"
public Keyword getSemicolonKeyword_4() {
- return this.cSemicolonKeyword_4;
+ return cSemicolonKeyword_4;
}
}
public class MetricDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil
- .findRuleForName(MetricDSLGrammarAccess.this.getGrammar(), "MetricDefinition");
- private final Alternatives cAlternatives = (Alternatives) this.rule.eContents().get(1);
- private final RuleCall cWeightedMetricParserRuleCall_0 = (RuleCall) this.cAlternatives.eContents().get(0);
- private final RuleCall cStepwiseMetricParserRuleCall_1 = (RuleCall) this.cAlternatives.eContents().get(1);
- private final RuleCall cRatioMetricParserRuleCall_2 = (RuleCall) this.cAlternatives.eContents().get(2);
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "MetricDefinition");
+ private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
+ private final RuleCall cWeightedMetricParserRuleCall_0 = (RuleCall) cAlternatives.eContents().get(0);
+ private final RuleCall cStepwiseMetricParserRuleCall_1 = (RuleCall) cAlternatives.eContents().get(1);
+ private final RuleCall cRatioMetricParserRuleCall_2 = (RuleCall) cAlternatives.eContents().get(2);
// MetricDefinition:
// WeightedMetric | StepwiseMetric | RatioMetric;
@Override
public ParserRule getRule() {
- return this.rule;
+ return rule;
}
// WeightedMetric | StepwiseMetric | RatioMetric
public Alternatives getAlternatives() {
- return this.cAlternatives;
+ return cAlternatives;
}
// WeightedMetric
public RuleCall getWeightedMetricParserRuleCall_0() {
- return this.cWeightedMetricParserRuleCall_0;
+ return cWeightedMetricParserRuleCall_0;
}
// StepwiseMetric
public RuleCall getStepwiseMetricParserRuleCall_1() {
- return this.cStepwiseMetricParserRuleCall_1;
+ return cStepwiseMetricParserRuleCall_1;
}
// RatioMetric
public RuleCall getRatioMetricParserRuleCall_2() {
- return this.cRatioMetricParserRuleCall_2;
+ return cRatioMetricParserRuleCall_2;
}
}
public class WeightedMetricElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil
- .findRuleForName(MetricDSLGrammarAccess.this.getGrammar(), "WeightedMetric");
- private final Group cGroup = (Group) this.rule.eContents().get(1);
- private final Keyword cWeigthedSumKeyword_0 = (Keyword) this.cGroup.eContents().get(0);
- private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword) this.cGroup.eContents().get(1);
- private final Assignment cWeightsAssignment_2 = (Assignment) this.cGroup.eContents().get(2);
- private final RuleCall cWeightsMetricAndWeightParserRuleCall_2_0 = (RuleCall) this.cWeightsAssignment_2
- .eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_3 = (Keyword) this.cGroup.eContents().get(3);
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WeightedMetric");
+ private final Group cGroup = (Group) rule.eContents().get(1);
+ private final Keyword cWeigthedSumKeyword_0 = (Keyword) cGroup.eContents().get(0);
+ private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword) cGroup.eContents().get(1);
+ private final Assignment cWeightsAssignment_2 = (Assignment) cGroup.eContents().get(2);
+ private final RuleCall cWeightsMetricAndWeightParserRuleCall_2_0 = (RuleCall) cWeightsAssignment_2.eContents()
+ .get(0);
+ private final Keyword cRightCurlyBracketKeyword_3 = (Keyword) cGroup.eContents().get(3);
// WeightedMetric:
// "WeigthedSum" "{" weights+=MetricAndWeight+ "}";
@Override
public ParserRule getRule() {
- return this.rule;
+ return rule;
}
// "WeigthedSum" "{" weights+=MetricAndWeight+ "}"
public Group getGroup() {
- return this.cGroup;
+ return cGroup;
}
// "WeigthedSum"
public Keyword getWeigthedSumKeyword_0() {
- return this.cWeigthedSumKeyword_0;
+ return cWeigthedSumKeyword_0;
}
// "{"
public Keyword getLeftCurlyBracketKeyword_1() {
- return this.cLeftCurlyBracketKeyword_1;
+ return cLeftCurlyBracketKeyword_1;
}
// weights+=MetricAndWeight+
public Assignment getWeightsAssignment_2() {
- return this.cWeightsAssignment_2;
+ return cWeightsAssignment_2;
}
// MetricAndWeight
public RuleCall getWeightsMetricAndWeightParserRuleCall_2_0() {
- return this.cWeightsMetricAndWeightParserRuleCall_2_0;
+ return cWeightsMetricAndWeightParserRuleCall_2_0;
}
// "}"
public Keyword getRightCurlyBracketKeyword_3() {
- return this.cRightCurlyBracketKeyword_3;
+ return cRightCurlyBracketKeyword_3;
}
}
public class StepwiseMetricElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil
- .findRuleForName(MetricDSLGrammarAccess.this.getGrammar(), "StepwiseMetric");
- private final Group cGroup = (Group) this.rule.eContents().get(1);
- private final Keyword cStepwiseKeyword_0 = (Keyword) this.cGroup.eContents().get(0);
- private final Keyword cLeftSquareBracketKeyword_1 = (Keyword) this.cGroup.eContents().get(1);
- private final Assignment cInnerMetricAssignment_2 = (Assignment) this.cGroup.eContents().get(2);
- private final CrossReference cInnerMetricMetricCrossReference_2_0 = (CrossReference) this.cInnerMetricAssignment_2
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "StepwiseMetric");
+ private final Group cGroup = (Group) rule.eContents().get(1);
+ private final Keyword cStepwiseKeyword_0 = (Keyword) cGroup.eContents().get(0);
+ private final Keyword cLeftSquareBracketKeyword_1 = (Keyword) cGroup.eContents().get(1);
+ private final Assignment cInnerMetricAssignment_2 = (Assignment) cGroup.eContents().get(2);
+ private final CrossReference cInnerMetricMetricCrossReference_2_0 = (CrossReference) cInnerMetricAssignment_2
.eContents().get(0);
- private final RuleCall cInnerMetricMetricMYIDParserRuleCall_2_0_1 = (RuleCall) this.cInnerMetricMetricCrossReference_2_0
+ private final RuleCall cInnerMetricMetricMYIDParserRuleCall_2_0_1 = (RuleCall) cInnerMetricMetricCrossReference_2_0
.eContents().get(1);
- private final Keyword cRightSquareBracketKeyword_3 = (Keyword) this.cGroup.eContents().get(3);
- private final Keyword cLeftCurlyBracketKeyword_4 = (Keyword) this.cGroup.eContents().get(4);
- private final Assignment cStepsAssignment_5 = (Assignment) this.cGroup.eContents().get(5);
- private final RuleCall cStepsBoundAndWeightParserRuleCall_5_0 = (RuleCall) this.cStepsAssignment_5.eContents()
+ private final Keyword cRightSquareBracketKeyword_3 = (Keyword) cGroup.eContents().get(3);
+ private final Keyword cLeftCurlyBracketKeyword_4 = (Keyword) cGroup.eContents().get(4);
+ private final Assignment cStepsAssignment_5 = (Assignment) cGroup.eContents().get(5);
+ private final RuleCall cStepsBoundAndWeightParserRuleCall_5_0 = (RuleCall) cStepsAssignment_5.eContents()
.get(0);
- private final Keyword cRightCurlyBracketKeyword_6 = (Keyword) this.cGroup.eContents().get(6);
+ private final Keyword cRightCurlyBracketKeyword_6 = (Keyword) cGroup.eContents().get(6);
// StepwiseMetric:
// "Stepwise" "[" innerMetric=[Metric|MYID] "]" "{" steps+=BoundAndWeight* "}";
@Override
public ParserRule getRule() {
- return this.rule;
+ return rule;
}
// "Stepwise" "[" innerMetric=[Metric|MYID] "]" "{" steps+=BoundAndWeight* "}"
public Group getGroup() {
- return this.cGroup;
+ return cGroup;
}
// "Stepwise"
public Keyword getStepwiseKeyword_0() {
- return this.cStepwiseKeyword_0;
+ return cStepwiseKeyword_0;
}
// "["
public Keyword getLeftSquareBracketKeyword_1() {
- return this.cLeftSquareBracketKeyword_1;
+ return cLeftSquareBracketKeyword_1;
}
// innerMetric=[Metric|MYID]
public Assignment getInnerMetricAssignment_2() {
- return this.cInnerMetricAssignment_2;
+ return cInnerMetricAssignment_2;
}
// [Metric|MYID]
public CrossReference getInnerMetricMetricCrossReference_2_0() {
- return this.cInnerMetricMetricCrossReference_2_0;
+ return cInnerMetricMetricCrossReference_2_0;
}
// MYID
public RuleCall getInnerMetricMetricMYIDParserRuleCall_2_0_1() {
- return this.cInnerMetricMetricMYIDParserRuleCall_2_0_1;
+ return cInnerMetricMetricMYIDParserRuleCall_2_0_1;
}
// "]"
public Keyword getRightSquareBracketKeyword_3() {
- return this.cRightSquareBracketKeyword_3;
+ return cRightSquareBracketKeyword_3;
}
// "{"
public Keyword getLeftCurlyBracketKeyword_4() {
- return this.cLeftCurlyBracketKeyword_4;
+ return cLeftCurlyBracketKeyword_4;
}
// steps+=BoundAndWeight*
public Assignment getStepsAssignment_5() {
- return this.cStepsAssignment_5;
+ return cStepsAssignment_5;
}
// BoundAndWeight
public RuleCall getStepsBoundAndWeightParserRuleCall_5_0() {
- return this.cStepsBoundAndWeightParserRuleCall_5_0;
+ return cStepsBoundAndWeightParserRuleCall_5_0;
}
// "}"
public Keyword getRightCurlyBracketKeyword_6() {
- return this.cRightCurlyBracketKeyword_6;
+ return cRightCurlyBracketKeyword_6;
}
}
public class RatioMetricElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil
- .findRuleForName(MetricDSLGrammarAccess.this.getGrammar(), "RatioMetric");
- private final Group cGroup = (Group) this.rule.eContents().get(1);
- private final Keyword cRatioKeyword_0 = (Keyword) this.cGroup.eContents().get(0);
- private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword) this.cGroup.eContents().get(1);
- private final Assignment cNominatorMetricAssignment_2 = (Assignment) this.cGroup.eContents().get(2);
- private final CrossReference cNominatorMetricMetricCrossReference_2_0 = (CrossReference) this.cNominatorMetricAssignment_2
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "RatioMetric");
+ private final Group cGroup = (Group) rule.eContents().get(1);
+ private final Keyword cRatioKeyword_0 = (Keyword) cGroup.eContents().get(0);
+ private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword) cGroup.eContents().get(1);
+ private final Assignment cNominatorMetricAssignment_2 = (Assignment) cGroup.eContents().get(2);
+ private final CrossReference cNominatorMetricMetricCrossReference_2_0 = (CrossReference) cNominatorMetricAssignment_2
.eContents().get(0);
- private final RuleCall cNominatorMetricMetricMYIDParserRuleCall_2_0_1 = (RuleCall) this.cNominatorMetricMetricCrossReference_2_0
+ private final RuleCall cNominatorMetricMetricMYIDParserRuleCall_2_0_1 = (RuleCall) cNominatorMetricMetricCrossReference_2_0
.eContents().get(1);
- private final Keyword cSolidusKeyword_3 = (Keyword) this.cGroup.eContents().get(3);
- private final Assignment cDenominatorMetricAssignment_4 = (Assignment) this.cGroup.eContents().get(4);
- private final CrossReference cDenominatorMetricMetricCrossReference_4_0 = (CrossReference) this.cDenominatorMetricAssignment_4
+ private final Keyword cSolidusKeyword_3 = (Keyword) cGroup.eContents().get(3);
+ private final Assignment cDenominatorMetricAssignment_4 = (Assignment) cGroup.eContents().get(4);
+ private final CrossReference cDenominatorMetricMetricCrossReference_4_0 = (CrossReference) cDenominatorMetricAssignment_4
.eContents().get(0);
- private final RuleCall cDenominatorMetricMetricMYIDParserRuleCall_4_0_1 = (RuleCall) this.cDenominatorMetricMetricCrossReference_4_0
+ private final RuleCall cDenominatorMetricMetricMYIDParserRuleCall_4_0_1 = (RuleCall) cDenominatorMetricMetricCrossReference_4_0
.eContents().get(1);
- private final Keyword cRightCurlyBracketKeyword_5 = (Keyword) this.cGroup.eContents().get(5);
+ private final Keyword cRightCurlyBracketKeyword_5 = (Keyword) cGroup.eContents().get(5);
// RatioMetric:
- // "Ratio" "{" nominatorMetric=[Metric|MYID] "/" denominatorMetric=[Metric|MYID] "}";
+ // "Ratio" "{" nominatorMetric=[Metric|MYID] "/" denominatorMetric=[Metric|MYID]
+ // "}";
@Override
public ParserRule getRule() {
- return this.rule;
+ return rule;
}
- // "Ratio" "{" nominatorMetric=[Metric|MYID] "/" denominatorMetric=[Metric|MYID] "}"
+ // "Ratio" "{" nominatorMetric=[Metric|MYID] "/" denominatorMetric=[Metric|MYID]
+ // "}"
public Group getGroup() {
- return this.cGroup;
+ return cGroup;
}
// "Ratio"
public Keyword getRatioKeyword_0() {
- return this.cRatioKeyword_0;
+ return cRatioKeyword_0;
}
// "{"
public Keyword getLeftCurlyBracketKeyword_1() {
- return this.cLeftCurlyBracketKeyword_1;
+ return cLeftCurlyBracketKeyword_1;
}
// nominatorMetric=[Metric|MYID]
public Assignment getNominatorMetricAssignment_2() {
- return this.cNominatorMetricAssignment_2;
+ return cNominatorMetricAssignment_2;
}
// [Metric|MYID]
public CrossReference getNominatorMetricMetricCrossReference_2_0() {
- return this.cNominatorMetricMetricCrossReference_2_0;
+ return cNominatorMetricMetricCrossReference_2_0;
}
// MYID
public RuleCall getNominatorMetricMetricMYIDParserRuleCall_2_0_1() {
- return this.cNominatorMetricMetricMYIDParserRuleCall_2_0_1;
+ return cNominatorMetricMetricMYIDParserRuleCall_2_0_1;
}
// "/"
public Keyword getSolidusKeyword_3() {
- return this.cSolidusKeyword_3;
+ return cSolidusKeyword_3;
}
// denominatorMetric=[Metric|MYID]
public Assignment getDenominatorMetricAssignment_4() {
- return this.cDenominatorMetricAssignment_4;
+ return cDenominatorMetricAssignment_4;
}
// [Metric|MYID]
public CrossReference getDenominatorMetricMetricCrossReference_4_0() {
- return this.cDenominatorMetricMetricCrossReference_4_0;
+ return cDenominatorMetricMetricCrossReference_4_0;
}
// MYID
public RuleCall getDenominatorMetricMetricMYIDParserRuleCall_4_0_1() {
- return this.cDenominatorMetricMetricMYIDParserRuleCall_4_0_1;
+ return cDenominatorMetricMetricMYIDParserRuleCall_4_0_1;
}
// "}"
public Keyword getRightCurlyBracketKeyword_5() {
- return this.cRightCurlyBracketKeyword_5;
+ return cRightCurlyBracketKeyword_5;
}
}
public class BoundAndWeightElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil
- .findRuleForName(MetricDSLGrammarAccess.this.getGrammar(), "BoundAndWeight");
- private final Group cGroup = (Group) this.rule.eContents().get(1);
- private final Keyword cLessThanSignKeyword_0 = (Keyword) this.cGroup.eContents().get(0);
- private final Assignment cUpperBoundAssignment_1 = (Assignment) this.cGroup.eContents().get(1);
- private final CrossReference cUpperBoundNumberCrossReference_1_0 = (CrossReference) this.cUpperBoundAssignment_1
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "BoundAndWeight");
+ private final Group cGroup = (Group) rule.eContents().get(1);
+ private final Keyword cLessThanSignKeyword_0 = (Keyword) cGroup.eContents().get(0);
+ private final Assignment cUpperBoundAssignment_1 = (Assignment) cGroup.eContents().get(1);
+ private final CrossReference cUpperBoundNumberCrossReference_1_0 = (CrossReference) cUpperBoundAssignment_1
.eContents().get(0);
- private final RuleCall cUpperBoundNumberMYIDParserRuleCall_1_0_1 = (RuleCall) this.cUpperBoundNumberCrossReference_1_0
+ private final RuleCall cUpperBoundNumberMYIDParserRuleCall_1_0_1 = (RuleCall) cUpperBoundNumberCrossReference_1_0
.eContents().get(1);
- private final Keyword cCommaKeyword_2 = (Keyword) this.cGroup.eContents().get(2);
- private final Assignment cWeightAssignment_3 = (Assignment) this.cGroup.eContents().get(3);
- private final CrossReference cWeightNumberCrossReference_3_0 = (CrossReference) this.cWeightAssignment_3
- .eContents().get(0);
- private final RuleCall cWeightNumberMYIDParserRuleCall_3_0_1 = (RuleCall) this.cWeightNumberCrossReference_3_0
+ private final Keyword cCommaKeyword_2 = (Keyword) cGroup.eContents().get(2);
+ private final Assignment cWeightAssignment_3 = (Assignment) cGroup.eContents().get(3);
+ private final CrossReference cWeightNumberCrossReference_3_0 = (CrossReference) cWeightAssignment_3.eContents()
+ .get(0);
+ private final RuleCall cWeightNumberMYIDParserRuleCall_3_0_1 = (RuleCall) cWeightNumberCrossReference_3_0
.eContents().get(1);
- private final Keyword cGreaterThanSignKeyword_4 = (Keyword) this.cGroup.eContents().get(4);
+ private final Keyword cGreaterThanSignKeyword_4 = (Keyword) cGroup.eContents().get(4);
// BoundAndWeight:
// "<" upperBound=[Number|MYID] "," weight=[Number|MYID] ">";
@Override
public ParserRule getRule() {
- return this.rule;
+ return rule;
}
// "<" upperBound=[Number|MYID] "," weight=[Number|MYID] ">"
public Group getGroup() {
- return this.cGroup;
+ return cGroup;
}
// "<"
public Keyword getLessThanSignKeyword_0() {
- return this.cLessThanSignKeyword_0;
+ return cLessThanSignKeyword_0;
}
// upperBound=[Number|MYID]
public Assignment getUpperBoundAssignment_1() {
- return this.cUpperBoundAssignment_1;
+ return cUpperBoundAssignment_1;
}
// [Number|MYID]
public CrossReference getUpperBoundNumberCrossReference_1_0() {
- return this.cUpperBoundNumberCrossReference_1_0;
+ return cUpperBoundNumberCrossReference_1_0;
}
// MYID
public RuleCall getUpperBoundNumberMYIDParserRuleCall_1_0_1() {
- return this.cUpperBoundNumberMYIDParserRuleCall_1_0_1;
+ return cUpperBoundNumberMYIDParserRuleCall_1_0_1;
}
// ","
public Keyword getCommaKeyword_2() {
- return this.cCommaKeyword_2;
+ return cCommaKeyword_2;
}
// weight=[Number|MYID]
public Assignment getWeightAssignment_3() {
- return this.cWeightAssignment_3;
+ return cWeightAssignment_3;
}
// [Number|MYID]
public CrossReference getWeightNumberCrossReference_3_0() {
- return this.cWeightNumberCrossReference_3_0;
+ return cWeightNumberCrossReference_3_0;
}
// MYID
public RuleCall getWeightNumberMYIDParserRuleCall_3_0_1() {
- return this.cWeightNumberMYIDParserRuleCall_3_0_1;
+ return cWeightNumberMYIDParserRuleCall_3_0_1;
}
// ">"
public Keyword getGreaterThanSignKeyword_4() {
- return this.cGreaterThanSignKeyword_4;
+ return cGreaterThanSignKeyword_4;
}
}
public class MetricAndWeightElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil
- .findRuleForName(MetricDSLGrammarAccess.this.getGrammar(), "MetricAndWeight");
- private final Group cGroup = (Group) this.rule.eContents().get(1);
- private final Keyword cLessThanSignKeyword_0 = (Keyword) this.cGroup.eContents().get(0);
- private final Assignment cMetricAssignment_1 = (Assignment) this.cGroup.eContents().get(1);
- private final CrossReference cMetricMetricCrossReference_1_0 = (CrossReference) this.cMetricAssignment_1
- .eContents().get(0);
- private final RuleCall cMetricMetricMYIDParserRuleCall_1_0_1 = (RuleCall) this.cMetricMetricCrossReference_1_0
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "MetricAndWeight");
+ private final Group cGroup = (Group) rule.eContents().get(1);
+ private final Keyword cLessThanSignKeyword_0 = (Keyword) cGroup.eContents().get(0);
+ private final Assignment cMetricAssignment_1 = (Assignment) cGroup.eContents().get(1);
+ private final CrossReference cMetricMetricCrossReference_1_0 = (CrossReference) cMetricAssignment_1.eContents()
+ .get(0);
+ private final RuleCall cMetricMetricMYIDParserRuleCall_1_0_1 = (RuleCall) cMetricMetricCrossReference_1_0
.eContents().get(1);
- private final Keyword cCommaKeyword_2 = (Keyword) this.cGroup.eContents().get(2);
- private final Assignment cWeightAssignment_3 = (Assignment) this.cGroup.eContents().get(3);
- private final CrossReference cWeightNumberCrossReference_3_0 = (CrossReference) this.cWeightAssignment_3
- .eContents().get(0);
- private final RuleCall cWeightNumberMYIDParserRuleCall_3_0_1 = (RuleCall) this.cWeightNumberCrossReference_3_0
+ private final Keyword cCommaKeyword_2 = (Keyword) cGroup.eContents().get(2);
+ private final Assignment cWeightAssignment_3 = (Assignment) cGroup.eContents().get(3);
+ private final CrossReference cWeightNumberCrossReference_3_0 = (CrossReference) cWeightAssignment_3.eContents()
+ .get(0);
+ private final RuleCall cWeightNumberMYIDParserRuleCall_3_0_1 = (RuleCall) cWeightNumberCrossReference_3_0
.eContents().get(1);
- private final Keyword cGreaterThanSignKeyword_4 = (Keyword) this.cGroup.eContents().get(4);
+ private final Keyword cGreaterThanSignKeyword_4 = (Keyword) cGroup.eContents().get(4);
// MetricAndWeight:
// "<" metric=[Metric|MYID] "," weight=[Number|MYID] ">";
@Override
public ParserRule getRule() {
- return this.rule;
+ return rule;
}
// "<" metric=[Metric|MYID] "," weight=[Number|MYID] ">"
public Group getGroup() {
- return this.cGroup;
+ return cGroup;
}
// "<"
public Keyword getLessThanSignKeyword_0() {
- return this.cLessThanSignKeyword_0;
+ return cLessThanSignKeyword_0;
}
// metric=[Metric|MYID]
public Assignment getMetricAssignment_1() {
- return this.cMetricAssignment_1;
+ return cMetricAssignment_1;
}
// [Metric|MYID]
public CrossReference getMetricMetricCrossReference_1_0() {
- return this.cMetricMetricCrossReference_1_0;
+ return cMetricMetricCrossReference_1_0;
}
// MYID
public RuleCall getMetricMetricMYIDParserRuleCall_1_0_1() {
- return this.cMetricMetricMYIDParserRuleCall_1_0_1;
+ return cMetricMetricMYIDParserRuleCall_1_0_1;
}
// ","
public Keyword getCommaKeyword_2() {
- return this.cCommaKeyword_2;
+ return cCommaKeyword_2;
}
// weight=[Number|MYID]
public Assignment getWeightAssignment_3() {
- return this.cWeightAssignment_3;
+ return cWeightAssignment_3;
}
// [Number|MYID]
public CrossReference getWeightNumberCrossReference_3_0() {
- return this.cWeightNumberCrossReference_3_0;
+ return cWeightNumberCrossReference_3_0;
}
// MYID
public RuleCall getWeightNumberMYIDParserRuleCall_3_0_1() {
- return this.cWeightNumberMYIDParserRuleCall_3_0_1;
+ return cWeightNumberMYIDParserRuleCall_3_0_1;
}
// ">"
public Keyword getGreaterThanSignKeyword_4() {
- return this.cGreaterThanSignKeyword_4;
+ return cGreaterThanSignKeyword_4;
}
}
public class MYIDElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil
- .findRuleForName(MetricDSLGrammarAccess.this.getGrammar(), "MYID");
- private final Group cGroup = (Group) this.rule.eContents().get(1);
- private final RuleCall cIDTerminalRuleCall_0 = (RuleCall) this.cGroup.eContents().get(0);
- private final Group cGroup_1 = (Group) this.cGroup.eContents().get(1);
- private final Keyword cFullStopKeyword_1_0 = (Keyword) this.cGroup_1.eContents().get(0);
- private final RuleCall cIDTerminalRuleCall_1_1 = (RuleCall) this.cGroup_1.eContents().get(1);
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "MYID");
+ 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);
// MYID returns ecore::EString:
// ID ("." ID)*;
@Override
public ParserRule getRule() {
- return this.rule;
+ return rule;
}
// ID ("." ID)*
public Group getGroup() {
- return this.cGroup;
+ return cGroup;
}
// ID
public RuleCall getIDTerminalRuleCall_0() {
- return this.cIDTerminalRuleCall_0;
+ return cIDTerminalRuleCall_0;
}
// ("." ID)*
public Group getGroup_1() {
- return this.cGroup_1;
+ return cGroup_1;
}
// "."
public Keyword getFullStopKeyword_1_0() {
- return this.cFullStopKeyword_1_0;
+ return cFullStopKeyword_1_0;
}
// ID
public RuleCall getIDTerminalRuleCall_1_1() {
- return this.cIDTerminalRuleCall_1_1;
+ return cIDTerminalRuleCall_1_1;
}
}
@@ -999,7 +993,7 @@ public RuleCall getIDTerminalRuleCall_1_1() {
@Inject
public MetricDSLGrammarAccess(final GrammarProvider grammarProvider, final TerminalsGrammarAccess gaTerminals) {
- this.grammar = this.internalFindGrammar(grammarProvider);
+ grammar = internalFindGrammar(grammarProvider);
this.gaTerminals = gaTerminals;
}
@@ -1010,223 +1004,220 @@ protected Grammar internalFindGrammar(final GrammarProvider grammarProvider) {
return grammar;
}
final List grammars = grammar.getUsedGrammars();
- if (!grammars.isEmpty()) {
- grammar = grammars.iterator().next();
- } else {
+ if (grammars.isEmpty()) {
return null;
}
+ grammar = grammars.iterator().next();
}
return grammar;
}
@Override
public Grammar getGrammar() {
- return this.grammar;
+ return grammar;
}
public TerminalsGrammarAccess getTerminalsGrammarAccess() {
- return this.gaTerminals;
+ return gaTerminals;
}
// MetricModel:
- // ("import" importURI+=STRING ";")* ("extern" metrics+=ExternalMetric ";")* "Metrics" "{"
+ // ("import" importURI+=STRING ";")* ("extern" metrics+=ExternalMetric ";")*
+ // "Metrics" "{"
// metrics+=InternalMetric+ "}";
public MetricModelElements getMetricModelAccess() {
- return (this.pMetricModel != null) ? this.pMetricModel : (this.pMetricModel = new MetricModelElements());
+ return (pMetricModel != null) ? pMetricModel : (pMetricModel = new MetricModelElements());
}
public ParserRule getMetricModelRule() {
- return this.getMetricModelAccess().getRule();
+ return getMetricModelAccess().getRule();
}
// Metric:
// ExternalMetric | InternalMetric;
public MetricElements getMetricAccess() {
- return (this.pMetric != null) ? this.pMetric : (this.pMetric = new MetricElements());
+ return (pMetric != null) ? pMetric : (pMetric = new MetricElements());
}
public ParserRule getMetricRule() {
- return this.getMetricAccess().getRule();
+ return getMetricAccess().getRule();
}
// ExternalMetric:
// name=MYID;
public ExternalMetricElements getExternalMetricAccess() {
- return (this.pExternalMetric != null) ? this.pExternalMetric
- : (this.pExternalMetric = new ExternalMetricElements());
+ return (pExternalMetric != null) ? pExternalMetric : (pExternalMetric = new ExternalMetricElements());
}
public ParserRule getExternalMetricRule() {
- return this.getExternalMetricAccess().getRule();
+ return getExternalMetricAccess().getRule();
}
// InternalMetric:
- // "Metric" name=MYID "(" shortName=STRING "," description=STRING ")" "{" ("parameters" "{"
+ // "Metric" name=MYID "(" shortName=STRING "," description=STRING ")" "{"
+ // ("parameters" "{"
// parameter+=Number* "}")?
// definition=MetricDefinition "};";
public InternalMetricElements getInternalMetricAccess() {
- return (this.pInternalMetric != null) ? this.pInternalMetric
- : (this.pInternalMetric = new InternalMetricElements());
+ return (pInternalMetric != null) ? pInternalMetric : (pInternalMetric = new InternalMetricElements());
}
public ParserRule getInternalMetricRule() {
- return this.getInternalMetricAccess().getRule();
+ return getInternalMetricAccess().getRule();
}
// Number:
// Parameter | Constant;
public NumberElements getNumberAccess() {
- return (this.pNumber != null) ? this.pNumber : (this.pNumber = new NumberElements());
+ return (pNumber != null) ? pNumber : (pNumber = new NumberElements());
}
public ParserRule getNumberRule() {
- return this.getNumberAccess().getRule();
+ return getNumberAccess().getRule();
}
// Parameter:
- // "Parameter" name=MYID "(" shortname=STRING "," description=STRING "," defaultValue=DOUBLE ")"
+ // "Parameter" name=MYID "(" shortname=STRING "," description=STRING ","
+ // defaultValue=DOUBLE ")"
// ";";
public ParameterElements getParameterAccess() {
- return (this.pParameter != null) ? this.pParameter : (this.pParameter = new ParameterElements());
+ return (pParameter != null) ? pParameter : (pParameter = new ParameterElements());
}
public ParserRule getParameterRule() {
- return this.getParameterAccess().getRule();
+ return getParameterAccess().getRule();
}
// Constant:
// "Const" name=MYID "=" value=DOUBLE ";";
public ConstantElements getConstantAccess() {
- return (this.pConstant != null) ? this.pConstant : (this.pConstant = new ConstantElements());
+ return (pConstant != null) ? pConstant : (pConstant = new ConstantElements());
}
public ParserRule getConstantRule() {
- return this.getConstantAccess().getRule();
+ return getConstantAccess().getRule();
}
// MetricDefinition:
// WeightedMetric | StepwiseMetric | RatioMetric;
public MetricDefinitionElements getMetricDefinitionAccess() {
- return (this.pMetricDefinition != null) ? this.pMetricDefinition
- : (this.pMetricDefinition = new MetricDefinitionElements());
+ return (pMetricDefinition != null) ? pMetricDefinition : (pMetricDefinition = new MetricDefinitionElements());
}
public ParserRule getMetricDefinitionRule() {
- return this.getMetricDefinitionAccess().getRule();
+ return getMetricDefinitionAccess().getRule();
}
// WeightedMetric:
// "WeigthedSum" "{" weights+=MetricAndWeight+ "}";
public WeightedMetricElements getWeightedMetricAccess() {
- return (this.pWeightedMetric != null) ? this.pWeightedMetric
- : (this.pWeightedMetric = new WeightedMetricElements());
+ return (pWeightedMetric != null) ? pWeightedMetric : (pWeightedMetric = new WeightedMetricElements());
}
public ParserRule getWeightedMetricRule() {
- return this.getWeightedMetricAccess().getRule();
+ return getWeightedMetricAccess().getRule();
}
// StepwiseMetric:
// "Stepwise" "[" innerMetric=[Metric|MYID] "]" "{" steps+=BoundAndWeight* "}";
public StepwiseMetricElements getStepwiseMetricAccess() {
- return (this.pStepwiseMetric != null) ? this.pStepwiseMetric
- : (this.pStepwiseMetric = new StepwiseMetricElements());
+ return (pStepwiseMetric != null) ? pStepwiseMetric : (pStepwiseMetric = new StepwiseMetricElements());
}
public ParserRule getStepwiseMetricRule() {
- return this.getStepwiseMetricAccess().getRule();
+ return getStepwiseMetricAccess().getRule();
}
// RatioMetric:
- // "Ratio" "{" nominatorMetric=[Metric|MYID] "/" denominatorMetric=[Metric|MYID] "}";
+ // "Ratio" "{" nominatorMetric=[Metric|MYID] "/" denominatorMetric=[Metric|MYID]
+ // "}";
public RatioMetricElements getRatioMetricAccess() {
- return (this.pRatioMetric != null) ? this.pRatioMetric : (this.pRatioMetric = new RatioMetricElements());
+ return (pRatioMetric != null) ? pRatioMetric : (pRatioMetric = new RatioMetricElements());
}
public ParserRule getRatioMetricRule() {
- return this.getRatioMetricAccess().getRule();
+ return getRatioMetricAccess().getRule();
}
// BoundAndWeight:
// "<" upperBound=[Number|MYID] "," weight=[Number|MYID] ">";
public BoundAndWeightElements getBoundAndWeightAccess() {
- return (this.pBoundAndWeight != null) ? this.pBoundAndWeight
- : (this.pBoundAndWeight = new BoundAndWeightElements());
+ return (pBoundAndWeight != null) ? pBoundAndWeight : (pBoundAndWeight = new BoundAndWeightElements());
}
public ParserRule getBoundAndWeightRule() {
- return this.getBoundAndWeightAccess().getRule();
+ return getBoundAndWeightAccess().getRule();
}
// MetricAndWeight:
// "<" metric=[Metric|MYID] "," weight=[Number|MYID] ">";
public MetricAndWeightElements getMetricAndWeightAccess() {
- return (this.pMetricAndWeight != null) ? this.pMetricAndWeight
- : (this.pMetricAndWeight = new MetricAndWeightElements());
+ return (pMetricAndWeight != null) ? pMetricAndWeight : (pMetricAndWeight = new MetricAndWeightElements());
}
public ParserRule getMetricAndWeightRule() {
- return this.getMetricAndWeightAccess().getRule();
+ return getMetricAndWeightAccess().getRule();
}
// MYID returns ecore::EString:
// ID ("." ID)*;
public MYIDElements getMYIDAccess() {
- return (this.pMYID != null) ? this.pMYID : (this.pMYID = new MYIDElements());
+ return (pMYID != null) ? pMYID : (pMYID = new MYIDElements());
}
public ParserRule getMYIDRule() {
- return this.getMYIDAccess().getRule();
+ return getMYIDAccess().getRule();
}
// terminal DOUBLE returns ecore::EDouble:
// "-"? INT "." INT;
public TerminalRule getDOUBLERule() {
- return (this.tDOUBLE != null) ? this.tDOUBLE
- : (this.tDOUBLE = (TerminalRule) GrammarUtil.findRuleForName(this.getGrammar(), "DOUBLE"));
+ return (tDOUBLE != null) ? tDOUBLE
+ : (tDOUBLE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "DOUBLE"));
}
// terminal ID:
// "^"? ("a".."z" | "A".."Z" | "_") ("a".."z" | "A".."Z" | "_" | "0".."9")*;
public TerminalRule getIDRule() {
- return this.gaTerminals.getIDRule();
+ return gaTerminals.getIDRule();
}
// terminal INT returns ecore::EInt:
// "0".."9"+;
public TerminalRule getINTRule() {
- return this.gaTerminals.getINTRule();
+ return gaTerminals.getINTRule();
}
// terminal STRING:
- // "\"" ("\\" ("b" | "t" | "n" | "f" | "r" | "u" | "\"" | "\'" | "\\") | !("\\" | "\""))* "\"" |
+ // "\"" ("\\" ("b" | "t" | "n" | "f" | "r" | "u" | "\"" | "\'" | "\\") | !("\\"
+ // | "\""))* "\"" |
// "\'" ("\\" ("b" | "t" |
// "n" | "f" | "r" | "u" | "\"" | "\'" | "\\") | !("\\" | "\'"))* "\'";
public TerminalRule getSTRINGRule() {
- return this.gaTerminals.getSTRINGRule();
+ return gaTerminals.getSTRINGRule();
}
// terminal ML_COMMENT:
// "/ *"->"* /";
public TerminalRule getML_COMMENTRule() {
- return this.gaTerminals.getML_COMMENTRule();
+ return gaTerminals.getML_COMMENTRule();
}
// terminal SL_COMMENT:
// "//" !("\n" | "\r")* ("\r"? "\n")?;
public TerminalRule getSL_COMMENTRule() {
- return this.gaTerminals.getSL_COMMENTRule();
+ return gaTerminals.getSL_COMMENTRule();
}
// terminal WS:
// (" " | "\t" | "\r" | "\n")+;
public TerminalRule getWSRule() {
- return this.gaTerminals.getWSRule();
+ return gaTerminals.getWSRule();
}
// terminal ANY_OTHER:
// .;
public TerminalRule getANY_OTHERRule() {
- return this.gaTerminals.getANY_OTHERRule();
+ return gaTerminals.getANY_OTHERRule();
}
}
diff --git a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/validation/AbstractMetricDSLValidator.java b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/validation/AbstractMetricDSLValidator.java
index 8db3641..ea825bc 100644
--- a/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/validation/AbstractMetricDSLValidator.java
+++ b/bundles/org.somox.metrics.dsl/src-gen/org/somox/metrics/dsl/validation/AbstractMetricDSLValidator.java
@@ -12,7 +12,7 @@ public class AbstractMetricDSLValidator extends org.eclipse.xtext.validation.Abs
@Override
protected List getEPackages() {
- final List result = new ArrayList();
+ final List result = new ArrayList<>();
result.add(org.somox.metrics.dsl.metricDSL.MetricDSLPackage.eINSTANCE);
return result;
}
diff --git a/bundles/org.somox.metrics/META-INF/MANIFEST.MF b/bundles/org.somox.metrics/META-INF/MANIFEST.MF
index 71d77a4..ec130ac 100644
--- a/bundles/org.somox.metrics/META-INF/MANIFEST.MF
+++ b/bundles/org.somox.metrics/META-INF/MANIFEST.MF
@@ -12,10 +12,10 @@ Require-Bundle: org.eclipse.core.runtime,
org.somox.filter,
org.somox.kdmhelper,
org.somox.sourcecodedecorator,
- org.emftext.language.java,
org.jgrapht.core,
org.apache.log4j,
- org.somox.sourcecodedecorator
+ org.somox.sourcecodedecorator,
+ tools.mdsd.jamopp.model.java
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-17
Export-Package: org.somox.metrics,
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/IMetric.java b/bundles/org.somox.metrics/src/org/somox/metrics/IMetric.java
index 5e943e0..9d57ebc 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/IMetric.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/IMetric.java
@@ -2,7 +2,6 @@
import java.util.Map;
-import org.emftext.language.java.classifiers.ConcreteClassifier;
import org.jgrapht.graph.DefaultDirectedGraph;
import org.somox.configuration.SoMoXConfiguration;
import org.somox.kdmhelper.metamodeladdition.Root;
@@ -11,6 +10,8 @@
import org.somox.metrics.parameter.ParameterDescriptor;
import org.somox.metrics.tabs.MetricTab;
+import tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier;
+
/**
* Base interface for all SoMoX metrics.
*
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/abstractmetrics/AbstractComposedMetric.java b/bundles/org.somox.metrics/src/org/somox/metrics/abstractmetrics/AbstractComposedMetric.java
index aa0aae2..3cda14a 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/abstractmetrics/AbstractComposedMetric.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/abstractmetrics/AbstractComposedMetric.java
@@ -3,7 +3,6 @@
import java.util.Map;
import org.apache.log4j.Logger;
-import org.emftext.language.java.classifiers.ConcreteClassifier;
import org.jgrapht.graph.DefaultDirectedGraph;
import org.somox.configuration.SoMoXConfiguration;
import org.somox.kdmhelper.metamodeladdition.Root;
@@ -14,6 +13,8 @@
import org.somox.metrics.helper.ClassAccessGraphEdge;
import org.somox.metrics.helper.ComponentToImplementingClassesHelper;
+import tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier;
+
//import de.fzi.gast.core.Root;
//import de.fzi.gast.types.GASTClass;
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/abstractmetrics/AbstractMetric.java b/bundles/org.somox.metrics/src/org/somox/metrics/abstractmetrics/AbstractMetric.java
index 2302149..1101594 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/abstractmetrics/AbstractMetric.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/abstractmetrics/AbstractMetric.java
@@ -5,7 +5,6 @@
import java.util.Set;
import org.apache.log4j.Logger;
-import org.emftext.language.java.classifiers.ConcreteClassifier;
import org.jgrapht.graph.DefaultDirectedGraph;
import org.somox.configuration.SoMoXConfiguration;
import org.somox.kdmhelper.metamodeladdition.Root;
@@ -21,6 +20,8 @@
//import de.fzi.gast.types.GASTClass;
import org.somox.sourcecodedecorator.ComponentImplementingClassesLink;
+import tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier;
+
/**
* Abstract base class of all metrics, contains convenience functions and basic
* method implementations
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/basic/AbstractTypesCount.java b/bundles/org.somox.metrics/src/org/somox/metrics/basic/AbstractTypesCount.java
index a5a8d0e..0dd72ee 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/basic/AbstractTypesCount.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/basic/AbstractTypesCount.java
@@ -2,7 +2,6 @@
import java.util.Set;
-import org.emftext.language.java.classifiers.ConcreteClassifier;
import org.somox.filter.BaseFilter;
import org.somox.filter.FilteredCollectionsFactory;
import org.somox.kdmhelper.KDMHelper;
@@ -10,6 +9,8 @@
import org.somox.metrics.MetricID;
import org.somox.metrics.abstractmetrics.AbstractCountingMetric;
+import tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier;
+
public class AbstractTypesCount extends AbstractCountingMetric {
public static final MetricID METRIC_ID = new MetricID("org.somox.metric.basic.AbstractTypesCount");
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/basic/AfferentCoupling.java b/bundles/org.somox.metrics/src/org/somox/metrics/basic/AfferentCoupling.java
index fb7a231..744acb8 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/basic/AfferentCoupling.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/basic/AfferentCoupling.java
@@ -2,11 +2,12 @@
import java.util.Set;
-import org.emftext.language.java.classifiers.ConcreteClassifier;
import org.somox.metrics.ClusteringRelation;
import org.somox.metrics.MetricID;
import org.somox.metrics.abstractmetrics.AbstractCountingMetric;
+import tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier;
+
//import de.fzi.gast.types.GASTClass;
/**
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/basic/EfferentCoupling.java b/bundles/org.somox.metrics/src/org/somox/metrics/basic/EfferentCoupling.java
index 301f971..b6551a1 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/basic/EfferentCoupling.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/basic/EfferentCoupling.java
@@ -2,11 +2,12 @@
import java.util.Set;
-import org.emftext.language.java.classifiers.ConcreteClassifier;
import org.somox.metrics.ClusteringRelation;
import org.somox.metrics.MetricID;
import org.somox.metrics.abstractmetrics.AbstractCountingMetric;
+import tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier;
+
//import de.fzi.gast.types.GASTClass;
/**
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/basic/InterfaceAccessesCount.java b/bundles/org.somox.metrics/src/org/somox/metrics/basic/InterfaceAccessesCount.java
index e4bbe8a..9d175c4 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/basic/InterfaceAccessesCount.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/basic/InterfaceAccessesCount.java
@@ -3,7 +3,6 @@
import java.util.Set;
import org.apache.log4j.Logger;
-import org.emftext.language.java.classifiers.ConcreteClassifier;
import org.somox.filter.BaseFilter;
import org.somox.filter.FilteredCollectionsFactory;
import org.somox.kdmhelper.KDMHelper;
@@ -11,6 +10,8 @@
import org.somox.metrics.MetricID;
import org.somox.metrics.abstractmetrics.AbstractCountingMetric;
+import tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier;
+
public class InterfaceAccessesCount extends AbstractCountingMetric {
private static final Logger logger = Logger.getLogger(InterfaceAccessesCount.class);
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/basic/InternalAccessesCount.java b/bundles/org.somox.metrics/src/org/somox/metrics/basic/InternalAccessesCount.java
index 4c056df..ae75cf2 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/basic/InternalAccessesCount.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/basic/InternalAccessesCount.java
@@ -2,11 +2,12 @@
import java.util.Set;
-import org.emftext.language.java.classifiers.ConcreteClassifier;
import org.somox.metrics.ClusteringRelation;
import org.somox.metrics.MetricID;
import org.somox.metrics.abstractmetrics.AbstractCountingMetric;
+import tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier;
+
public class InternalAccessesCount extends AbstractCountingMetric {
public final static MetricID METRIC_ID = new MetricID("org.somox.metrics.basic.InternalAccessesCount");
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/basic/TotalTypesCount.java b/bundles/org.somox.metrics/src/org/somox/metrics/basic/TotalTypesCount.java
index 20c2066..27854b1 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/basic/TotalTypesCount.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/basic/TotalTypesCount.java
@@ -2,11 +2,12 @@
import java.util.Set;
-import org.emftext.language.java.classifiers.ConcreteClassifier;
import org.somox.metrics.ClusteringRelation;
import org.somox.metrics.MetricID;
import org.somox.metrics.abstractmetrics.AbstractCountingMetric;
+import tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier;
+
public class TotalTypesCount extends AbstractCountingMetric {
public static final MetricID METRIC_ID = new MetricID("org.somox.metrics.basic.TotalTypesCount");
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/helper/Class2ClassAccessGraphHelper.java b/bundles/org.somox.metrics/src/org/somox/metrics/helper/Class2ClassAccessGraphHelper.java
index 4b66259..3a2ebce 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/helper/Class2ClassAccessGraphHelper.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/helper/Class2ClassAccessGraphHelper.java
@@ -4,9 +4,6 @@
import org.apache.log4j.Logger;
import org.eclipse.emf.ecore.EObject;
-import org.emftext.language.java.classifiers.ConcreteClassifier;
-import org.emftext.language.java.types.Type;
-import org.emftext.language.java.types.TypeReference;
import org.jgrapht.Graph;
import org.jgrapht.graph.DefaultDirectedGraph;
import org.somox.configuration.SoMoXConfiguration;
@@ -16,6 +13,10 @@
import org.somox.kdmhelper.KDMHelper;
import org.somox.metrics.util.GraphPrinter;
+import tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier;
+import tools.mdsd.jamopp.model.java.types.Type;
+import tools.mdsd.jamopp.model.java.types.TypeReference;
+
//import de.fzi.gast.accesses.Access;
//import de.fzi.gast.accesses.accessesPackage;
//import de.fzi.gast.types.GASTClass;
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/helper/ClassAccessGraphEdge.java b/bundles/org.somox.metrics/src/org/somox/metrics/helper/ClassAccessGraphEdge.java
index a57c564..5eecebe 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/helper/ClassAccessGraphEdge.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/helper/ClassAccessGraphEdge.java
@@ -1,8 +1,9 @@
package org.somox.metrics.helper;
-import org.emftext.language.java.types.Type;
import org.somox.kdmhelper.KDMHelper;
+import tools.mdsd.jamopp.model.java.types.Type;
+
//import de.fzi.gast.types.GASTClass;
/**
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/helper/ComponentToImplementingClassesHelper.java b/bundles/org.somox.metrics/src/org/somox/metrics/helper/ComponentToImplementingClassesHelper.java
index c28c685..579ba6a 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/helper/ComponentToImplementingClassesHelper.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/helper/ComponentToImplementingClassesHelper.java
@@ -6,12 +6,13 @@
import java.util.Map;
import java.util.Set;
-import org.emftext.language.java.classifiers.ConcreteClassifier;
-import org.emftext.language.java.types.Type;
//import de.fzi.gast.types.GASTClass;
import org.somox.sourcecodedecorator.ComponentImplementingClassesLink;
import org.somox.sourcecodedecorator.InterfaceSourceCodeLink;
+import tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier;
+import tools.mdsd.jamopp.model.java.types.Type;
+
/**
* Helper for calculating recursively associated classes for a component.
*
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/helper/SourceClassEdgeFilter.java b/bundles/org.somox.metrics/src/org/somox/metrics/helper/SourceClassEdgeFilter.java
index a242da4..f7c594c 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/helper/SourceClassEdgeFilter.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/helper/SourceClassEdgeFilter.java
@@ -2,9 +2,10 @@
import java.util.Set;
-import org.emftext.language.java.classifiers.ConcreteClassifier;
import org.somox.filter.BaseFilter;
+import tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier;
+
//import de.fzi.gast.types.GASTClass;
public class SourceClassEdgeFilter extends BaseFilter {
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/helper/TargetClassEdgeFilter.java b/bundles/org.somox.metrics/src/org/somox/metrics/helper/TargetClassEdgeFilter.java
index 3401031..7bd5791 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/helper/TargetClassEdgeFilter.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/helper/TargetClassEdgeFilter.java
@@ -2,9 +2,10 @@
import java.util.Set;
-import org.emftext.language.java.classifiers.ConcreteClassifier;
import org.somox.filter.BaseFilter;
+import tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier;
+
//import de.fzi.gast.types.GASTClass;
public class TargetClassEdgeFilter extends BaseFilter {
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/hierarchy/AbstractHierarchyMapping.java b/bundles/org.somox.metrics/src/org/somox/metrics/hierarchy/AbstractHierarchyMapping.java
index 92b3d6d..c323be0 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/hierarchy/AbstractHierarchyMapping.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/hierarchy/AbstractHierarchyMapping.java
@@ -6,11 +6,12 @@
import java.util.Set;
import org.apache.log4j.Logger;
-import org.emftext.language.java.classifiers.ConcreteClassifier;
-import org.emftext.language.java.types.Type;
import org.somox.metrics.ClusteringRelation;
import org.somox.metrics.abstractmetrics.AbstractMetric;
+import tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier;
+import tools.mdsd.jamopp.model.java.types.Type;
+
//import de.fzi.gast.core.ModelElement;
//import de.fzi.gast.types.GASTClass;
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/hierarchy/DirectoryMapping.java b/bundles/org.somox.metrics/src/org/somox/metrics/hierarchy/DirectoryMapping.java
index 7e17681..3e1b9c4 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/hierarchy/DirectoryMapping.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/hierarchy/DirectoryMapping.java
@@ -1,12 +1,13 @@
package org.somox.metrics.hierarchy;
-import org.emftext.language.java.containers.Package;
+import org.somox.kdmhelper.KDMHelper;
+import org.somox.metrics.MetricID;
+
+import tools.mdsd.jamopp.model.java.containers.Package;
//package org.somox.metrics.hierarchy;
-import org.emftext.language.java.types.Type;
-import org.somox.kdmhelper.KDMHelper;
-import org.somox.metrics.MetricID;
+import tools.mdsd.jamopp.model.java.types.Type;
//import de.fzi.gast.core.Package;
//import de.fzi.gast.types.GASTClass;
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/hierarchy/PackageMapping.java b/bundles/org.somox.metrics/src/org/somox/metrics/hierarchy/PackageMapping.java
index 4d74a14..7a077c1 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/hierarchy/PackageMapping.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/hierarchy/PackageMapping.java
@@ -1,12 +1,13 @@
package org.somox.metrics.hierarchy;
-import org.emftext.language.java.containers.Package;
+import org.somox.kdmhelper.KDMHelper;
+import org.somox.metrics.MetricID;
+
+import tools.mdsd.jamopp.model.java.containers.Package;
//import de.fzi.gast.core.Package;
//import de.fzi.gast.types.GASTClass;
//import Type;
-import org.emftext.language.java.types.Type;
-import org.somox.kdmhelper.KDMHelper;
-import org.somox.metrics.MetricID;
+import tools.mdsd.jamopp.model.java.types.Type;
/**
* PackageMapping metric: Checks how well component candidates are arranged in
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/naming/NameResemblance.java b/bundles/org.somox.metrics/src/org/somox/metrics/naming/NameResemblance.java
index ce793b9..c287be4 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/naming/NameResemblance.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/naming/NameResemblance.java
@@ -8,8 +8,6 @@
import java.util.StringTokenizer;
import org.apache.log4j.Logger;
-import org.emftext.language.java.classifiers.ConcreteClassifier;
-import org.emftext.language.java.types.Type;
import org.jgrapht.graph.DefaultDirectedGraph;
import org.somox.configuration.SoMoXConfiguration;
import org.somox.kdmhelper.KDMHelper;
@@ -23,6 +21,9 @@
import org.somox.metrics.tabs.MetricTab;
import org.somox.metrics.tabs.NameResemblanceTab;
+import tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier;
+import tools.mdsd.jamopp.model.java.types.Type;
+
class NamePair {
private final Type class1;
private final Type class2;
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/structure/SliceLayerArchitectureQuality.java b/bundles/org.somox.metrics/src/org/somox/metrics/structure/SliceLayerArchitectureQuality.java
index 0d7aa15..a648bfb 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/structure/SliceLayerArchitectureQuality.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/structure/SliceLayerArchitectureQuality.java
@@ -3,13 +3,14 @@
import java.util.Set;
import org.eclipse.emf.common.util.EList;
-import org.emftext.language.java.classifiers.ConcreteClassifier;
-import org.emftext.language.java.types.Type;
import org.somox.kdmhelper.KDMHelper;
import org.somox.metrics.ClusteringRelation;
import org.somox.metrics.MetricID;
import org.somox.metrics.abstractmetrics.AbstractMetric;
+import tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier;
+import tools.mdsd.jamopp.model.java.types.Type;
+
//import de.fzi.gast.types.GASTClass;
/**
@@ -47,18 +48,18 @@ protected void internalComputeDirected(final ClusteringRelation relationToComput
.deriveImplementingClasses(relationToCompute.getTargetComponent());
// compute overall prefix
- final org.emftext.language.java.containers.Package prefixPackage = computePrefix(classes1, classes2);
+ final tools.mdsd.jamopp.model.java.containers.Package prefixPackage = computePrefix(classes1, classes2);
if (prefixPackage == null) {
relationToCompute.setResultMetric(getMID(), 0.0);
return;
}
- final EList slices = KDMHelper.getOwnedPackages(prefixPackage);
- EList layers = null;
+ final EList slices = KDMHelper.getOwnedPackages(prefixPackage);
+ EList layers = null;
// compute the maximum number of layers in a slice
int max = 0;
- for (final org.emftext.language.java.containers.Package current : slices) {
+ for (final tools.mdsd.jamopp.model.java.containers.Package current : slices) {
if (KDMHelper.getOwnedPackages(current).size() >= max) {
layers = KDMHelper.getOwnedPackages(current);
max = layers.size();
@@ -72,11 +73,11 @@ protected void internalComputeDirected(final ClusteringRelation relationToComput
final int expectedSubsystems = slices.size() * layers.size();
int existingSubsystems = 0;
- for (final org.emftext.language.java.containers.Package currentSlice : slices) {
- final EList currentLayers = KDMHelper
+ for (final tools.mdsd.jamopp.model.java.containers.Package currentSlice : slices) {
+ final EList currentLayers = KDMHelper
.getOwnedPackages(currentSlice);
- for (final org.emftext.language.java.containers.Package currentReferencePackage : layers) {
- for (final org.emftext.language.java.containers.Package currentLayer : currentLayers) {
+ for (final tools.mdsd.jamopp.model.java.containers.Package currentReferencePackage : layers) {
+ for (final tools.mdsd.jamopp.model.java.containers.Package currentLayer : currentLayers) {
if (currentLayer.getName().equals(currentReferencePackage.getName())) {
existingSubsystems++;
break;
@@ -117,10 +118,10 @@ public MetricID getMID() {
* @return the last package in the package-hierarchy in which all elements are
* included
*/
- private org.emftext.language.java.containers.Package computePrefix(final Set elements1,
+ private tools.mdsd.jamopp.model.java.containers.Package computePrefix(final Set elements1,
final Set elements2) {
boolean prefixFound = false;
- org.emftext.language.java.containers.Package currentPackage = null;
+ tools.mdsd.jamopp.model.java.containers.Package currentPackage = null;
for (final Type current : elements1) {
if (KDMHelper.getSurroundingPackage(current) != null) {
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/structure/SubsystemComponent.java b/bundles/org.somox.metrics/src/org/somox/metrics/structure/SubsystemComponent.java
index fd2b7ff..e371f67 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/structure/SubsystemComponent.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/structure/SubsystemComponent.java
@@ -5,9 +5,6 @@
import java.util.Set;
import org.eclipse.emf.common.util.EList;
-import org.emftext.language.java.classifiers.ConcreteClassifier;
-import org.emftext.language.java.containers.Package;
-import org.emftext.language.java.types.Type;
import org.jgrapht.graph.DefaultDirectedGraph;
import org.somox.configuration.SoMoXConfiguration;
import org.somox.kdmhelper.KDMHelper;
@@ -19,6 +16,10 @@
import org.somox.metrics.helper.ClassAccessGraphEdge;
import org.somox.metrics.helper.ComponentToImplementingClassesHelper;
+import tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier;
+import tools.mdsd.jamopp.model.java.containers.Package;
+import tools.mdsd.jamopp.model.java.types.Type;
+
//import de.fzi.gast.core.Package;
//import de.fzi.gast.core.Root;
//import de.fzi.gast.types.GASTClass;
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/tabs/BlacklistTab.java b/bundles/org.somox.metrics/src/org/somox/metrics/tabs/BlacklistTab.java
index ff5237b..1a7c85e 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/tabs/BlacklistTab.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/tabs/BlacklistTab.java
@@ -28,12 +28,13 @@
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Tree;
-import org.emftext.language.java.commons.Commentable;
-import org.emftext.language.java.types.Type;
import org.somox.configuration.SoMoXConfiguration;
import org.somox.kdmhelper.KDMHelper;
import org.somox.kdmhelper.metamodeladdition.Root;
+import tools.mdsd.jamopp.model.java.commons.Commentable;
+import tools.mdsd.jamopp.model.java.types.Type;
+
//import de.fzi.gast.core.Root;
//import de.fzi.gast.types.GASTClass;
@@ -306,9 +307,9 @@ private void initializeTreeViewer(final Set wildcardSet) {
checkboxTreeViewer.collapseAll();
for (final Object currentElement : elements) {
- if (currentElement instanceof org.emftext.language.java.containers.Package) {
- if (wildcardSet.contains(KDMHelper
- .computeFullQualifiedName(((org.emftext.language.java.containers.Package) currentElement)))) {
+ if (currentElement instanceof tools.mdsd.jamopp.model.java.containers.Package) {
+ if (wildcardSet.contains(KDMHelper.computeFullQualifiedName(
+ ((tools.mdsd.jamopp.model.java.containers.Package) currentElement)))) {
checkboxTreeViewer.setChecked(currentElement, true);
}
} else if ((currentElement instanceof Type)
@@ -347,12 +348,12 @@ private Set getTreeSelection() {
if (current instanceof Type) {
// wildcards[i] = ((GASTClass) current).getQualifiedName();
wildcards.add(KDMHelper.computeFullQualifiedName(((Type) current)));
- } else if (current instanceof org.emftext.language.java.containers.Package) {
+ } else if (current instanceof tools.mdsd.jamopp.model.java.containers.Package) {
// wildcards[i] = ((de.fzi.gast.core.Package) current).getQualifiedName()+ ".*";
// TODO: wildcard for packages conflict with usability
- wildcards.add(
- KDMHelper.computeFullQualifiedName(((org.emftext.language.java.containers.Package) current)));
+ wildcards.add(KDMHelper
+ .computeFullQualifiedName(((tools.mdsd.jamopp.model.java.containers.Package) current)));
}
// i++;
}
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/tabs/CheckboxContentProvider.java b/bundles/org.somox.metrics/src/org/somox/metrics/tabs/CheckboxContentProvider.java
index a2b629e..c4e9a2e 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/tabs/CheckboxContentProvider.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/tabs/CheckboxContentProvider.java
@@ -2,11 +2,12 @@
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.Viewer;
-import org.emftext.language.java.containers.Package;
-import org.emftext.language.java.types.Type;
import org.somox.kdmhelper.KDMHelper;
import org.somox.kdmhelper.metamodeladdition.Root;
+import tools.mdsd.jamopp.model.java.containers.Package;
+import tools.mdsd.jamopp.model.java.types.Type;
+
//import de.fzi.gast.core.Root;
//import de.fzi.gast.types.GASTClass;
@@ -18,7 +19,8 @@ public Object[] getChildren(final Object parentElement) {
return ((Root) parentElement).getPackages().toArray();
}
if (parentElement instanceof Package) {
- return KDMHelper.getOwnedPackages((org.emftext.language.java.containers.Package) parentElement).toArray();
+ return KDMHelper.getOwnedPackages((tools.mdsd.jamopp.model.java.containers.Package) parentElement)
+ .toArray();
// Object [] classes = ((Package) parentElement).getOwnedElements().toArray();
//
// Object [] elements = new Object [packages.length + classes.length];
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/tabs/CheckboxLabelProvider.java b/bundles/org.somox.metrics/src/org/somox/metrics/tabs/CheckboxLabelProvider.java
index 473a57a..837cd04 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/tabs/CheckboxLabelProvider.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/tabs/CheckboxLabelProvider.java
@@ -3,9 +3,10 @@
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.swt.graphics.Image;
-import org.emftext.language.java.types.Type;
import org.somox.kdmhelper.metamodeladdition.Root;
+import tools.mdsd.jamopp.model.java.types.Type;
+
//import de.fzi.gast.core.Root;
//import de.fzi.gast.types.GASTClass;
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/util/AccessCacheGraph.java b/bundles/org.somox.metrics/src/org/somox/metrics/util/AccessCacheGraph.java
index acf7991..e46ef7c 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/util/AccessCacheGraph.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/util/AccessCacheGraph.java
@@ -4,7 +4,6 @@
import java.util.Set;
import org.apache.log4j.Logger;
-import org.emftext.language.java.classifiers.ConcreteClassifier;
import org.jgrapht.graph.DefaultDirectedGraph;
import org.somox.filter.BaseFilter;
import org.somox.filter.NotFilter;
@@ -12,6 +11,8 @@
import org.somox.metrics.helper.SourceClassEdgeFilter;
import org.somox.metrics.helper.TargetClassEdgeFilter;
+import tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier;
+
//import de.fzi.gast.types.GASTClass;
/**
diff --git a/bundles/org.somox.metrics/src/org/somox/metrics/util/GraphPrinter.java b/bundles/org.somox.metrics/src/org/somox/metrics/util/GraphPrinter.java
index 5a821cf..a63f665 100644
--- a/bundles/org.somox.metrics/src/org/somox/metrics/util/GraphPrinter.java
+++ b/bundles/org.somox.metrics/src/org/somox/metrics/util/GraphPrinter.java
@@ -10,14 +10,15 @@
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IPath;
-import org.emftext.language.java.classifiers.ConcreteClassifier;
-import org.emftext.language.java.types.Type;
import org.jgrapht.Graph;
import org.somox.kdmhelper.KDMHelper;
import org.somox.metrics.helper.ComponentToImplementingClassesHelper;
//import de.fzi.gast.types.GASTClass;
import org.somox.sourcecodedecorator.ComponentImplementingClassesLink;
+import tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier;
+import tools.mdsd.jamopp.model.java.types.Type;
+
/**
* Helper class used in SoMoX to dump internal graphs in GraphML and DOT file
* format for debugging and metric calibration
diff --git a/bundles/org.somox.metricvaluesstorage/META-INF/MANIFEST.MF b/bundles/org.somox.metricvaluesstorage/META-INF/MANIFEST.MF
index 3e4c963..2b34cf2 100644
--- a/bundles/org.somox.metricvaluesstorage/META-INF/MANIFEST.MF
+++ b/bundles/org.somox.metricvaluesstorage/META-INF/MANIFEST.MF
@@ -10,8 +10,8 @@ Export-Package: metricvalues,
metricvalues.impl,
metricvalues.util
Require-Bundle: org.eclipse.emf.ecore.xmi,
- org.emftext.language.java,
org.eclipse.core.runtime,
- org.eclipse.emf.ecore;visibility:=reexport
+ org.eclipse.emf.ecore;visibility:=reexport,
+ tools.mdsd.jamopp.model.java
Bundle-ActivationPolicy: lazy
Automatic-Module-Name: org.somox.metricvaluesstorage
diff --git a/bundles/org.somox.metricvaluesstorage/MetricValues2.ecore b/bundles/org.somox.metricvaluesstorage/model/MetricValues2.ecore
old mode 100755
new mode 100644
similarity index 97%
rename from bundles/org.somox.metricvaluesstorage/MetricValues2.ecore
rename to bundles/org.somox.metricvaluesstorage/model/MetricValues2.ecore
index 0c7fa37..20759d5
--- a/bundles/org.somox.metricvaluesstorage/MetricValues2.ecore
+++ b/bundles/org.somox.metricvaluesstorage/model/MetricValues2.ecore
@@ -1,72 +1,72 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/bundles/org.somox.metricvaluesstorage/MetricValues2.ecorediag b/bundles/org.somox.metricvaluesstorage/model/MetricValues2.ecorediag
old mode 100755
new mode 100644
similarity index 98%
rename from bundles/org.somox.metricvaluesstorage/MetricValues2.ecorediag
rename to bundles/org.somox.metricvaluesstorage/model/MetricValues2.ecorediag
index 4e82ceb..6733837
--- a/bundles/org.somox.metricvaluesstorage/MetricValues2.ecorediag
+++ b/bundles/org.somox.metricvaluesstorage/model/MetricValues2.ecorediag
@@ -1,236 +1,236 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/bundles/org.somox.metricvaluesstorage/MetricValues2.genmodel b/bundles/org.somox.metricvaluesstorage/model/MetricValues2.genmodel
old mode 100755
new mode 100644
similarity index 89%
rename from bundles/org.somox.metricvaluesstorage/MetricValues2.genmodel
rename to bundles/org.somox.metricvaluesstorage/model/MetricValues2.genmodel
index c14b744..8dc98d0
--- a/bundles/org.somox.metricvaluesstorage/MetricValues2.genmodel
+++ b/bundles/org.somox.metricvaluesstorage/model/MetricValues2.genmodel
@@ -1,60 +1,63 @@
-
-
- MetricValues2.ecore
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ MetricValues2.ecore
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/bundles/org.somox.metricvaluesstorage/src/metricvalues/Component.java b/bundles/org.somox.metricvaluesstorage/src/metricvalues/Component.java
index eeb5085..9f0dc77 100755
--- a/bundles/org.somox.metricvaluesstorage/src/metricvalues/Component.java
+++ b/bundles/org.somox.metricvaluesstorage/src/metricvalues/Component.java
@@ -4,7 +4,8 @@
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
-import org.emftext.language.java.types.Type;
+
+import tools.mdsd.jamopp.model.java.types.Type;
/**
* A representation of the model object
@@ -100,7 +101,7 @@ public interface Component extends EObject {
/**
* Returns the value of the 'Classes' reference list. The list
- * contents are of type {@link org.emftext.language.java.types.Type}.
*
* If the meaning of the 'Classes' reference list isn't clear, there
diff --git a/bundles/org.somox.metricvaluesstorage/src/metricvalues/impl/ComponentImpl.java b/bundles/org.somox.metricvaluesstorage/src/metricvalues/impl/ComponentImpl.java
index 55c7e33..52ca4a4 100755
--- a/bundles/org.somox.metricvaluesstorage/src/metricvalues/impl/ComponentImpl.java
+++ b/bundles/org.somox.metricvaluesstorage/src/metricvalues/impl/ComponentImpl.java
@@ -14,10 +14,10 @@
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.EObjectResolvingEList;
import org.eclipse.emf.ecore.util.InternalEList;
-import org.emftext.language.java.types.Type;
import metricvalues.Component;
import metricvalues.MetricvaluesPackage;
+import tools.mdsd.jamopp.model.java.types.Type;
/**
* An implementation of the model object
diff --git a/bundles/org.somox.metricvaluesstorage/src/metricvalues/impl/MetricvaluesPackageImpl.java b/bundles/org.somox.metricvaluesstorage/src/metricvalues/impl/MetricvaluesPackageImpl.java
index 6c9d6f2..8117816 100755
--- a/bundles/org.somox.metricvaluesstorage/src/metricvalues/impl/MetricvaluesPackageImpl.java
+++ b/bundles/org.somox.metricvaluesstorage/src/metricvalues/impl/MetricvaluesPackageImpl.java
@@ -7,24 +7,6 @@
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.emftext.language.java.annotations.AnnotationsPackage;
-import org.emftext.language.java.arrays.ArraysPackage;
-import org.emftext.language.java.classifiers.ClassifiersPackage;
-import org.emftext.language.java.commons.CommonsPackage;
-import org.emftext.language.java.containers.ContainersPackage;
-import org.emftext.language.java.expressions.ExpressionsPackage;
-import org.emftext.language.java.generics.GenericsPackage;
-import org.emftext.language.java.imports.ImportsPackage;
-import org.emftext.language.java.instantiations.InstantiationsPackage;
-import org.emftext.language.java.literals.LiteralsPackage;
-import org.emftext.language.java.members.MembersPackage;
-import org.emftext.language.java.modifiers.ModifiersPackage;
-import org.emftext.language.java.operators.OperatorsPackage;
-import org.emftext.language.java.parameters.ParametersPackage;
-import org.emftext.language.java.references.ReferencesPackage;
-import org.emftext.language.java.statements.StatementsPackage;
-import org.emftext.language.java.types.TypesPackage;
-import org.emftext.language.java.variables.VariablesPackage;
import metricvalues.Component;
import metricvalues.ComponentCandidate;
@@ -33,6 +15,24 @@
import metricvalues.MetricValuesModel;
import metricvalues.MetricvaluesFactory;
import metricvalues.MetricvaluesPackage;
+import tools.mdsd.jamopp.model.java.annotations.AnnotationsPackage;
+import tools.mdsd.jamopp.model.java.arrays.ArraysPackage;
+import tools.mdsd.jamopp.model.java.classifiers.ClassifiersPackage;
+import tools.mdsd.jamopp.model.java.commons.CommonsPackage;
+import tools.mdsd.jamopp.model.java.containers.ContainersPackage;
+import tools.mdsd.jamopp.model.java.expressions.ExpressionsPackage;
+import tools.mdsd.jamopp.model.java.generics.GenericsPackage;
+import tools.mdsd.jamopp.model.java.imports.ImportsPackage;
+import tools.mdsd.jamopp.model.java.instantiations.InstantiationsPackage;
+import tools.mdsd.jamopp.model.java.literals.LiteralsPackage;
+import tools.mdsd.jamopp.model.java.members.MembersPackage;
+import tools.mdsd.jamopp.model.java.modifiers.ModifiersPackage;
+import tools.mdsd.jamopp.model.java.operators.OperatorsPackage;
+import tools.mdsd.jamopp.model.java.parameters.ParametersPackage;
+import tools.mdsd.jamopp.model.java.references.ReferencesPackage;
+import tools.mdsd.jamopp.model.java.statements.StatementsPackage;
+import tools.mdsd.jamopp.model.java.types.TypesPackage;
+import tools.mdsd.jamopp.model.java.variables.VariablesPackage;
/**
* An implementation of the model Package.
+ * This is the item provider adapter for a
+ * {@link org.somox.seff2javaast.SEFF2JavaAST} object.
+ *
*
* @generated
*/
public class SEFF2JavaASTItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
- * This constructs an instance from a factory and a notifier.
+ * This constructs an instance from a factory and a notifier.
*
* @generated
*/
@@ -40,36 +41,36 @@ public SEFF2JavaASTItemProvider(final AdapterFactory adapterFactory) {
}
/**
- * This returns the property descriptors for the adapted class.
+ * This returns the property descriptors for the adapted class.
*
* @generated
*/
@Override
public List getPropertyDescriptors(final Object object) {
- if (this.itemPropertyDescriptors == null) {
+ if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
}
- return this.itemPropertyDescriptors;
+ return itemPropertyDescriptors;
}
/**
- * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate
- * feature for an {@link org.eclipse.emf.edit.command.AddCommand},
+ * This specifies how to implement {@link #getChildren} and is used to deduce an
+ * appropriate feature for an {@link org.eclipse.emf.edit.command.AddCommand},
* {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ *
*
* @generated
*/
@Override
public Collection extends EStructuralFeature> getChildrenFeatures(final Object object) {
- if (this.childrenFeatures == null) {
+ if (childrenFeatures == null) {
super.getChildrenFeatures(object);
- this.childrenFeatures.add(Seff2javaastPackage.Literals.SEFF2_JAVA_AST__SEFF2_METHOD_MAPPINGS);
+ childrenFeatures.add(Seff2javaastPackage.Literals.SEFF2_JAVA_AST__SEFF2_METHOD_MAPPINGS);
}
- return this.childrenFeatures;
+ return childrenFeatures;
}
/**
@@ -79,7 +80,8 @@ public Collection extends EStructuralFeature> getChildrenFeatures(final Object
*/
@Override
protected EStructuralFeature getChildFeature(final Object object, final Object child) {
- // Check the type of the specified child object and return the proper feature to use for
+ // Check the type of the specified child object and return the proper feature to
+ // use for
// adding (see {@link AddCommand}) it as a child.
return super.getChildFeature(object, child);
@@ -92,12 +94,12 @@ protected EStructuralFeature getChildFeature(final Object object, final Object c
*/
@Override
public Object getImage(final Object object) {
- return this.overlayImage(object, this.getResourceLocator().getImage("full/obj16/SEFF2JavaAST"));
+ return overlayImage(object, this.getResourceLocator().getImage("full/obj16/SEFF2JavaAST"));
}
/**
- * This returns the label text for the adapted class.
+ * This returns the label text for the adapted class.
+ *
*
* @generated
*/
@@ -107,27 +109,28 @@ public String getText(final Object object) {
}
/**
- * This handles model notifications by calling {@link #updateChildren} to update any cached
- * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}
- * .
+ * This handles model notifications by calling {@link #updateChildren} to update
+ * any cached children and by creating a viewer notification, which it passes to
+ * {@link #fireNotifyChanged} .
*
* @generated
*/
@Override
public void notifyChanged(final Notification notification) {
- this.updateChildren(notification);
+ updateChildren(notification);
switch (notification.getFeatureID(SEFF2JavaAST.class)) {
case Seff2javaastPackage.SEFF2_JAVA_AST__SEFF2_METHOD_MAPPINGS:
- this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
}
super.notifyChanged(notification);
}
/**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that
- * can be created under this object.
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing
+ * the children that can be created under this object.
+ *
*
* @generated
*/
@@ -135,14 +138,13 @@ public void notifyChanged(final Notification notification) {
protected void collectNewChildDescriptors(final Collection