public abstract class MathFunction extends Object implements InvocationEvaluator
Constructor and Description |
---|
MathFunction() |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(InvokeExpression expr,
Object invokedValue,
InMemoryExpressionEvaluator eval)
Method to evaluate the InvokeExpression, as part of the overall evaluation
defined by the InMemoryExpressionEvaluator.
|
protected abstract double |
evaluateMathFunction(double num) |
protected abstract String |
getFunctionName() |
public Object evaluate(InvokeExpression expr, Object invokedValue, InMemoryExpressionEvaluator eval)
InvocationEvaluator
evaluate
in interface InvocationEvaluator
expr
- The expression for invocationinvokedValue
- Value on which we are invokingeval
- The overall evaluator for in-memoryprotected abstract String getFunctionName()
protected abstract double evaluateMathFunction(double num)
Copyright © 2019. All rights reserved.