Class AddOperator
java.lang.Object
io.micronaut.expressions.parser.ast.ExpressionNode
io.micronaut.expressions.parser.ast.operator.binary.BinaryOperator
io.micronaut.expressions.parser.ast.operator.binary.AddOperator
Expression node for binary '+' operator. Works both for math operation and string
concatenation.
- 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 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
-
AddOperator
-
-
Method Details
-
resolveOperationType
protected org.objectweb.asm.Type resolveOperationType(org.objectweb.asm.Type leftOperandType, org.objectweb.asm.Type rightOperandType) - Specified by:
resolveOperationType
in classBinaryOperator
-
generateBytecode
Description copied from class:ExpressionNode
Generates bytecode for this AST node.- Specified by:
generateBytecode
in classExpressionNode
- Parameters:
ctx
- expression compilation context
-