Class MathOperator
java.lang.Object
io.micronaut.expressions.parser.ast.ExpressionNode
io.micronaut.expressions.parser.ast.operator.binary.BinaryOperator
io.micronaut.expressions.parser.ast.operator.binary.MathOperator
- Direct Known Subclasses:
DivOperator
,ModOperator
,MulOperator
,SubOperator
@Internal
public abstract sealed class MathOperator
extends BinaryOperator
permits DivOperator, ModOperator, MulOperator, SubOperator
Abstract expression AST node for binary math operations
on primitive types.
- Since:
- 4.0.0
- Author:
- Sergey Gavrilov
-
Field Summary
Fields inherited from class io.micronaut.expressions.parser.ast.operator.binary.BinaryOperator
leftOperand, rightOperand
Fields inherited from class io.micronaut.expressions.parser.ast.ExpressionNode
classElement, nodeType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Generates bytecode for this AST node.protected abstract int
protected org.objectweb.asm.Type
resolveOperationType
(org.objectweb.asm.Type leftOperandType, org.objectweb.asm.Type rightOperandType) Methods inherited from class io.micronaut.expressions.parser.ast.operator.binary.BinaryOperator
doResolveType
Methods inherited from class io.micronaut.expressions.parser.ast.ExpressionNode
compile, doResolveClassElement, doResolveClassElement, resolveClassElement, resolveClassElement, resolveType, resolveType
-
Constructor Details
-
MathOperator
-
-
Method Details
-
generateBytecode
Description copied from class:ExpressionNode
Generates bytecode for this AST node.- Specified by:
generateBytecode
in classExpressionNode
- Parameters:
ctx
- expression compilation context
-
resolveOperationType
protected org.objectweb.asm.Type resolveOperationType(org.objectweb.asm.Type leftOperandType, org.objectweb.asm.Type rightOperandType) - Specified by:
resolveOperationType
in classBinaryOperator
-
getMathOperationOpcode
-