Class ConstraintExprText

java.lang.Object
org.ek9lang.compiler.symbols.ConstraintExprText
All Implemented Interfaces:
Function<ConstraintExpr, String>

public final class ConstraintExprText extends Object implements Function<ConstraintExpr, String>
THE rendering of a constraint back to its EK9 source form — >= 16 and <= 100.

Lives beside the model rather than in a consumer so it cannot drift from the shape it renders: the operator, literal text and boolean operator it reads are ConstraintExpr's own components. A Combination is parenthesised only where it is nested, so a top-level and-chain reads the way it was written. Given a null constraint it gives null (there is no constraint).

Stateless: hold one.