Class TryCatchStatementWriter

java.lang.Object
io.micronaut.sourcegen.bytecode.statement.TryCatchStatementWriter
All Implemented Interfaces:
StatementWriter

public final class TryCatchStatementWriter extends Object implements StatementWriter
The try-catch statement.
Since:
1.5
  • Field Details

  • Constructor Details

    • TryCatchStatementWriter

      public TryCatchStatementWriter(StatementDef.Try aTry)
  • Method Details

    • write

      public void write(org.objectweb.asm.commons.GeneratorAdapter generatorAdapter, MethodContext context, Runnable finallyBlock)
      Description copied from interface: StatementWriter
      Write the statement.
      Specified by:
      write in interface StatementWriter
      Parameters:
      generatorAdapter - The adapter
      context - The method context
      finallyBlock - The runnable that should be invoked before any returning operation - return/throw