Class MethodContext.Gap
java.lang.Object
io.micronaut.sourcegen.bytecode.MethodContext.Gap
- Enclosing class:
MethodContext
The code a return or a yield writes on its way out of a try or a synchronized statement: from the
copy of the finally block, or from past the release of the monitor, to past the instruction that
leaves. As javac does, the statement leaves the gap out of its exception ranges, so that it does
not handle an exception thrown by its own finally block, or release its monitor twice.
- Since:
- 1.5
-
Method Summary
-
Method Details
-
start
public org.objectweb.asm.Label start()- Returns:
- The label the gap starts at
-
end
public org.objectweb.asm.Label end()- Returns:
- The label the gap ends at, once the return or the yield closed it
-