Module java.base
Package java.lang.classfile

# Interface CodeBuilder.BlockCodeBuilder

≠
public abstract static sealed interface BlockCodeBuilder
extends java.lang.classfile.CodeBuilder
permits jdk.internal.classfile.impl.BlockCodeBuilderImpl
Comparing master and cf

All Superinterfaces:
  `ClassFileBuilder<CodeElement, CodeBuilder>, CodeBuilder, Consumer<CodeElement>`

Enclosing interface:
  `CodeBuilder`

public static sealed interface CodeBuilder.BlockCodeBuilder extends CodeBuilder
A builder for blocks of code. Its `CodeBuilder.startLabel()` and `CodeBuilder.endLabel()` do not enclose the entire method body, but from the start to the end of the block.

Since:
  24

## Methods

- ≠
  public abstract java.lang.classfile.Label breakLabel()
  Comparing master and cf

  ### breakLabel

  Label breakLabel()
  Returns the label locating where control is passed back to the parent block. . A branch to this label "break"'s out of the current block.

  If an instruction occurring immediately after the built block's last instruction would be reachable from that last instruction, then a goto instruction targeting last instruction in this block does not lead to the break label, Class-File API may append instructions to target the "break" label is appended to the built block.

  Returns:
    the label locating where control is passed back to the parent block.

## Summary

Differences
| Elements | Comments | Descriptions | Total
Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed
--- | --- | --- | --- | --- | --- | --- | --- | ---
CodeBuilder.BlockCodeBuilder |  |  |  |  |  |  | 3 |  |  | 3
breakLabel() |  |  |  |  |  |  |  | 1 | 7 | 8
Total |  |  |  |  |  |  | 3 | 1 | 7 | 11