The tree-walk evaluator that traverses a LogicalExpression AST and produces a result.
Extends AbstractVisitor<unknown> and implements every visit method by
delegating operator evaluation to the provided Calculator.
You generally do not need to instantiate this class directly - use
evaluate or execute instead. Construct it manually only when
you need fine-grained control over the evaluation lifecycle.
The tree-walk evaluator that traverses a LogicalExpression AST and produces a result.
Extends AbstractVisitor<
unknown> and implements every visit method by delegating operator evaluation to the provided Calculator.You generally do not need to instantiate this class directly - use evaluate or execute instead. Construct it manually only when you need fine-grained control over the evaluation lifecycle.
Example