Class TryCatchStatementWriter
java.lang.Object
io.micronaut.sourcegen.bytecode.statement.TryCatchStatementWriter
- All Implemented Interfaces:
StatementWriter
The try-catch statement.
- Since:
- 1.5
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(org.objectweb.asm.commons.GeneratorAdapter generatorAdapter, MethodContext context, Runnable finallyBlock) Write the statement.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.statement.StatementWriter
writeScoped
-
Field Details
-
EXCEPTION_NAME
- See Also:
-
-
Constructor Details
-
TryCatchStatementWriter
-
-
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 interfaceStatementWriter
- Parameters:
generatorAdapter
- The adaptercontext
- The method contextfinallyBlock
- The runnable that should be invoked before any returning operation - return/throw
-