# Uses of Interface
java.lang.classfile.Label

Packages that use LabelPREVIEW
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.classfile.attribute
Provides interfaces describing classfile attributes for the `java.lang.classfile`PREVIEW library.
java.lang.classfile.components
Provides specific components, transformations, and tools built on top of the `java.lang.classfile`PREVIEW library.
java.lang.classfile.instruction
Provides interfaces describing code instructions for the `java.lang.classfile`PREVIEW library.

- ## Uses of LabelPREVIEW in java.lang.classfilePREVIEW

  Methods in java.lang.classfilePREVIEW that return LabelPREVIEW
  Modifier and Type
  Method
  Description
  `LabelPREVIEW`
  CodeBuilder.BlockCodeBuilder.`breakLabel()`
  Returns the label locating where control is passed back to the parent block..
  `LabelPREVIEW`
  CodeBuilder.`endLabel()`
  Returns the label associated with the end of the current block.
  `LabelPREVIEW`
  TypeAnnotation.LocalVarTargetInfo.`endLabel()`
  The given local variable has a value at indices into the code array in the interval [start_pc, start_pc + length), that is, between start_pc inclusive and start_pc + length exclusive.
  `default LabelPREVIEW`
  CodeBuilder.`newBoundLabel()`
  Create new label bound with current position
  `LabelPREVIEW`
  CodeBuilder.`newLabel()`
  Returns a fresh unbound label.
  `LabelPREVIEW`
  CodeBuilder.`startLabel()`
  Returns the label associated with the beginning of the current block.
  `LabelPREVIEW`
  TypeAnnotation.LocalVarTargetInfo.`startLabel()`
  The given local variable has a value at indices into the code array in the interval [start_pc, start_pc + length), that is, between start_pc inclusive and start_pc + length exclusive.
  `LabelPREVIEW`
  TypeAnnotation.OffsetTarget.`target()`
  The code array offset of either the bytecode instruction corresponding to the instanceof expression, the new bytecode instruction corresponding to the new expression, or the bytecode instruction corresponding to the method reference expression.
  `LabelPREVIEW`
  TypeAnnotation.TypeArgumentTarget.`target()`
  The code array offset of either the bytecode instruction corresponding to the cast expression, the new bytecode instruction corresponding to the new expression, the bytecode instruction corresponding to the explicit constructor invocation statement, the bytecode instruction corresponding to the method invocation expression, or the bytecode instruction corresponding to the method reference expression.
  Methods in java.lang.classfilePREVIEW with parameters of type LabelPREVIEW
  Modifier and Type
  Method
  Description
  `default CodeBuilderPREVIEW`
  CodeBuilder.`branchInstruction(OpcodePREVIEW op, LabelPREVIEW target)`
  Generate a branch instruction
  `default CodeBuilderPREVIEW`
  CodeBuilder.`characterRange(LabelPREVIEW startScope, LabelPREVIEW endScope, int characterRangeStart, int characterRangeEnd, int flags)`
  Declare a character range entry
  `default CodeBuilderPREVIEW`
  CodeBuilder.`exceptionCatch(LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, ClassEntryPREVIEW catchType)`
  Declare an exception table entry
  `default CodeBuilderPREVIEW`
  CodeBuilder.`exceptionCatch(LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, ClassDesc catchType)`
  Declare an exception table entry
  `default CodeBuilderPREVIEW`
  CodeBuilder.`exceptionCatch(LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, Optional<ClassEntryPREVIEW> catchType)`
  Declare an exception table entry
  `default CodeBuilderPREVIEW`
  CodeBuilder.`exceptionCatchAll(LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler)`
  Declare an exception table entry catching all exceptions and errors
  `default CodeBuilderPREVIEW`
  CodeBuilder.`goto_(LabelPREVIEW target)`
  Generate an instruction to branch always
  `default CodeBuilderPREVIEW`
  CodeBuilder.`goto_w(LabelPREVIEW target)`
  Generate an instruction to branch always with wide index
  `default CodeBuilderPREVIEW`
  CodeBuilder.`if_acmpeq(LabelPREVIEW target)`
  Generate an instruction to branch if int comparison succeeds
  `default CodeBuilderPREVIEW`
  CodeBuilder.`if_acmpne(LabelPREVIEW target)`
  Generate an instruction to branch if int comparison succeeds
  `default CodeBuilderPREVIEW`
  CodeBuilder.`if_icmpeq(LabelPREVIEW target)`
  Generate an instruction to branch if int comparison succeeds
  `default CodeBuilderPREVIEW`
  CodeBuilder.`if_icmpge(LabelPREVIEW target)`
  Generate an instruction to branch if int comparison succeeds
  `default CodeBuilderPREVIEW`
  CodeBuilder.`if_icmpgt(LabelPREVIEW target)`
  Generate an instruction to branch if int comparison succeeds
  `default CodeBuilderPREVIEW`
  CodeBuilder.`if_icmple(LabelPREVIEW target)`
  Generate an instruction to branch if int comparison succeeds
  `default CodeBuilderPREVIEW`
  CodeBuilder.`if_icmplt(LabelPREVIEW target)`
  Generate an instruction to branch if int comparison succeeds
  `default CodeBuilderPREVIEW`
  CodeBuilder.`if_icmpne(LabelPREVIEW target)`
  Generate an instruction to branch if int comparison succeeds
  `default CodeBuilderPREVIEW`
  CodeBuilder.`if_nonnull(LabelPREVIEW target)`
  Generate an instruction to branch if reference is not null
  `default CodeBuilderPREVIEW`
  CodeBuilder.`if_null(LabelPREVIEW target)`
  Generate an instruction to branch if reference is null
  `default CodeBuilderPREVIEW`
  CodeBuilder.`ifeq(LabelPREVIEW target)`
  Generate an instruction to branch if int comparison with zero succeeds
  `default CodeBuilderPREVIEW`
  CodeBuilder.`ifge(LabelPREVIEW target)`
  Generate an instruction to branch if int comparison with zero succeeds
  `default CodeBuilderPREVIEW`
  CodeBuilder.`ifgt(LabelPREVIEW target)`
  Generate an instruction to branch if int comparison with zero succeeds
  `default CodeBuilderPREVIEW`
  CodeBuilder.`ifle(LabelPREVIEW target)`
  Generate an instruction to branch if int comparison with zero succeeds
  `default CodeBuilderPREVIEW`
  CodeBuilder.`iflt(LabelPREVIEW target)`
  Generate an instruction to branch if int comparison with zero succeeds
  `default CodeBuilderPREVIEW`
  CodeBuilder.`ifne(LabelPREVIEW target)`
  Generate an instruction to branch if int comparison with zero succeeds
  `default CodeBuilderPREVIEW`
  CodeBuilder.`labelBinding(LabelPREVIEW label)`
  Bind label with current position
  `default CodeBuilderPREVIEW`
  CodeBuilder.`localVariable(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW descriptorEntry, LabelPREVIEW startScope, LabelPREVIEW endScope)`
  Declare a local variable entry
  `default CodeBuilderPREVIEW`
  CodeBuilder.`localVariable(int slot, String name, ClassDesc descriptor, LabelPREVIEW startScope, LabelPREVIEW endScope)`
  Declare a local variable entry
  `default CodeBuilderPREVIEW`
  CodeBuilder.`localVariableType(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW signatureEntry, LabelPREVIEW startScope, LabelPREVIEW endScope)`
  Declare a local variable type entry
  `default CodeBuilderPREVIEW`
  CodeBuilder.`localVariableType(int slot, String name, SignaturePREVIEW signature, LabelPREVIEW startScope, LabelPREVIEW endScope)`
  Declare a local variable type entry
  `default CodeBuilderPREVIEW`
  CodeBuilder.`lookupswitch(LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)`
  Generate an instruction to access a jump table by key match and jump
  `default CodeBuilderPREVIEW`
  CodeBuilder.`lookupSwitchInstruction(LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)`
  Generate an instruction to access a jump table by key match and jump
  `static TypeAnnotation.LocalVarTargetInfoPREVIEW`
  TypeAnnotation.LocalVarTargetInfo.`of(LabelPREVIEW startLabel, LabelPREVIEW endLabel, int index)`
  Returns local variable target info.
  `static TypeAnnotation.TypeArgumentTargetPREVIEW`
  TypeAnnotation.TargetInfo.`ofCastExpr(LabelPREVIEW target, int typeArgumentIndex)`
  Returns a target for annotations on the i'th type in a cast expression.
  `static TypeAnnotation.TypeArgumentTargetPREVIEW`
  TypeAnnotation.TargetInfo.`ofConstructorInvocationTypeArgument(LabelPREVIEW target, int typeArgumentIndex)`
  Returns a target for annotations on the i'th type argument in the explicit type argument list for an explicit constructor invocation statement.
  `static TypeAnnotation.OffsetTargetPREVIEW`
  TypeAnnotation.TargetInfo.`ofConstructorReference(LabelPREVIEW target)`
  Returns a target for annotations on the type before the :: in a constructor reference expression.
  `static TypeAnnotation.TypeArgumentTargetPREVIEW`
  TypeAnnotation.TargetInfo.`ofConstructorReferenceTypeArgument(LabelPREVIEW target, int typeArgumentIndex)`
  Returns a target for annotations on the i'th type argument in the explicit type argument list for a new expression.
  `static TypeAnnotation.OffsetTargetPREVIEW`
  TypeAnnotation.TargetInfo.`ofInstanceofExpr(LabelPREVIEW target)`
  Returns a target for annotations on the type in an instanceof expression.
  `static TypeAnnotation.TypeArgumentTargetPREVIEW`
  TypeAnnotation.TargetInfo.`ofMethodInvocationTypeArgument(LabelPREVIEW target, int typeArgumentIndex)`
  Returns a target for annotations on the i'th type argument in the explicit type argument list for a method invocation expression.
  `static TypeAnnotation.OffsetTargetPREVIEW`
  TypeAnnotation.TargetInfo.`ofMethodReference(LabelPREVIEW target)`
  Returns a target for annotations on the type before the :: in a method reference expression.
  `static TypeAnnotation.TypeArgumentTargetPREVIEW`
  TypeAnnotation.TargetInfo.`ofMethodReferenceTypeArgument(LabelPREVIEW target, int typeArgumentIndex)`
  Returns a target for annotations on the i'th type argument in the explicit type argument list for a method reference expression.
  `static TypeAnnotation.OffsetTargetPREVIEW`
  TypeAnnotation.TargetInfo.`ofNewExpr(LabelPREVIEW target)`
  Returns a target for annotations on the type in a new expression.
  `static TypeAnnotation.OffsetTargetPREVIEW`
  TypeAnnotation.TargetInfo.`ofOffset(TypeAnnotation.TargetTypePREVIEW targetType, LabelPREVIEW target)`
  Returns a target for annotations on the type in an instanceof expression or a new expression, or the type before the :: in a method reference expression.
  `static TypeAnnotation.TypeArgumentTargetPREVIEW`
  TypeAnnotation.TargetInfo.`ofTypeArgument(TypeAnnotation.TargetTypePREVIEW targetType, LabelPREVIEW target, int typeArgumentIndex)`
  Returns a target for annotations on the i'th type in a cast expression, or on the i'th type argument in the explicit type argument list for any of the following: a new expression, an explicit constructor invocation statement, a method invocation expression, or a method reference expression.
  `default CodeBuilderPREVIEW`
  CodeBuilder.`tableswitch(int low, int high, LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)`
  Generate an instruction to access a jump table by index and jump
  `default CodeBuilderPREVIEW`
  CodeBuilder.`tableswitch(LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)`
  Generate an instruction to access a jump table by index and jump
  `default CodeBuilderPREVIEW`
  CodeBuilder.`tableSwitchInstruction(int lowValue, int highValue, LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)`
  Generate an instruction to access a jump table by index and jump

