Uses of Interface java.lang.classfile.CodeBuilder.BlockCodeBuilder (Java SE 26 & JDK 26)
Description: use: module: java.base, package: java.lang.classfile, interface: CodeBuilder, interface: BlockCodeBuilder

# Uses of Interface
java.lang.classfile.CodeBuilder.BlockCodeBuilder

Packages that use CodeBuilder.BlockCodeBuilder
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.

- ## Uses of CodeBuilder.BlockCodeBuilder in java.lang.classfile

  Method parameters in java.lang.classfile with type arguments of type CodeBuilder.BlockCodeBuilder
  Modifier and Type
  Method
  Description
  `default CodeBuilder`
  CodeBuilder.`block(Consumer<CodeBuilder.BlockCodeBuilder> handler)`
  Adds a lexical block to the method being built.
  `CodeBuilder.CatchBuilder`
  CodeBuilder.CatchBuilder.`catching(ClassDesc exceptionType, Consumer<CodeBuilder.BlockCodeBuilder> catchHandler)`
  Adds a catch block that catches an exception of the given type.
  `void`
  CodeBuilder.CatchBuilder.`catchingAll(Consumer<CodeBuilder.BlockCodeBuilder> catchAllHandler)`
  Adds a "catch" block that catches all exceptions.
  `CodeBuilder.CatchBuilder`
  CodeBuilder.CatchBuilder.`catchingMulti(List<ClassDesc> exceptionTypes, Consumer<CodeBuilder.BlockCodeBuilder> catchHandler)`
  Adds a catch block that catches exceptions of the given types.
  `default CodeBuilder`
  CodeBuilder.`ifThen(Opcode opcode, Consumer<CodeBuilder.BlockCodeBuilder> thenHandler)`
  Adds an "if-then" block that is conditional on the value(s) on top of the operand stack in accordance with the given opcode.
  `default CodeBuilder`
  CodeBuilder.`ifThen(Consumer<CodeBuilder.BlockCodeBuilder> thenHandler)`
  Adds an "if-then" block that is conditional on the `boolean` value on top of the operand stack.
  `default CodeBuilder`
  CodeBuilder.`ifThenElse(Opcode opcode, Consumer<CodeBuilder.BlockCodeBuilder> thenHandler, Consumer<CodeBuilder.BlockCodeBuilder> elseHandler)`
  Adds an "if-then-else" block that is conditional on the value(s) on top of the operand stack in accordance with the given opcode.
  `default CodeBuilder`
  CodeBuilder.`ifThenElse(Consumer<CodeBuilder.BlockCodeBuilder> thenHandler, Consumer<CodeBuilder.BlockCodeBuilder> elseHandler)`
  Adds an "if-then-else" block that is conditional on the `boolean` value on top of the operand stack.
  `default CodeBuilder`
  CodeBuilder.`trying(Consumer<CodeBuilder.BlockCodeBuilder> tryHandler, Consumer<CodeBuilder.CatchBuilder> catchesHandler)`
  Adds a "try-catch" block comprising one try block and zero or more catch blocks.