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 org.objectweb.asm.Type
Resolves expression AST node type.protected abstract org.objectweb.asm.Type
resolveOperationType
(org.objectweb.asm.Type leftOperandType, org.objectweb.asm.Type rightOperandType) Methods inherited from class io.micronaut.expressions.parser.ast.ExpressionNode
compile, doResolveClassElement, generateBytecode, resolveClassElement, resolveType
-
Field Details
-
leftOperand
-
rightOperand
-
-
Constructor Details
-
BinaryOperator
-
-
Method Details
-
doResolveType
Description copied from class:ExpressionNode
Resolves expression AST node type.- Specified by:
doResolveType
in classExpressionNode
- Parameters:
ctx
- expression compilation context- Returns:
- resolved type
-
resolveOperationType
protected abstract org.objectweb.asm.Type resolveOperationType(org.objectweb.asm.Type leftOperandType, org.objectweb.asm.Type rightOperandType)
-