@Internal public final class AddOperator extends BinaryOperator
Expression node for binary '+' operator. Works both for math operation and string concatenation.
Since:
4.0.0
Author:
Sergey Gavrilov
  • Constructor Details

  • Method Details

    • resolveOperationType

      protected io.micronaut.sourcegen.model.TypeDef resolveOperationType(io.micronaut.sourcegen.model.TypeDef leftOperandType, io.micronaut.sourcegen.model.TypeDef rightOperandType)
      Specified by:
      resolveOperationType in class BinaryOperator
    • generateExpression

      public io.micronaut.sourcegen.model.ExpressionDef generateExpression(ExpressionCompilationContext ctx)
      Description copied from class: ExpressionNode
      Generates bytecode for this AST node.
      Specified by:
      generateExpression in class ExpressionNode
      Parameters:
      ctx - expression compilation context
      Returns:
      The expression definition