- ## Uses of LabelPREVIEW in java.lang.classfile.attributePREVIEW

  Methods in java.lang.classfile.attributePREVIEW that return LabelPREVIEW
  Modifier and Type
  Method
  Description
  `LabelPREVIEW`
  StackMapFrameInfo.UninitializedVerificationTypeInfo.`newTarget()`
  Returns the `new` instruction position that creates this unitialized object.
  `LabelPREVIEW`
  StackMapFrameInfo.`target()`
  Returns the frame target label.
  Methods in java.lang.classfile.attributePREVIEW with parameters of type LabelPREVIEW
  Modifier and Type
  Method
  Description
  `int`
  CodeAttribute.`labelToBci(LabelPREVIEW label)`
  Returns the position of the `Label` in the `codeArray` or -1 if the `Label` does not point to the `codeArray`.
  `static StackMapFrameInfoPREVIEW`
  StackMapFrameInfo.`of(LabelPREVIEW target, List<StackMapFrameInfo.VerificationTypeInfoPREVIEW> locals, List<StackMapFrameInfo.VerificationTypeInfoPREVIEW> stack)`
  Returns a new stack map frame.
  `static StackMapFrameInfo.UninitializedVerificationTypeInfoPREVIEW`
  StackMapFrameInfo.UninitializedVerificationTypeInfo.`of(LabelPREVIEW newTarget)`
  Returns an unitialized verification type info.

