public abstract class MathFunctionEvaluator extends Object implements InvocationEvaluator
| Modifier and Type | Field and Description |
|---|---|
protected static Localiser |
LOCALISER
Localisation utility for output messages
|
| Constructor and Description |
|---|
MathFunctionEvaluator() |
| 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() |
protected static final Localiser LOCALISER
public Object evaluate(InvokeExpression expr, Object invokedValue, InMemoryExpressionEvaluator eval)
InvocationEvaluatorevaluate in interface InvocationEvaluatorexpr - 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 © 2013. All Rights Reserved.