public class NegativeSignRealEvaluator extends AbstractRealEvaluator
Modifier and Type | Field and Description |
---|---|
protected Evaluator |
operandEval
The
Evaluator for the operand of the UnaryOperation . |
Constructor and Description |
---|
NegativeSignRealEvaluator(Evaluator e)
Creates a new
NegativeSignRealEvaluator with the specified
operand Evaluator . |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate()
Executes the negative on the real evaluation result of the given operand
Evaluator and returns the result as a Real
Object . |
getRealValue, getReturnType
protected Evaluator operandEval
Evaluator
for the operand of the UnaryOperation
.public NegativeSignRealEvaluator(Evaluator e)
NegativeSignRealEvaluator
with the specified
operand Evaluator
. That operand Evaluator
provides the real value the unary operation of type '-' will be executed on.e
- the Evaluator
from its real evaluation result
the negative value is to be assigned.public Object evaluate()
Evaluator
and returns the result as a Real
Object
.Real
Object
.AbstractRealEvaluator.getReturnType()