Module java.base
Package java.lang.classfile.instructionPREVIEW

# 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 `CodeElement`PREVIEW during traversal of the elements of a `CodeModel`PREVIEW.

Since:
  22
See Also:
  - `PseudoInstruction`PREVIEW

- ## Method Summary

  Modifier and Type
  Method
  Description
  `LabelPREVIEW`
  `label()`
  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