- ## Uses of LabelPREVIEW in java.lang.classfile.componentsPREVIEW

  Methods in java.lang.classfile.componentsPREVIEW that return LabelPREVIEW
  Modifier and Type
  Method
  Description
  `LabelPREVIEW`
  CodeRelabeler.`relabel(LabelPREVIEW label, CodeBuilderPREVIEW codeBuilder)`
  Access method to internal re-labeling function.
  Methods in java.lang.classfile.componentsPREVIEW with parameters of type LabelPREVIEW
  Modifier and Type
  Method
  Description
  `LabelPREVIEW`
  CodeRelabeler.`relabel(LabelPREVIEW label, CodeBuilderPREVIEW codeBuilder)`
  Access method to internal re-labeling function.
  Method parameters in java.lang.classfile.componentsPREVIEW with type arguments of type LabelPREVIEW
  Modifier and Type
  Method
  Description
  `static CodeRelabelerPREVIEW`
  CodeRelabeler.`of(BiFunction<LabelPREVIEW,CodeBuilderPREVIEW,LabelPREVIEW> mapFunction)`
  Creates a new instance of CodeRelabeler using provided `BiFunction` to re-label the code.
  `static CodeRelabelerPREVIEW`
  CodeRelabeler.`of(BiFunction<LabelPREVIEW,CodeBuilderPREVIEW,LabelPREVIEW> mapFunction)`
  Creates a new instance of CodeRelabeler using provided `BiFunction` to re-label the code.
  `static CodeRelabelerPREVIEW`
  CodeRelabeler.`of(Map<LabelPREVIEW,LabelPREVIEW> map)`
  Creates a new instance of CodeRelabeler storing the label mapping into the provided map.
  `static CodeRelabelerPREVIEW`
  CodeRelabeler.`of(Map<LabelPREVIEW,LabelPREVIEW> map)`
  Creates a new instance of CodeRelabeler storing the label mapping into the provided map.

