Class BinaryOperator
java.lang.Object
io.micronaut.expressions.parser.ast.ExpressionNode
io.micronaut.expressions.parser.ast.operator.binary.BinaryOperator
- Direct Known Subclasses:
AddOperator
,EqOperator
,LogicalOperator
,MathOperator
,PowOperator
@Internal
public abstract sealed class BinaryOperator
extends ExpressionNode
permits AddOperator, EqOperator, LogicalOperator, MathOperator, PowOperator
Abstract expression AST node for binary operators.
- Since:
- 4.0.0
- Author:
- Sergey Gavrilov
-
Field Summary
Fields inherited from class io.micronaut.expressions.parser.ast.ExpressionNode
classElement, nodeType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected io.micronaut.sourcegen.model.TypeDef
Resolves expression AST node type.protected abstract io.micronaut.sourcegen.model.TypeDef
resolveOperationType
(io.micronaut.sourcegen.model.TypeDef leftOperandType, io.micronaut.sourcegen.model.TypeDef rightOperandType) Methods inherited from class io.micronaut.expressions.parser.ast.ExpressionNode
compile, doResolveClassElement, doResolveClassElement, generateExpression, resolveClassElement, resolveClassElement, resolveType, resolveType
-
Field Details
-
leftOperand
-
rightOperand
-
-
Constructor Details
-
BinaryOperator
-
-
Method Details
-
doResolveType
protected io.micronaut.sourcegen.model.TypeDef doResolveType(@NonNull @NonNull ExpressionVisitorContext ctx) Description copied from class:ExpressionNode
Resolves expression AST node type.- Overrides:
doResolveType
in classExpressionNode
- Parameters:
ctx
- expression compilation context- Returns:
- resolved type
-
resolveOperationType
protected abstract io.micronaut.sourcegen.model.TypeDef resolveOperationType(io.micronaut.sourcegen.model.TypeDef leftOperandType, io.micronaut.sourcegen.model.TypeDef rightOperandType)
-