java.lang.Object
org.evomaster.client.java.controller.neo4j.conditions.ArithmeticOperand
All Implemented Interfaces:
Operand

public final class ArithmeticOperand extends Object implements Operand
An operand that is an arithmetic expression over other operands, e.g. p.age + 5 or -n.weight. Keeps the structure (operator + sub-operands) instead of the original text, so the inner PropertyOperands stay resolvable per mapping and the heuristics calculator can valuate v(x op y) = apply(op, v(left), v(right)).

Fully-literal subtrees are folded to a LiteralOperand at parse time, so this class only ever holds an expression that still depends on the graph (at least one property reference).

For ArithmeticOperator.NEGATE (unary minus) the operand is getLeft() and getRight() is null.