@Internal public final class PowOperator extends BinaryOperator
Expression AST node for '^' operator. '^' operator in evaluated expressions means power operation
Since:
4.0.0
Author:
Sergey Gavrilov
  • Constructor Details

  • Method Details

    • 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
    • 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