Uses of Interface
java.lang.classfile.CodeBuilder.BlockCodeBuilder
Packages that use CodeBuilder.BlockCodeBuilder
Package
Description
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.BlockCodeBuilderModifier and TypeMethodDescriptiondefault CodeBuilderCodeBuilder.block(Consumer<CodeBuilder.BlockCodeBuilder> handler) Adds a lexical block to the method being built.CodeBuilder.CatchBuilder.catching(ClassDesc exceptionType, Consumer<CodeBuilder.BlockCodeBuilder> catchHandler) Adds a catch block that catches an exception of the given type.voidCodeBuilder.CatchBuilder.catchingAll(Consumer<CodeBuilder.BlockCodeBuilder> catchAllHandler) Adds a "catch" block that catches all exceptions.CodeBuilder.CatchBuilder.catchingMulti(List<ClassDesc> exceptionTypes, Consumer<CodeBuilder.BlockCodeBuilder> catchHandler) Adds a catch block that catches exceptions of the given types.default CodeBuilderCodeBuilder.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 CodeBuilderCodeBuilder.ifThen(Consumer<CodeBuilder.BlockCodeBuilder> thenHandler) Adds an "if-then" block that is conditional on thebooleanvalue on top of the operand stack.default CodeBuilderCodeBuilder.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 CodeBuilderCodeBuilder.ifThenElse(Consumer<CodeBuilder.BlockCodeBuilder> thenHandler, Consumer<CodeBuilder.BlockCodeBuilder> elseHandler) Adds an "if-then-else" block that is conditional on thebooleanvalue on top of the operand stack.default CodeBuilderCodeBuilder.trying(Consumer<CodeBuilder.BlockCodeBuilder> tryHandler, Consumer<CodeBuilder.CatchBuilder> catchesHandler) Adds a "try-catch" block comprising one try block and zero or more catch blocks.