Interface Label
public sealed interface Label
A marker for a position within the instructions of a method body. The
association between a label's identity and the position it represents is
managed by the entity managing the method body (a
CodeModel
or CodeBuilder
), not the label itself; this allows the same label to have a
meaning both in an existing method (as managed by a CodeModel)
and in the transformation of that method (as managed by a CodeBuilder), while corresponding to different positions in each. When
traversing the elements of a CodeModel, Label
markers will be delivered at the position to which they correspond. A label
can be bound to the current position within a CodeBuilder via
CodeBuilder.labelBinding(Label)
or ClassFileBuilder.with(ClassFileElement)
.- Since:
- 24