Package org.somox.metrics.dslvisitor
Class DSLValueVisitor
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.somox.metrics.dsl.metricDSL.util.MetricDSLSwitch<Double>
org.somox.metrics.dslvisitor.DSLValueVisitor
-
Field Summary
Fields inherited from class org.somox.metrics.dsl.metricDSL.util.MetricDSLSwitch
modelPackage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncaseConstant
(Constant object) Returns the result of interpreting the object as an instance of 'Constant'.caseParameter
(Parameter object) Returns the result of interpreting the object as an instance of 'Parameter'.Methods inherited from class org.somox.metrics.dsl.metricDSL.util.MetricDSLSwitch
caseBoundAndWeight, caseExternalMetric, caseInternalMetric, caseMetric, caseMetricAndWeight, caseMetricDefinition, caseMetricModel, caseNumber, caseRatioMetric, caseStepwiseMetric, caseWeightedMetric, defaultCase, doSwitch, isSwitchFor
-
Constructor Details
-
DSLValueVisitor
public DSLValueVisitor()
-
-
Method Details
-
caseConstant
Description copied from class:MetricDSLSwitch
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.- Overrides:
caseConstant
in classMetricDSLSwitch<Double>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Constant'.
- See Also:
-
caseParameter
Description copied from class:MetricDSLSwitch
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.- Overrides:
caseParameter
in classMetricDSLSwitch<Double>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Parameter'.
- See Also:
-