Top Description Methods
java.lang.classfile.instruction

public sealed Interface LabelTarget

extends PseudoInstruction
Known Direct Implementers
jdk.internal.classfile.impl.LabelImpl
Annotations
@PreviewFeature
feature:CLASSFILE_API
Imports
java.lang.classfile.CodeElement, .CodeModel, .Label, .PseudoInstruction, jdk.internal.classfile.impl.LabelImpl, jdk.internal.javac.PreviewFeature

Preview

Second Preview of ClassFile API (JEP 466).

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 during traversal of the elements of a CodeModel.
Since
22
See Also
PseudoInstruction

Method Summary

Modifier and TypeMethod and Description
public Label

Returns:

the label corresponding to this target
label
()

Returns the label corresponding to this target.

Method Detail

labelback to summary
public Label label()

Returns the label corresponding to this target.

Returns:Label

the label corresponding to this target