- ## Uses of LabelPREVIEW in java.lang.classfile.instructionPREVIEW

  Methods in java.lang.classfile.instructionPREVIEW that return LabelPREVIEW
  Modifier and Type
  Method
  Description
  `LabelPREVIEW`
  LookupSwitchInstruction.`defaultTarget()`
  Returns the target of the default case.
  `LabelPREVIEW`
  TableSwitchInstruction.`defaultTarget()`
  Returns the default target of the switch.
  `LabelPREVIEW`
  CharacterRange.`endScope()`
  Returns the end of the instruction range.
  `LabelPREVIEW`
  LocalVariable.`endScope()`
  Returns the end range of the local variable scope.
  `LabelPREVIEW`
  LocalVariableType.`endScope()`
  Returns the end range of the local variable scope.
  `LabelPREVIEW`
  ExceptionCatch.`handler()`
  Returns the handler for the exception.
  `LabelPREVIEW`
  LabelTarget.`label()`
  Returns the label corresponding to this target.
  `LabelPREVIEW`
  CharacterRange.`startScope()`
  Returns the start of the instruction range.
  `LabelPREVIEW`
  LocalVariable.`startScope()`
  Returns the start range of the local variable scope.
  `LabelPREVIEW`
  LocalVariableType.`startScope()`
  Returns the start range of the local variable scope.
  `LabelPREVIEW`
  BranchInstruction.`target()`
  Returns the target of the branch.
  `LabelPREVIEW`
  DiscontinuedInstruction.JsrInstruction.`target()`
  Returns the target of the JSR instruction.
  `LabelPREVIEW`
  SwitchCase.`target()`
  Returns the branch target corresponding to this case.
  `LabelPREVIEW`
  ExceptionCatch.`tryEnd()`
  Returns the end of the instruction range for the guarded instructions.
  `LabelPREVIEW`
  ExceptionCatch.`tryStart()`
  Returns the beginning of the instruction range for the guarded instructions.
  Methods in java.lang.classfile.instructionPREVIEW with parameters of type LabelPREVIEW
  Modifier and Type
  Method
  Description
  `static BranchInstructionPREVIEW`
  BranchInstruction.`of(OpcodePREVIEW op, LabelPREVIEW target)`
  Returns a branch instruction.
  `static CharacterRangePREVIEW`
  CharacterRange.`of(LabelPREVIEW startScope, LabelPREVIEW endScope, int characterRangeStart, int characterRangeEnd, int flags)`
  Returns a character range pseudo-instruction.
  `static DiscontinuedInstruction.JsrInstructionPREVIEW`
  DiscontinuedInstruction.JsrInstruction.`of(LabelPREVIEW target)`
  Returns a JSR instruction.
  `static DiscontinuedInstruction.JsrInstructionPREVIEW`
  DiscontinuedInstruction.JsrInstruction.`of(OpcodePREVIEW op, LabelPREVIEW target)`
  Returns a JSR instruction.
  `static ExceptionCatchPREVIEW`
  ExceptionCatch.`of(LabelPREVIEW handler, LabelPREVIEW tryStart, LabelPREVIEW tryEnd)`
  Returns an exception table pseudo-instruction for an unconditional handler.
  `static ExceptionCatchPREVIEW`
  ExceptionCatch.`of(LabelPREVIEW handler, LabelPREVIEW tryStart, LabelPREVIEW tryEnd, Optional<ClassEntryPREVIEW> catchTypeEntry)`
  Returns an exception table pseudo-instruction.
  `static LocalVariablePREVIEW`
  LocalVariable.`of(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW descriptorEntry, LabelPREVIEW startScope, LabelPREVIEW endScope)`
  Returns a local variable pseudo-instruction.
  `static LocalVariablePREVIEW`
  LocalVariable.`of(int slot, String name, ClassDesc descriptor, LabelPREVIEW startScope, LabelPREVIEW endScope)`
  Returns a local variable pseudo-instruction.
  `static LocalVariableTypePREVIEW`
  LocalVariableType.`of(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW signatureEntry, LabelPREVIEW startScope, LabelPREVIEW endScope)`
  Returns a local variable type pseudo-instruction.
  `static LocalVariableTypePREVIEW`
  LocalVariableType.`of(int slot, String name, SignaturePREVIEW signature, LabelPREVIEW startScope, LabelPREVIEW endScope)`
  Returns a local variable type pseudo-instruction.
  `static LookupSwitchInstructionPREVIEW`
  LookupSwitchInstruction.`of(LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)`
  Returns a lookup switch instruction.
  `static SwitchCasePREVIEW`
  SwitchCase.`of(int caseValue, LabelPREVIEW target)`
  Create a SwitchCasePREVIEW
  `static TableSwitchInstructionPREVIEW`
  TableSwitchInstruction.`of(int lowValue, int highValue, LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)`
  Returns a table switch instruction.