Class TryCatchStatementWriter
java.lang.Object
io.micronaut.sourcegen.bytecode.statement.TryCatchStatementWriter
- All Implemented Interfaces:
StatementWriter
The try-catch statement.
- Since:
- 1.5
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(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, waitMethods 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:StatementWriterWrite the statement.- Specified by:
writein interfaceStatementWriter- Parameters:
generatorAdapter- The adaptercontext- The method contextfinallyBlock- The runnable that should be invoked before any returning operation - return/throw
-