Interface LabelTarget

All Superinterfaces:
ClassFileElementPREVIEW, CodeElementPREVIEW, PseudoInstructionPREVIEW

public sealed interface LabelTarget extends PseudoInstructionPREVIEW
LabelTarget is a preview API of the Java platform.
Programs can only use LabelTarget when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
A pseudo-instruction which indicates that the specified label corresponds to the current position in the Code attribute. Delivered as a CodeElementPREVIEW during traversal of the elements of a CodeModelPREVIEW.
Since:
22
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the label corresponding to this target.
  • Method Details

    • label

      LabelPREVIEW label()
      Returns the label corresponding to this target.
      Returns:
      the label corresponding to this target