Class DSLValueVisitor


public class DSLValueVisitor extends MetricDSLSwitch<Double>
  • Constructor Details

    • DSLValueVisitor

      public DSLValueVisitor()
  • Method Details

    • caseConstant

      public Double caseConstant(Constant object)
      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 class MetricDSLSwitch<Double>
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Constant'.
      See Also:
    • caseParameter

      public Double caseParameter(Parameter object)
      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 class MetricDSLSwitch<Double>
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Parameter'.
      See Also: