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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
Marks the expression as being written as a statement.protected final void
popValueIfNeeded
(org.objectweb.asm.commons.GeneratorAdapter generatorAdapter, TypeDef typeDef) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.sourcegen.bytecode.expression.ExpressionWriter
write
-
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)
-