Class RelationalOperator

java.lang.Object
io.micronaut.expressions.parser.ast.ExpressionNode
io.micronaut.expressions.parser.ast.operator.binary.RelationalOperator
Direct Known Subclasses:
GteOperator, GtOperator, LteOperator, LtOperator

@Internal public abstract sealed class RelationalOperator extends ExpressionNode permits GtOperator, GteOperator, LtOperator, LteOperator
Abstract expression AST node for relational operations. Relational operations can be applied to numeric types or types that are Comparable to each other. It is unclear at AST building stage what kind of relational operation will be performed, so this node does not directly include bytecode generation logic. At type resolution stage it instantiates either NumericComparisonOperation or ComparablesComparisonOperation and delegates bytecode generation to respective node instance.
Since:
4.0.0
Author:
Sergey Gavrilov