- Enclosing class:
- Relooper
public static class Relooper.MultipleBlock
extends Relooper.Block
Multiple: A block that represents a divergence into several possible branches,
that eventually rejoin. A Multiple
block can implement an ‘if’, an ‘if-else’, a ‘switch’, etc.
It is comprised of:
Handled blocks: A set of blocks to which execution
can enter. When we reach the multiple block, we
check which of them should execute, and go there.
When execution of that block is complete, or if none
of the handled blocks was selected for execution, we
proceed to the Next block, below.
Next: A block that will appear just after the Handled
blocks, in other words, that will be reached after code
flow exits the Handled blocks.