public class MetricDSLSwitch<T> extends Switch<T>
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.
MetricDSLPackage| Constructor and Description |
|---|
MetricDSLSwitch()
Creates an instance of the switch.
|
| Modifier and Type | Method and Description |
|---|---|
T |
caseBoundAndWeight(BoundAndWeight object)
Returns the result of interpreting the object as an instance of 'Bound And Weight'.
|
T |
caseConstant(Constant object)
Returns the result of interpreting the object as an instance of 'Constant'.
|
T |
caseExternalMetric(ExternalMetric object)
Returns the result of interpreting the object as an instance of 'External Metric'.
|
T |
caseInternalMetric(InternalMetric object)
Returns the result of interpreting the object as an instance of 'Internal Metric'.
|
T |
caseMetric(Metric object)
Returns the result of interpreting the object as an instance of 'Metric'.
|
T |
caseMetricAndWeight(MetricAndWeight object)
Returns the result of interpreting the object as an instance of 'Metric And Weight'.
|
T |
caseMetricDefinition(MetricDefinition object)
Returns the result of interpreting the object as an instance of 'Metric Definition'.
|
T |
caseMetricModel(MetricModel object)
Returns the result of interpreting the object as an instance of 'Metric Model'.
|
T |
caseNumber(Number object)
Returns the result of interpreting the object as an instance of 'Number'.
|
T |
caseParameter(Parameter object)
Returns the result of interpreting the object as an instance of 'Parameter'.
|
T |
caseRatioMetric(RatioMetric object)
Returns the result of interpreting the object as an instance of 'Ratio Metric'.
|
T |
caseStepwiseMetric(StepwiseMetric object)
Returns the result of interpreting the object as an instance of 'Stepwise Metric'.
|
T |
caseWeightedMetric(WeightedMetric object)
Returns the result of interpreting the object as an instance of 'Weighted Metric'.
|
T |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
public MetricDSLSwitch()
public T caseMetricModel(MetricModel object)
object - the target of the switch.doSwitch(EObject)public T caseMetric(Metric object)
object - the target of the switch.doSwitch(EObject)public T caseExternalMetric(ExternalMetric object)
object - the target of the switch.doSwitch(EObject)public T caseInternalMetric(InternalMetric object)
object - the target of the switch.doSwitch(EObject)public T caseNumber(Number object)
object - the target of the switch.doSwitch(EObject)public T caseParameter(Parameter object)
object - the target of the switch.doSwitch(EObject)public T caseConstant(Constant object)
object - the target of the switch.doSwitch(EObject)public T caseMetricDefinition(MetricDefinition object)
object - the target of the switch.doSwitch(EObject)public T caseWeightedMetric(WeightedMetric object)
object - the target of the switch.doSwitch(EObject)public T caseStepwiseMetric(StepwiseMetric object)
object - the target of the switch.doSwitch(EObject)public T caseRatioMetric(RatioMetric object)
object - the target of the switch.doSwitch(EObject)public T caseBoundAndWeight(BoundAndWeight object)
object - the target of the switch.doSwitch(EObject)public T caseMetricAndWeight(MetricAndWeight object)
object - the target of the switch.doSwitch(EObject)public T defaultCase(EObject object)
defaultCase in class Switch<T>object - the target of the switch.Switch.doSwitch(org.eclipse.emf.ecore.EObject)