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