Interface StatementWriter
- All Known Implementing Classes:
TryCatchStatementWriter
The statement writer.
- Since:
- 1.5
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptionstatic StatementWriter
of
(StatementDef statementDef) Create a writer from the statement.void
write
(org.objectweb.asm.commons.GeneratorAdapter generatorAdapter, MethodContext context, @Nullable Runnable finallyBlock) Write the statement.default void
writeScoped
(org.objectweb.asm.commons.GeneratorAdapter generatorAdapter, MethodContext context, @Nullable Runnable finallyBlock) Write the statement with scoped locals.
-
Method Details
-
of
Create a writer from the statement.- Parameters:
statementDef
- Statement- Returns:
- a writer
-
write
void write(org.objectweb.asm.commons.GeneratorAdapter generatorAdapter, MethodContext context, @Nullable @Nullable Runnable finallyBlock) Write the statement.- Parameters:
generatorAdapter
- The adaptercontext
- The method contextfinallyBlock
- The runnable that should be invoked before any returning operation - return/throw
-
writeScoped
default void writeScoped(org.objectweb.asm.commons.GeneratorAdapter generatorAdapter, MethodContext context, @Nullable @Nullable Runnable finallyBlock) Write the statement with scoped locals.- Parameters:
generatorAdapter
- The adaptercontext
- The method contextfinallyBlock
- The runnable that should be invoked before any returning operation - return/throw
-