Class AbstractStatementAwareExpressionWriter

java.lang.Object
io.micronaut.sourcegen.bytecode.expression.AbstractStatementAwareExpressionWriter
All Implemented Interfaces:
ExpressionWriter

public abstract sealed class AbstractStatementAwareExpressionWriter extends Object implements ExpressionWriter
The variation of ExpressionWriter that is aware that the expression is written as a statement. Unused stack values should be popped in that case.
Since:
1.5
Author:
Denis Stepanov
  • Field Details

    • statement

      protected boolean statement
  • Constructor Details

    • AbstractStatementAwareExpressionWriter

      public AbstractStatementAwareExpressionWriter()
  • Method Details

    • markAsStatement

      public final void markAsStatement()
      Marks the expression as being written as a statement.
    • popValueIfNeeded

      protected final void popValueIfNeeded(org.objectweb.asm.commons.GeneratorAdapter generatorAdapter, TypeDef typeDef)