java.lang.Object
com.darkcollective.relix.ast.visitor.internal.OperandPrettyPrinter
All Implemented Interfaces:
OperandVisitor<String>

public final class OperandPrettyPrinter extends Object implements OperandVisitor<String>
Formats an Operand expression as a Unicode relational algebra string.

Handles operator precedence for binary arithmetic (multiplication and division bind tighter than addition and subtraction) and inserts parentheses when a lower-precedence sub-expression appears in a higher-precedence context. String values are escaped (\", \\, \n, \t).

Used internally by PrettyPrinter; also useful for formatting individual operand expressions in isolation.