Class MathFunction

    • Constructor Detail

      • MathFunction

        public MathFunction()
    • Method Detail

      • evaluate

        public java.lang.Object evaluate​(InvokeExpression expr,
                                         java.lang.Object invokedValue,
                                         InMemoryExpressionEvaluator eval)
        Description copied from interface: InvocationEvaluator
        Method to evaluate the InvokeExpression, as part of the overall evaluation defined by the InMemoryExpressionEvaluator.
        Specified by:
        evaluate in interface InvocationEvaluator
        Parameters:
        expr - The expression for invocation
        invokedValue - Value on which we are invoking
        eval - The overall evaluator for in-memory
        Returns:
        The result
      • getFunctionName

        protected abstract java.lang.String getFunctionName()
      • evaluateMathFunction

        protected abstract double evaluateMathFunction​(double num)
      • evaluateMathFunction

        protected double evaluateMathFunction​(double num1,
                                              double num2)
      • getParamValueForParam

        protected java.lang.Object getParamValueForParam​(java.lang.Object param,
                                                         InMemoryExpressionEvaluator eval,
                                                         java.lang.String method)